MailMessage.Load hangs

Hello,

When I try to load some msg file with MailMessage.Load method:
var mail = MailMessage.Load("C:\\temp\\test\\56bb200192d061c39e16abbca8b0cc38.450560.MSG");

the method call never ends. Our app just hangs. On customer site we process messages in 1k chunks and basically all our chunks are hanging as every chunk has at least 1 message that is causing MailMessage.Load to hang!

I cannot provide the message as messages that hangs are our customer messages so we cannot provide example, and our test emails never hangs.

I can only provide stack trace from different versions of aspose library (all hangs) when I hit pause in Visual Studio
24.0.2.0

Aspose.Email.dll!#=zBwm6FB4IiTqDJPTFOgz$u1Ug9u86VAReNfqjrrj6kMYk.#=zjawem$$Q8tx5(Aspose.Email.MailMessage #=zUpDmWhI=, string #=zo6oAooG_UW22, int #=zbvk7aoI=) Unknown Aspose.Email.dll!#=zBwm6FB4IiTqDJPTFOgz$u1Ug9u86VAReNfqjrrj6kMYk.#=zv4x3H1eNR68I(Aspose.Email.MailMessage #=zUpDmWhI=, Aspose.Email.Mapi.MapiMessage #=zsQIgR24QImpw) Unknown [Native to Managed Transition] [Managed to Native Transition] Aspose.Email.dll!#=q5h6$UWR6OSojexsuAan71gtjAFr30Y4R7LZ5PrU3RQo=.#=z8ugWXSjsaEWMa1QrWw==(System.Reflection.MethodBase #=z9VR_Kic=, object #=z$KrVeqI=, object[] #=zSM4BOLc=) Unknown Aspose.Email.dll!#=q5h6$UWR6OSojexsuAan71gtjAFr30Y4R7LZ5PrU3RQo=.#=zpo3IyReeEE41X2ttpn9rhZpvAClfomnYNz4rdhU=(System.Reflection.MethodBase #=z9VR_Kic=, object #=z$KrVeqI=, object[] #=zSM4BOLc=, bool #=zxwxFd4o=) Unknown Aspose.Email.dll!#=q5h6$UWR6OSojexsuAan71gtjAFr30Y4R7LZ5PrU3RQo=.#=zdsOwiizCHBeCHBdOsXG1D9aMjy6epgPXLGq_BnA=(System.Reflection.MethodBase #=z9VR_Kic=, bool #=z$KrVeqI=) Unknown Aspose.Email.dll!#=q5h6$UWR6OSojexsuAan71gtjAFr30Y4R7LZ5PrU3RQo=.#=zL8VekhDbfx$e5yrK0nFG1h5Zek8i6t8pRw==(#=q5h6$UWR6OSojexsuAan71gtjAFr30Y4R7LZ5PrU3RQo= #=z9VR_Kic=, #=qr$yv32$$l7n0dZBT_jS_gn2ry63eNgFCpfd3_oTRRU0= #=z$KrVeqI=) Unknown Aspose.Email.dll!#=q5h6$UWR6OSojexsuAan71gtjAFr30Y4R7LZ5PrU3RQo=.#=zXQ5YN7530Ke9jSMo75NIOhHJnRoZMG2zBg==() Unknown Aspose.Email.dll!#=q5h6$UWR6OSojexsuAan71gtjAFr30Y4R7LZ5PrU3RQo=.#=zJVTfCoIuVaTmzGUh24oyCfip2dooKKUNZw==(bool #=z9VR_Kic=) Unknown Aspose.Email.dll!#=q5h6$UWR6OSojexsuAan71gtjAFr30Y4R7LZ5PrU3RQo=.#=zq6pzLHrWtpDsJQalXmz2n6h02etkWXd1EhjWQwc=() Unknown Aspose.Email.dll!#=q5h6$UWR6OSojexsuAan71gtjAFr30Y4R7LZ5PrU3RQo=.#=zTx2smqFFnUUG1i7_LuwKSK0G80YL54cLGLfwm08=(object[] #=z9VR_Kic=, System.Type[] #=z$KrVeqI=, System.Type[] #=zSM4BOLc=, object[] #=zxwxFd4o=) Unknown Aspose.Email.dll!#=q5h6$UWR6OSojexsuAan71gtjAFr30Y4R7LZ5PrU3RQo=.#=zi9l6Ljyrr0TuW9bp1uXSxPk_78aOH8LqC1NypbM=(System.IO.Stream #=z9VR_Kic=, string #=z$KrVeqI=, object[] #=zSM4BOLc=, System.Type[] #=zxwxFd4o=, System.Type[] #=zoNnki5o=, object[] #=zKmSEAJA=) Unknown Aspose.Email.dll!#=q5h6$UWR6OSojexsuAan71gtjAFr30Y4R7LZ5PrU3RQo=.#=zBd0GP64Zhm2k0JcIcK6yn_xnPxZKqo_dvA==(System.IO.Stream #=z9VR_Kic=, string #=z$KrVeqI=, object[] #=zSM4BOLc=) Unknown Aspose.Email.dll!#=zBwm6FB4IiTqDJPTFOgz$u1Ug9u86VAReNfqjrrj6kMYk.#=zo5a_TRg=(Aspose.Email.Mapi.MapiMessage #=zsQIgR24QImpw) Unknown Aspose.Email.dll!#=zBwm6FB4IiTqDJPTFOgz$u1Ug9u86VAReNfqjrrj6kMYk.#=zFlis334TWz95(Aspose.Email.MailMessage #=zkK2qUvZQS0Fh_30URQ==, Aspose.Email.Mapi.MapiMessage #=zsQIgR24QImpw, int #=zNMRS$Lw=) Unknown Aspose.Email.dll!#=zBwm6FB4IiTqDJPTFOgz$u1Ug9u86VAReNfqjrrj6kMYk.#=zIFLi82gIN_bv(Aspose.Email.MailMessage #=zkK2qUvZQS0Fh_30URQ==, Aspose.Email.Mapi.MapiMessage #=zsQIgR24QImpw) Unknown [Native to Managed Transition] [Managed to Native Transition] Aspose.Email.dll!#=q5h6$UWR6OSojexsuAan71gtjAFr30Y4R7LZ5PrU3RQo=.#=z8ugWXSjsaEWMa1QrWw==(System.Reflection.MethodBase #=z9VR_Kic=, object #=z$KrVeqI=, object[] #=zSM4BOLc=) Unknown Aspose.Email.dll!#=q5h6$UWR6OSojexsuAan71gtjAFr30Y4R7LZ5PrU3RQo=.#=zpo3IyReeEE41X2ttpn9rhZpvAClfomnYNz4rdhU=(System.Reflection.MethodBase #=z9VR_Kic=, object #=z$KrVeqI=, object[] #=zSM4BOLc=, bool #=zxwxFd4o=) Unknown Aspose.Email.dll!#=q5h6$UWR6OSojexsuAan71gtjAFr30Y4R7LZ5PrU3RQo=.#=zdsOwiizCHBeCHBdOsXG1D9aMjy6epgPXLGq_BnA=(System.Reflection.MethodBase #=z9VR_Kic=, bool #=z$KrVeqI=) Unknown Aspose.Email.dll!#=q5h6$UWR6OSojexsuAan71gtjAFr30Y4R7LZ5PrU3RQo=.#=zu0B9jP2FnwEYeUysqaQvb_8=(#=q5h6$UWR6OSojexsuAan71gtjAFr30Y4R7LZ5PrU3RQo= #=z9VR_Kic=, #=qr$yv32$$l7n0dZBT_jS_gn2ry63eNgFCpfd3_oTRRU0= #=z$KrVeqI=) Unknown Aspose.Email.dll!#=q5h6$UWR6OSojexsuAan71gtjAFr30Y4R7LZ5PrU3RQo=.#=zXQ5YN7530Ke9jSMo75NIOhHJnRoZMG2zBg==() Unknown Aspose.Email.dll!#=q5h6$UWR6OSojexsuAan71gtjAFr30Y4R7LZ5PrU3RQo=.#=zJVTfCoIuVaTmzGUh24oyCfip2dooKKUNZw==(bool #=z9VR_Kic=) Unknown Aspose.Email.dll!#=q5h6$UWR6OSojexsuAan71gtjAFr30Y4R7LZ5PrU3RQo=.#=zq6pzLHrWtpDsJQalXmz2n6h02etkWXd1EhjWQwc=() Unknown Aspose.Email.dll!#=q5h6$UWR6OSojexsuAan71gtjAFr30Y4R7LZ5PrU3RQo=.#=zTx2smqFFnUUG1i7_LuwKSK0G80YL54cLGLfwm08=(object[] #=z9VR_Kic=, System.Type[] #=z$KrVeqI=, System.Type[] #=zSM4BOLc=, object[] #=zxwxFd4o=) Unknown Aspose.Email.dll!#=q5h6$UWR6OSojexsuAan71gtjAFr30Y4R7LZ5PrU3RQo=.#=zi9l6Ljyrr0TuW9bp1uXSxPk_78aOH8LqC1NypbM=(System.IO.Stream #=z9VR_Kic=, string #=z$KrVeqI=, object[] #=zSM4BOLc=, System.Type[] #=zxwxFd4o=, System.Type[] #=zoNnki5o=, object[] #=zKmSEAJA=) Unknown Aspose.Email.dll!#=q5h6$UWR6OSojexsuAan71gtjAFr30Y4R7LZ5PrU3RQo=.#=zBd0GP64Zhm2k0JcIcK6yn_xnPxZKqo_dvA==(System.IO.Stream #=z9VR_Kic=, string #=z$KrVeqI=, object[] #=zSM4BOLc=) Unknown Aspose.Email.dll!#=zBwm6FB4IiTqDJPTFOgz$u1Ug9u86VAReNfqjrrj6kMYk.#=zo5a_TRg=(Aspose.Email.Mapi.MapiMessage #=zsQIgR24QImpw) Unknown Aspose.Email.dll!Aspose.Email.MailMessage.#=zCgDBZoPUk6lw(System.IO.Stream #=z1k1hb5g=, Aspose.Email.MsgLoadOptions #=zIQYzXv4=) Unknown Aspose.Email.dll!Aspose.Email.MailMessage.#=zA1k8BFQFvfgV(System.IO.Stream #=z1k1hb5g=, Aspose.Email.LoadOptions #=zIQYzXv4=) Unknown Aspose.Email.dll!Aspose.Email.MailMessage.Load(System.IO.Stream stream) Unknown Aspose.Email.dll!Aspose.Email.MailMessage.Load(string fileName) Unknown

24.0.1.0

 	Aspose.Email.dll!#=zvmD0Nmfssr$9zZkuHYZElErPAm8uswi$Rfu9A$tFLqoq.#=zY1zQTkT09HuF(Aspose.Email.MailMessage #=zw6DG_Ok=, string #=zecJp13xletsD, int #=zxjk7I3A=)	Unknown
 	Aspose.Email.dll!#=zvmD0Nmfssr$9zZkuHYZElErPAm8uswi$Rfu9A$tFLqoq.#=zF30_iq3S8OlY(Aspose.Email.MailMessage #=zw6DG_Ok=, Aspose.Email.Mapi.MapiMessage #=zYkIJvBtUKcc7)	Unknown
 	[Native to Managed Transition]	
 	[Managed to Native Transition]	
 	Aspose.Email.dll!#=qDCF0kexvbKBmOZLFzUTUdXWgZ$pBcK2MeXm3Fi8fgeA=.#=zxyUDh9Kk7tmD2RsHQg==(System.Reflection.MethodBase #=zD3KbYAQ=, object #=zVlILtBg=, object[] #=zCDrNFjU=)	Unknown
 	Aspose.Email.dll!#=qDCF0kexvbKBmOZLFzUTUdXWgZ$pBcK2MeXm3Fi8fgeA=.#=zRS3Kb9dqNYeDQ2MIGi4nkZ72_HMz4sozWqio1Jg=(System.Reflection.MethodBase #=zD3KbYAQ=, object #=zVlILtBg=, object[] #=zCDrNFjU=, bool #=zfuy_Drw=)	Unknown
 	Aspose.Email.dll!#=qDCF0kexvbKBmOZLFzUTUdXWgZ$pBcK2MeXm3Fi8fgeA=.#=zclso2QUkVMNSlIk3NFKi3uk8$9mmaHTb4NfEDO8=(System.Reflection.MethodBase #=zD3KbYAQ=, bool #=zVlILtBg=)	Unknown
 	Aspose.Email.dll!#=qDCF0kexvbKBmOZLFzUTUdXWgZ$pBcK2MeXm3Fi8fgeA=.#=zAYnC$Xw5K3vwkdVuKYYKN7sJ__9wIiW1Dg==(#=qDCF0kexvbKBmOZLFzUTUdXWgZ$pBcK2MeXm3Fi8fgeA= #=zD3KbYAQ=, #=qxWMcXTSEtOJH1pH6aAZNqDkMR5UNdd28gsoifbmTy9Y= #=zVlILtBg=)	Unknown
 	Aspose.Email.dll!#=qDCF0kexvbKBmOZLFzUTUdXWgZ$pBcK2MeXm3Fi8fgeA=.#=z3fP0DMmj0PxNdADA_rWLC5tf5ZsJVpUGQQ==()	Unknown
 	Aspose.Email.dll!#=qDCF0kexvbKBmOZLFzUTUdXWgZ$pBcK2MeXm3Fi8fgeA=.#=zTBPZ4szCzKjRkfxQMJ4jdnlzWbWq_Nj0KA==(bool #=zD3KbYAQ=)	Unknown
 	Aspose.Email.dll!#=qDCF0kexvbKBmOZLFzUTUdXWgZ$pBcK2MeXm3Fi8fgeA=.#=zxQdTFFtzz$b8gRcF3wD$zN52alpP_HsGkdS63Fw=()	Unknown
 	Aspose.Email.dll!#=qDCF0kexvbKBmOZLFzUTUdXWgZ$pBcK2MeXm3Fi8fgeA=.#=z3Kw0EkbsEnWTWS_vmiMxI32rn4KPUqv_dnS6qHQ=(object[] #=zD3KbYAQ=, System.Type[] #=zVlILtBg=, System.Type[] #=zCDrNFjU=, object[] #=zfuy_Drw=)	Unknown
 	Aspose.Email.dll!#=qDCF0kexvbKBmOZLFzUTUdXWgZ$pBcK2MeXm3Fi8fgeA=.#=zVjCuhED3EXaeNbKUn4IbtWH9p5o7rkQjcJ1rHrM=(System.IO.Stream #=zD3KbYAQ=, string #=zVlILtBg=, object[] #=zCDrNFjU=, System.Type[] #=zfuy_Drw=, System.Type[] #=z5UQErUs=, object[] #=ztv5fZ78=)	Unknown
 	Aspose.Email.dll!#=qDCF0kexvbKBmOZLFzUTUdXWgZ$pBcK2MeXm3Fi8fgeA=.#=zksqk2CBNmXe1cC9hDiIPMoy3S_UJPZqDGQ==(System.IO.Stream #=zD3KbYAQ=, string #=zVlILtBg=, object[] #=zCDrNFjU=)	Unknown
 	Aspose.Email.dll!#=zvmD0Nmfssr$9zZkuHYZElErPAm8uswi$Rfu9A$tFLqoq.#=zo20x1QM=(Aspose.Email.Mapi.MapiMessage #=zYkIJvBtUKcc7)	Unknown
 	Aspose.Email.dll!#=zvmD0Nmfssr$9zZkuHYZElErPAm8uswi$Rfu9A$tFLqoq.#=zuwF0z_PogsC3(Aspose.Email.MailMessage #=zCbIGUQxOFE8vhy9sRA==, Aspose.Email.Mapi.MapiMessage #=zYkIJvBtUKcc7, int #=z5e4CZTQ=)	Unknown
 	Aspose.Email.dll!#=zvmD0Nmfssr$9zZkuHYZElErPAm8uswi$Rfu9A$tFLqoq.#=znv$ir8IukM0R(Aspose.Email.MailMessage #=zCbIGUQxOFE8vhy9sRA==, Aspose.Email.Mapi.MapiMessage #=zYkIJvBtUKcc7)	Unknown
 	[Native to Managed Transition]	
 	[Managed to Native Transition]	
 	Aspose.Email.dll!#=qDCF0kexvbKBmOZLFzUTUdXWgZ$pBcK2MeXm3Fi8fgeA=.#=zxyUDh9Kk7tmD2RsHQg==(System.Reflection.MethodBase #=zD3KbYAQ=, object #=zVlILtBg=, object[] #=zCDrNFjU=)	Unknown
 	Aspose.Email.dll!#=qDCF0kexvbKBmOZLFzUTUdXWgZ$pBcK2MeXm3Fi8fgeA=.#=zRS3Kb9dqNYeDQ2MIGi4nkZ72_HMz4sozWqio1Jg=(System.Reflection.MethodBase #=zD3KbYAQ=, object #=zVlILtBg=, object[] #=zCDrNFjU=, bool #=zfuy_Drw=)	Unknown
 	Aspose.Email.dll!#=qDCF0kexvbKBmOZLFzUTUdXWgZ$pBcK2MeXm3Fi8fgeA=.#=zclso2QUkVMNSlIk3NFKi3uk8$9mmaHTb4NfEDO8=(System.Reflection.MethodBase #=zD3KbYAQ=, bool #=zVlILtBg=)	Unknown
 	Aspose.Email.dll!#=qDCF0kexvbKBmOZLFzUTUdXWgZ$pBcK2MeXm3Fi8fgeA=.#=zO13QrbULtR7TjRq$Y1U_Ibc=(#=qDCF0kexvbKBmOZLFzUTUdXWgZ$pBcK2MeXm3Fi8fgeA= #=zD3KbYAQ=, #=qxWMcXTSEtOJH1pH6aAZNqDkMR5UNdd28gsoifbmTy9Y= #=zVlILtBg=)	Unknown
 	Aspose.Email.dll!#=qDCF0kexvbKBmOZLFzUTUdXWgZ$pBcK2MeXm3Fi8fgeA=.#=z3fP0DMmj0PxNdADA_rWLC5tf5ZsJVpUGQQ==()	Unknown
 	Aspose.Email.dll!#=qDCF0kexvbKBmOZLFzUTUdXWgZ$pBcK2MeXm3Fi8fgeA=.#=zTBPZ4szCzKjRkfxQMJ4jdnlzWbWq_Nj0KA==(bool #=zD3KbYAQ=)	Unknown
 	Aspose.Email.dll!#=qDCF0kexvbKBmOZLFzUTUdXWgZ$pBcK2MeXm3Fi8fgeA=.#=zxQdTFFtzz$b8gRcF3wD$zN52alpP_HsGkdS63Fw=()	Unknown
 	Aspose.Email.dll!#=qDCF0kexvbKBmOZLFzUTUdXWgZ$pBcK2MeXm3Fi8fgeA=.#=z3Kw0EkbsEnWTWS_vmiMxI32rn4KPUqv_dnS6qHQ=(object[] #=zD3KbYAQ=, System.Type[] #=zVlILtBg=, System.Type[] #=zCDrNFjU=, object[] #=zfuy_Drw=)	Unknown
 	Aspose.Email.dll!#=qDCF0kexvbKBmOZLFzUTUdXWgZ$pBcK2MeXm3Fi8fgeA=.#=zVjCuhED3EXaeNbKUn4IbtWH9p5o7rkQjcJ1rHrM=(System.IO.Stream #=zD3KbYAQ=, string #=zVlILtBg=, object[] #=zCDrNFjU=, System.Type[] #=zfuy_Drw=, System.Type[] #=z5UQErUs=, object[] #=ztv5fZ78=)	Unknown
 	Aspose.Email.dll!#=qDCF0kexvbKBmOZLFzUTUdXWgZ$pBcK2MeXm3Fi8fgeA=.#=zksqk2CBNmXe1cC9hDiIPMoy3S_UJPZqDGQ==(System.IO.Stream #=zD3KbYAQ=, string #=zVlILtBg=, object[] #=zCDrNFjU=)	Unknown
 	Aspose.Email.dll!#=zvmD0Nmfssr$9zZkuHYZElErPAm8uswi$Rfu9A$tFLqoq.#=zo20x1QM=(Aspose.Email.Mapi.MapiMessage #=zYkIJvBtUKcc7)	Unknown
 	Aspose.Email.dll!Aspose.Email.MailMessage.#=zhNOcOX_iy4Yv(System.IO.Stream #=zAd7OdYE=, Aspose.Email.MsgLoadOptions #=z66V44EU=)	Unknown
 	Aspose.Email.dll!Aspose.Email.MailMessage.#=zpeY5uD5qvt1m(System.IO.Stream #=zAd7OdYE=, Aspose.Email.LoadOptions #=z66V44EU=)	Unknown
 	Aspose.Email.dll!Aspose.Email.MailMessage.Load(System.IO.Stream stream)	Unknown
 	Aspose.Email.dll!Aspose.Email.MailMessage.Load(string fileName)	Unknown

22.12.0

 	mscorlib.dll!char.ToLower(char c, System.Globalization.CultureInfo culture)	Unknown
 	System.dll!System.Text.RegularExpressions.RegexInterpreter.Go()	Unknown
 	System.dll!System.Text.RegularExpressions.RegexRunner.Scan(System.Text.RegularExpressions.Regex regex, string text, int textbeg, int textend, int textstart, int prevlen, bool quick, System.TimeSpan timeout)	Unknown
 	System.dll!System.Text.RegularExpressions.Regex.Run(bool quick, int prevlen, string input, int beginning, int length, int startat)	Unknown
 	System.dll!System.Text.RegularExpressions.MatchCollection.GetMatch(int i)	Unknown
 	System.dll!System.Text.RegularExpressions.MatchCollection.Count.get()	Unknown
 	Aspose.Email.dll!#=zE3FlmL9kThQapgRo3m1koQcigIa3mLx08VEJ3Ss$D6Uz.#=zFQgvae9SBgku(Aspose.Email.MailMessage #=zjuYVLAA=, Aspose.Email.Mapi.MapiMessage #=zTs5AA6A0sJqO)	Unknown
 	[Native to Managed Transition]	
 	[Managed to Native Transition]	
 	Aspose.Email.dll!#=qaZ1xMXqCYtFeDGhG8UEKs8ogA2yMoGDKvI8e0ouwHoM=.#=zarzlrCQWRXqZnqX2D877HkfwAQeT1r0ALg==(System.Reflection.MethodBase #=zmKo2b0Q=, object #=zbof9_QU=, object[] #=zbvV1my8=)	Unknown
 	Aspose.Email.dll!#=qaZ1xMXqCYtFeDGhG8UEKs8ogA2yMoGDKvI8e0ouwHoM=.#=zi3nmYc89txCtzvVUO6Gearb6n8gQh7Mped9hcn6Xs7Rh(System.Reflection.MethodBase #=zmKo2b0Q=, object #=zbof9_QU=, object[] #=zbvV1my8=, bool #=z$OKRnHA=)	Unknown
 	Aspose.Email.dll!#=qaZ1xMXqCYtFeDGhG8UEKs8ogA2yMoGDKvI8e0ouwHoM=.#=zkwbzf55AJluZcQFsZGqCizQ=(System.Reflection.MethodBase #=zmKo2b0Q=, bool #=zbof9_QU=)	Unknown
 	Aspose.Email.dll!#=qaZ1xMXqCYtFeDGhG8UEKs8ogA2yMoGDKvI8e0ouwHoM=.#=zOCgc4U7lzUFPHZFFHaDuMP4=(#=qaZ1xMXqCYtFeDGhG8UEKs8ogA2yMoGDKvI8e0ouwHoM= #=zmKo2b0Q=, #=qmowOLA6oJSUu70iPq1KYme4vIPrjtgJTRR7wN99CU40= #=zbof9_QU=)	Unknown
 	Aspose.Email.dll!#=qaZ1xMXqCYtFeDGhG8UEKs8ogA2yMoGDKvI8e0ouwHoM=.#=z$E0rVBf4k_Rfg4CaH5hGH3k=()	Unknown
 	Aspose.Email.dll!#=qaZ1xMXqCYtFeDGhG8UEKs8ogA2yMoGDKvI8e0ouwHoM=.#=zX3J_rshguMooe98V5FI_fJo=(bool #=zmKo2b0Q=)	Unknown
 	Aspose.Email.dll!#=qaZ1xMXqCYtFeDGhG8UEKs8ogA2yMoGDKvI8e0ouwHoM=.#=zjgL832yrhagsFuyIce7RxMSripAJwXhuuw==()	Unknown
 	Aspose.Email.dll!#=qaZ1xMXqCYtFeDGhG8UEKs8ogA2yMoGDKvI8e0ouwHoM=.#=z13iXmS3Ko71DDmor0zKP1AllP7yxNu7VTg==(object[] #=zmKo2b0Q=, System.Type[] #=zbof9_QU=, System.Type[] #=zbvV1my8=, object[] #=z$OKRnHA=)	Unknown
 	Aspose.Email.dll!#=qaZ1xMXqCYtFeDGhG8UEKs8ogA2yMoGDKvI8e0ouwHoM=.#=z$Daa9DCCc$SHPx_EjGL0j1TRzFss(System.IO.Stream #=zmKo2b0Q=, string #=zbof9_QU=, object[] #=zbvV1my8=, System.Type[] #=z$OKRnHA=, System.Type[] #=zhCBZklw=, object[] #=zTT_QbQU=)	Unknown
 	Aspose.Email.dll!#=qaZ1xMXqCYtFeDGhG8UEKs8ogA2yMoGDKvI8e0ouwHoM=.#=zf3aCMUCPNkXYt_RIaZEGejQ=(System.IO.Stream #=zmKo2b0Q=, string #=zbof9_QU=, object[] #=zbvV1my8=)	Unknown
 	Aspose.Email.dll!#=zE3FlmL9kThQapgRo3m1koQcigIa3mLx08VEJ3Ss$D6Uz.#=zN6OEdJE=(Aspose.Email.Mapi.MapiMessage #=zTs5AA6A0sJqO)	Unknown
 	Aspose.Email.dll!#=zE3FlmL9kThQapgRo3m1koQcigIa3mLx08VEJ3Ss$D6Uz.#=zgd29ql8HWxdt(Aspose.Email.MailMessage #=zAfAl88pJOJe3JrxB6w==, Aspose.Email.Mapi.MapiMessage #=zTs5AA6A0sJqO, int #=zX1iAr5w=)	Unknown
 	Aspose.Email.dll!#=zE3FlmL9kThQapgRo3m1koQcigIa3mLx08VEJ3Ss$D6Uz.#=zr4tTHdwGBoY1(Aspose.Email.MailMessage #=zAfAl88pJOJe3JrxB6w==, Aspose.Email.Mapi.MapiMessage #=zTs5AA6A0sJqO)	Unknown
 	[Native to Managed Transition]	
 	[Managed to Native Transition]	
 	Aspose.Email.dll!#=qaZ1xMXqCYtFeDGhG8UEKs8ogA2yMoGDKvI8e0ouwHoM=.#=zarzlrCQWRXqZnqX2D877HkfwAQeT1r0ALg==(System.Reflection.MethodBase #=zmKo2b0Q=, object #=zbof9_QU=, object[] #=zbvV1my8=)	Unknown
 	Aspose.Email.dll!#=qaZ1xMXqCYtFeDGhG8UEKs8ogA2yMoGDKvI8e0ouwHoM=.#=zi3nmYc89txCtzvVUO6Gearb6n8gQh7Mped9hcn6Xs7Rh(System.Reflection.MethodBase #=zmKo2b0Q=, object #=zbof9_QU=, object[] #=zbvV1my8=, bool #=z$OKRnHA=)	Unknown
 	Aspose.Email.dll!#=qaZ1xMXqCYtFeDGhG8UEKs8ogA2yMoGDKvI8e0ouwHoM=.#=zkwbzf55AJluZcQFsZGqCizQ=(System.Reflection.MethodBase #=zmKo2b0Q=, bool #=zbof9_QU=)	Unknown
 	Aspose.Email.dll!#=qaZ1xMXqCYtFeDGhG8UEKs8ogA2yMoGDKvI8e0ouwHoM=.#=zGNLgJhF8AvIIOAo_XVKd5HA=(#=qaZ1xMXqCYtFeDGhG8UEKs8ogA2yMoGDKvI8e0ouwHoM= #=zmKo2b0Q=, #=qmowOLA6oJSUu70iPq1KYme4vIPrjtgJTRR7wN99CU40= #=zbof9_QU=)	Unknown
 	Aspose.Email.dll!#=qaZ1xMXqCYtFeDGhG8UEKs8ogA2yMoGDKvI8e0ouwHoM=.#=z$E0rVBf4k_Rfg4CaH5hGH3k=()	Unknown
 	Aspose.Email.dll!#=qaZ1xMXqCYtFeDGhG8UEKs8ogA2yMoGDKvI8e0ouwHoM=.#=zX3J_rshguMooe98V5FI_fJo=(bool #=zmKo2b0Q=)	Unknown
 	Aspose.Email.dll!#=qaZ1xMXqCYtFeDGhG8UEKs8ogA2yMoGDKvI8e0ouwHoM=.#=zjgL832yrhagsFuyIce7RxMSripAJwXhuuw==()	Unknown
 	Aspose.Email.dll!#=qaZ1xMXqCYtFeDGhG8UEKs8ogA2yMoGDKvI8e0ouwHoM=.#=z13iXmS3Ko71DDmor0zKP1AllP7yxNu7VTg==(object[] #=zmKo2b0Q=, System.Type[] #=zbof9_QU=, System.Type[] #=zbvV1my8=, object[] #=z$OKRnHA=)	Unknown
 	Aspose.Email.dll!#=qaZ1xMXqCYtFeDGhG8UEKs8ogA2yMoGDKvI8e0ouwHoM=.#=z$Daa9DCCc$SHPx_EjGL0j1TRzFss(System.IO.Stream #=zmKo2b0Q=, string #=zbof9_QU=, object[] #=zbvV1my8=, System.Type[] #=z$OKRnHA=, System.Type[] #=zhCBZklw=, object[] #=zTT_QbQU=)	Unknown
 	Aspose.Email.dll!#=qaZ1xMXqCYtFeDGhG8UEKs8ogA2yMoGDKvI8e0ouwHoM=.#=zf3aCMUCPNkXYt_RIaZEGejQ=(System.IO.Stream #=zmKo2b0Q=, string #=zbof9_QU=, object[] #=zbvV1my8=)	Unknown
 	Aspose.Email.dll!#=zE3FlmL9kThQapgRo3m1koQcigIa3mLx08VEJ3Ss$D6Uz.#=zN6OEdJE=(Aspose.Email.Mapi.MapiMessage #=zTs5AA6A0sJqO)	Unknown
 	Aspose.Email.dll!Aspose.Email.MailMessage.#=zsSIBjfUodDqi(System.IO.Stream #=zC2$XhhM=, Aspose.Email.MsgLoadOptions #=z$o6eYFw=)	Unknown
 	Aspose.Email.dll!Aspose.Email.MailMessage.#=zlDqeJnyOP0UI(System.IO.Stream #=zC2$XhhM=, Aspose.Email.LoadOptions #=z$o6eYFw=)	Unknown
 	Aspose.Email.dll!Aspose.Email.MailMessage.Load(System.IO.Stream stream)	Unknown
 	Aspose.Email.dll!Aspose.Email.MailMessage.Load(string fileName)	Unknown

Please let me know if there is a way to have method finish or at least fail instead of hanging?

Thanks,
Grzegorz

Just to confirm, we are using .net framework dll.
I’ve just checked and .net 8 does not hang, but we need to use .net framework for now.
Edit: sorry I was wrong it hangs in all frameworks (.net framework and .net 8 as well) after I loaded a license

Hello @GrzegorzNx,

Thank you for contacing us.
Please try using the MsgLoadOptions.Timeout property. The timeout limits the time in milliseconds while loading messages, ensuring that the process does not take longer than necessary.

For example, how to set the timeout to 5 seconds:

var mail = MailMessage.Load("C:\\temp\\test\\56bb200192d061c39e16abbca8b0cc38.450560.MSG", new MsgLoadOptions {Timeout = 5000});

Also, there is MsgLoadOptions.TimeoutReached event that raised if the time is out:

loadOptions.TimeoutReached += (object sender, EventArgs args) =>
{
	// do something
};

Hi,
I’ve tried Timeout and TimeoutReached but it is not called even after long wait.

Hi @GrzegorzNx ,

Could you please clarify what MessageClass the original message has?

Thanks.

@GrzegorzNx
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): EMAILNET-41303

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

Message class is IPM.Note
image.png (1.4 KB)

I see, thanks for the info.