Free Support Forum - aspose.com

Can't understand error with obfuscated code

I have an application that I can run fine on my dev machine, but am unable to get it to work on our qa server. This application accesses an inbox using the Aspose imapClient and loops through the found emails. (Our dev and QA servers run on different domains).

The errors that I am getting are the following, anyway for me to get a better understanding about what is causing the error?

12-10-2009 18:20:15:846 [12][ERROR]: GersonLehrman.Consultations.Scheduling.Response.ILogger - Error attempting to run service processes. <System.NullReferenceException: Object reference not set to an instance of an object.
at Aspose.Network.x808d0de58fa7b39f.Write(Byte[] buffer, Int32 offset, Int32 size)
at Aspose.Network.x05fb92bf3ab4b1c5.xbb7550bbb62a218c()
at Aspose.Network.Imap.xc8a1d7db7ff34f86.x2de48dbd5ff873e9(x0c3e3e9e008c2f9f x79ee3f6bdf75f984, String xffe521cc76054baf)
at Aspose.Network.Imap.xa9ecb94214a7b943.x2de48dbd5ff873e9(x0c3e3e9e008c2f9f x79ee3f6bdf75f984, String x1f25abf5fb75e795)
at Aspose.Network.Imap.x2b0bd6f3bb3a09bb.xa1cd19ed781927c5()
at Aspose.Network.Imap.ImapClient.Disconnect()
at GersonLehrman.Consultations.Scheduling.Response.InboxPoller.PollInbox()
at GLG.CallScheduling.Service.RunServiceProcesses()
at GLG.CallScheduling.Service.OnElapsedTime(Object source, ElapsedEventArgs e)>
12-10-2009 18:20:15:831 [24][ERROR]: GersonLehrman.Consultations.Scheduling.Response.ILogger - Error attempting to run service processes. <System.NullReferenceException: Object reference not set to an instance of an object.
at Aspose.Network.x05fb92bf3ab4b1c5.xbb7550bbb62a218c()
at Aspose.Network.Imap.xc8a1d7db7ff34f86.x2de48dbd5ff873e9(x0c3e3e9e008c2f9f x79ee3f6bdf75f984, String xffe521cc76054baf)
at Aspose.Network.Imap.xa9ecb94214a7b943.x2de48dbd5ff873e9(x0c3e3e9e008c2f9f x79ee3f6bdf75f984, String x1f25abf5fb75e795)
at Aspose.Network.Imap.x2b0bd6f3bb3a09bb.xa1cd19ed781927c5()
at Aspose.Network.Imap.ImapClient.Disconnect()
at GersonLehrman.Consultations.Scheduling.Response.InboxPoller.PollInbox()
at GLG.CallScheduling.Service.RunServiceProcesses()
at GLG.CallScheduling.Service.OnElapsedTime(Object source, ElapsedEventArgs e)>

Thanks,
Denise

Hi Denise,

Could you please share some more details about the environment of you QA server e.g. OS (32/64 bit), .NET framework and Aspose.Network version? Are you using automated testing tool or a .NET desktop/console application? We will try to analyze it using the similar environment and post the feedback here.

I've attached the more important error below, it ocurrs upon trying to connect using the imapClient:

12-10-2009 18:03:23:643 [4][ERROR]: GersonLehrman.Consultations.Scheduling.Response.ILogger - Error Polling Messages <System.ArgumentNullException: Value cannot be null.
Parameter name: stream
at Aspose.Network.xdc75a04460889148..ctor(Stream stream)
at Aspose.Network.x12acae4d74033a46..ctor(Stream stream)
at Aspose.Network.Imap.x0c3e3e9e008c2f9f.xc2f01cb70e7380c2(String x64f259306803411c, Int32 x200aedbf6c3c4174)
at Aspose.Network.Imap.x2b0bd6f3bb3a09bb.xc2f01cb70e7380c2(String x64f259306803411c, Int32 x200aedbf6c3c4174)
at Aspose.Network.Imap.ImapClient.xc2f01cb70e7380c2()
at Aspose.Network.Imap.ImapClient.Connect()
at GersonLehrman.Consultations.Scheduling.Response.InboxPoller.PollInbox()>

To answer your questions above:

The machine in which it is failing is running Windows Server 2003 SP2, 32 bit. The windows service application is running under .NET 3.5, and is using Aspose.Network.dll version 4.7.1.0.

Please note that the service is fully working on my local machine, we are only seeing these connection issues on our QA machine.

Thanks,
Denise

Hi Denise,

Please try the attached dll.

Thanks