We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Error loading EML file "Invalid URI: The hostname could not be parsed"

Hi,

Currently I use Aspose.Email 6.6.0.0 and cannot update it to the latest version as application is currently in production.

I got the following exception loading EML message.Do you have any thought on what may cause it?

Error message: Invalid URI: The hostname could not be parsed
Type: System.UriFormatException.
StackTrace:
at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
at #=qQdbwELUdvyUOeR8W4Hi5xaasfYuhLUzKd3VAhP6AmTe_S3rccktT0Pn57AbtgMH5.#=qS5W6uUHlMma9KfLaL_xOsg==(String #=qkD9n55cQjWimcxtlfxunfA==)
at #=qQdbwELUdvyUOeR8W4Hi5xaasfYuhLUzKd3VAhP6AmTe_S3rccktT0Pn57AbtgMH5…ctor(#=qQ_hHdIUp34j2VMEFcpg7kdxGFA8VLNwsGFDKFp9rhDgzyQE$79ViaHZVUEHRKuKN #=qRc0S8xlU_za82DNB$Ll3yg==, String #=qkD9n55cQjWimcxtlfxunfA==)
at #=q52yIkw_gVxh11gHmGEfgYw769tAzmygEun4ngYmIY0NMED2efK5zA_XfXTA9e2u0.#=q5YIGHWJt9lCII5CZgEPkbtdVhMMSHknAY0ox_eXMv40=.#=qRwTrt0xREdQd6GISIKZF5A==(String #=qr46f1XNiMi0k7fZQRIdZFg==, #=qQ_hHdIUp34j2VMEFcpg7kdxGFA8VLNwsGFDKFp9rhDgzyQE$79ViaHZVUEHRKuKN #=qjGZoLSpaiQwRKhc89XL1Fg==, String #=qU4ixeNngs2AmfdgyukR6rA==)
at #=qkLgtmkMn2aAfp2vZj8JsOBuzRunWCAWVKbYFzNKC5SAtDslQio57vS9naKHO5KkK_Al_ReDDRNteKCx2y6JT7g==.#=qyYr_lsn8L0bh5xbhNIzYXw==(List`1 #=ql1WgHzrUJHooLp1Y5WMhYA==)
at #=qd7zVpQYS63ZItCHctSpSKS7hVcywLEpiF_gjPN44ttX4J7my$Yn7ijcUlHMTRk0u.#=qLF4Sugutq2eJCsbPXQyoyg==(Stream #=qEqck9qVCXrSppmH8bZDokw==)
at Aspose.Email.Mail.AlternateView.#=qi7CRTwHW0a$QF4QSaLyoA7q$PGhNgTKUe6MpbAUTnCQ=(String #=qf5ezNPXmcqhyRcjppZ5G1Q==, Encoding #=q0B3xeaOqhNQ2evMoLAswHQ==, ContentType #=qUmTGt$wgfIlChxXrSP2Oxg==, TransferEncoding #=q7_FiYQ8sHg0o8dGrSnazt7XuvX$SLWbtw2VOuveDbE8=)
at Aspose.Email.Mail.AlternateView.CreateAlternateViewFromString(String content, ContentType contentType)
at Aspose.Email.Mail.MailMessage.#=ql1cCVD0yqQQGgudzf6ZTrA==(#=qLz3uurYWDXLgWEFICf9oiCM2tW8lzapxGtEs6BMbMKc= #=qaBwcJChe3dz2QAspCObHcg==, Boolean #=qG8gTNyPIrrGQH4ASCQXgrA==, AlternateView #=qcGlHVA5CLhsicPVJs0CHCA==)
at Aspose.Email.Mail.MailMessage.#=q4aCRO8biJm9KENjSBCAC529wjjz8dI8yidgvpm4UWv0=(#=qLz3uurYWDXLgWEFICf9oiCM2tW8lzapxGtEs6BMbMKc= #=qaBwcJChe3dz2QAspCObHcg==, Boolean #=qG8gTNyPIrrGQH4ASCQXgrA==, AlternateView #=qcGlHVA5CLhsicPVJs0CHCA==)
at Aspose.Email.Mail.MailMessage.#=qOR2$q8ESKf6QvnXNjAM$NA==(#=qe1fZSiYhKQjyuXKQTxu$q_bb6WHDXAY3XORVIjK92qQ= #=qThBH2kix3BCSBBpKiKOLRg==, Boolean #=qG8gTNyPIrrGQH4ASCQXgrA==)
at Aspose.Email.Mail.MailMessage.#=qGpmwg37bIbqxN$d0I$XD5g==(#=qjjjHNDL2K6qJErkQDS7qKJMWATrSzQkIlUp7Tmgppso= #=qMybQcyB5sdBznm4YP4E7vg==)
at Aspose.Email.Mail.MailMessage.#=q5bvfzifh9eeHJgcYXomBswaU2iLIONFrLMDInDW_KGU=(#=qjjjHNDL2K6qJErkQDS7qKJMWATrSzQkIlUp7Tmgppso= #=qMybQcyB5sdBznm4YP4E7vg==)
at Aspose.Email.Mail.MailMessage.#=qXtSUyaDOrQ2NPLbGH3UlBcp23$p5TLxx1l5Wh6tG6_M=(#=qjjjHNDL2K6qJErkQDS7qKJMWATrSzQkIlUp7Tmgppso= #=qMybQcyB5sdBznm4YP4E7vg==, Boolean #=qBDSdAnJ$Ik32kUHPdO3WoQ==)
at Aspose.Email.Mail.MailMessage…ctor(#=qjjjHNDL2K6qJErkQDS7qKJMWATrSzQkIlUp7Tmgppso= #=qMybQcyB5sdBznm4YP4E7vg==, Boolean #=qgskTRwFuOwZJcyR$1mD3NQ==, Boolean #=qBDSdAnJ$Ik32kUHPdO3WoQ==)
at Aspose.Email.Mail.MailMessage.#=qy5jwwrLYAktLb1QcaELb7w==(Stream #=qEqck9qVCXrSppmH8bZDokw==, EmlLoadOptions #=qFbptguuYAuZJP7IsKPutsg==)
at Aspose.Email.Mail.MailMessage.#=qODKZjlzCexoOXVU9DHY0MOgBmVnL79yuvMkaRsHM2es=(Stream #=qEqck9qVCXrSppmH8bZDokw==, LoadOptions #=qFbptguuYAuZJP7IsKPutsg==)
at Aspose.Email.Mail.MailMessage.Load(Stream stream, LoadOptions options)

@licenses,

We are sorry for the trouble you are facing.

We can’t get much of this stack trace to help you out. Could you please share your sample input file with us for further investigation at our end? If the issue persists with the latest version of the API, it will be fixed in one of the upcoming versions. However, if it doesn’t exist, then you will have to upgrade to the latest version of the API to avail the fix.