Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET Objects

 AfterLogic Forum : MailBee.NET Objects
Subject Topic: System.OverflowException Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
ImmoConnect
Newbie
Newbie
Avatar

Joined: 23 February 2009
Location: France
Online Status: Offline
Posts: 35
Posted: 15 January 2010 at 12:41am | IP Logged Quote ImmoConnect

Hello,

We have the following error when we try to retrieving a mail.

INFO 2010-01-14 16:33:21,218 [ManagerMail_"XXX" <xxx.xxx@xxx-xxx.com>] Rodacom.Mail.ManagerMail.MailerAccount DownloadEntireMessage --> Erreur lors du téléchargement du message complet (1228473941.972.xxx.xxx.org,S=71123). Message : User code has thrown an exception. InnerException message follows: L'opération arithmétique a provoqué un dépassement de capacité.
MailBee.MailBeeExternalException: User code has thrown an exception. InnerException message follows: L'opération arithmétique a provoqué un dépassement de capacité. ---> System.OverflowException: L'opération arithmétique a provoqué un dépassement de capacité.
   à f3.a(String A_0, Int32 A_1)
   à f3.a(String A_0)
   à MailBee.Mime.MessageParserConfig.Apply()
   à MailBee.Mime.MailMessage.g()
   à MailBee.Mime.MailMessage.get_From()
   à Rodacom.Mail.ManagerMail.MailerAccount.pop_MessageDownloaded (Object sender, Pop3MessageDownloadedEventArgs e)
   --- Fin de la trace de la pile d'exception interne ---
   à gp.a(Delegate A_0, Object[] A_1)
   à a4.b(Pop3MessageDownloadedEventArgs A_0)
   à a4.a(e9 A_0, gp A_1)
   à fz.Invoke(e9 A_0, gp A_1)
   à w.a(Int32 A_0)
   à c3.ak()
   à c3.b(Byte[] A_0, Int32 A_1, Int32 A_2, fb A_3)
   à c3.b(Byte[] A_0, fb A_1)
   à c3.b(String A_0, fb A_1)
   à bc.b(String A_0, fb A_1, Boolean A_2)
   à bc.a(String A_0, fb A_1, Boolean A_2)
   à a4.b(Int32 A_0, Int32 A_1)
   à bm.a(Int32 A_0, Int32 A_1)
   à bm.a(Boolean A_0, Int32 A_1, Int32 A_2)
   à MailBee.Pop3Mail.Pop3.DownloadEntireMessage(Int32 index)

We have retrieved the concerned mail by other way and it appears that it was a mail with an pdf attachement not valid.

We try to instanciate it with MailMessage, it works, but when we get a property, the same error than above occurs.

The method "DownloadEntireMessage" isntanciate a Mailmessage object and seems to retrieve at least one property from the message, that it makes the error occurs.

The problem is that we have no way to retrieve this not correct message and it is impossible to get it from the server (other than by our own way).

Do you have a workaroud for this please ?

Thank you by advance.

(I can provide you the concerned mail if you want to)

Regards.
Back to Top View ImmoConnect's Profile Search for other posts by ImmoConnect
 
ImmoConnect
Newbie
Newbie
Avatar

Joined: 23 February 2009
Location: France
Online Status: Offline
Posts: 35
Posted: 15 January 2010 at 1:48am | IP Logged Quote ImmoConnect

The mailbee dll's version is 5.8.2.173.

Regards.
Back to Top View ImmoConnect's Profile Search for other posts by ImmoConnect
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 15 January 2010 at 2:00am | IP Logged Quote Igor

Is the same issue reproduced with the latest version of the product?

For .NET 1.1 and above
For .NET 2.0 and above

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
ImmoConnect
Newbie
Newbie
Avatar

Joined: 23 February 2009
Location: France
Online Status: Offline
Posts: 35
Posted: 15 January 2010 at 5:19am | IP Logged Quote ImmoConnect

Hello,

Yes, it is the same thing.

This is the trace :


Exception non gérée : System.OverflowException: L'opération arithmétique a provoqué un dépassement de capacité.
   à f8.a(String A_0, Int32 A_1)
   à f8.a(String A_0)
   à MailBee.Mime.MessageParserConfig.Apply()
   à MailBee.Mime.MailMessage.g()
   à MailBee.Mime.MailMessage.get_Subject()
   à ConsoleApplication1.Program.Main(String[] args) dans C:\xxx\Program.cs:ligne 278
Appuyez sur une touche pour continuer...

The code is this following one :
MailMessage mm = new MailMessage();
mm.LoadMessage(@"D:\mailError.eml");
Console.WriteLine(mm.Subject);

The exception is thrown by the last line.

Thanks for your help.
Back to Top View ImmoConnect's Profile Search for other posts by ImmoConnect
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 15 January 2010 at 5:31am | IP Logged Quote Igor

Could you please provide us with a test message the issue can be reproduced on? You can attach the message to your post in AfterLogic HelpDesk. It would be also helpful if you provide some info about the machine your app powered by MailBee.NET is running on: Windows version, 32/64-bit system, .NET Framework version etc. Thank you.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
ImmoConnect
Newbie
Newbie
Avatar

Joined: 23 February 2009
Location: France
Online Status: Offline
Posts: 35
Posted: 15 January 2010 at 5:41am | IP Logged Quote ImmoConnect

Hello,

I just sent you the mailmessage with the help of the url you gave me.

The problem occurs on a customer pc, but this problem occurs also on mine computer which is a windows vista integral edition, 32 bits, .net framework 3.5 sp1, 2Gb ram, intel core duo 2,33Gb 2,29 Gb.

Regards.
Back to Top View ImmoConnect's Profile Search for other posts by ImmoConnect
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 15 January 2010 at 7:03am | IP Logged Quote Igor

Please try the fixed version found here. Does it help?

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
ImmoConnect
Newbie
Newbie
Avatar

Joined: 23 February 2009
Location: France
Online Status: Offline
Posts: 35
Posted: 15 January 2010 at 7:30am | IP Logged Quote ImmoConnect

Thank you very much, the problem is solve.

Does this correction solve the problem when we use DownloadEntireMessage method (I figure it use the same properties than the code I sent you, but it is to be sure) ?

Thanks a lot.

Regards.
Back to Top View ImmoConnect's Profile Search for other posts by ImmoConnect
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 15 January 2010 at 9:08am | IP Logged Quote Igor

No, the issue was caused by incorrectly UUEncoded attachment. Such situation was not taken into account by MailBee.NET Objects, and the exception was thrown on attempt to calculate UUE block size.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
ImmoConnect
Newbie
Newbie
Avatar

Joined: 23 February 2009
Location: France
Online Status: Offline
Posts: 35
Posted: 18 January 2010 at 12:08am | IP Logged Quote ImmoConnect

Hello,

Ok, the message is not correct, but will it be downloaded ?
Because, the main problem is that the message is blocked on the server. Even if we catche the exception and retreive all following messages, we don't want to have a message blocked in the server.

Thanks.
Back to Top View ImmoConnect's Profile Search for other posts by ImmoConnect
 
ImmoConnect
Newbie
Newbie
Avatar

Joined: 23 February 2009
Location: France
Online Status: Offline
Posts: 35
Posted: 19 January 2010 at 1:02am | IP Logged Quote ImmoConnect

Hello,

Sorry for asking more informations like that, but my english is not very good, and sometimes, I'm not sure to get the whole thing.

So, if the problem with DownloadEntireMessage is not solve, how can we get the not correct message, just not to let him on the server.

Thanks.
Back to Top View ImmoConnect's Profile Search for other posts by ImmoConnect
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 19 January 2010 at 1:41am | IP Logged Quote Igor

If I understand this correctly, the message WAS downloaded, MailBee.NET Objects just failed to parse it due to wrong structure. Anyway, the fix was added for this so it should be fine now, and you're probably not going to receive exceptions any more. If any issue occurs again, just let us know, we'll do our best to help you with that.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
ImmoConnect
Newbie
Newbie
Avatar

Joined: 23 February 2009
Location: France
Online Status: Offline
Posts: 35
Posted: 19 January 2010 at 2:16am | IP Logged Quote ImmoConnect

Thanks for your answer.

But no, the message wasn't downloaded.
The error happend before the message was downloaded and the message was still on the server.
It just wanted to be sure that the whole problem was solve.

I will let you know if the problem occurs again.

Thanks for you help.

Regards.
Back to Top View ImmoConnect's Profile Search for other posts by ImmoConnect
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide