Login  
Search All Forums
Dart Home | PowerTCP Mail for ActiveX | Custom Development Reply | PowerTCP Mail for ActiveX Topics | Forums   
AuthorForum: PowerTCP Mail for ActiveX
Topic: IMAP problem
nadavk72
nadavk@prolify.com

From: Natania, Israel
Posts: 4
Member Since: 07/05/06
posted July 5, 2006 10:04 AM

Hi,
I'm getting an ImapResponseEventArgs with the following exception on both 'EndSearch' and 'EndNoop' events: "The client is currently executing a command that must be completed before any other command can be executed." (_COMPlusExceptionCode -532459699)

Did someone saw this kind of error...
Is it a dart exception or the IMAP server exception?

btw: my IMAP server is fastmail.fm

thanks in advance.

Raj

From: Rome, NY, USA
Posts: 389
Member Since: 02/01/06
posted July 5, 2006 10:25 AM

Do you see the same problem if you try this with the IMAP Client sample?

Please take a look at the trace, and share it. It might throw some light on what was the last command sent and what is going on between the Client and the Server internally.

-Raj
nadavk72
nadavk@prolify.com

From: Natania, Israel
Posts: 4
Member Since: 07/05/06
posted July 12, 2006 9:42 AM

How do I generate a trace log.
I have tried to register on the Trace event
but I'm not getting this event.
Is there a better/simple way to turn on the trace.

Raj

From: Rome, NY, USA
Posts: 389
Member Since: 02/01/06
posted July 12, 2006 10:53 AM

Please refer the IMAP Client sample, which creates a trace of the session.
Trace is created in Options--Trace Menu, and then this can be saved using File--SaveAs menu.

Do you get the same error, using the IMAP Client sample?

-Raj
nadavk72
nadavk@prolify.com

From: Natania, Israel
Posts: 4
Member Since: 07/05/06
posted July 12, 2006 11:20 AM

The reason I didn't try using the IMAP Client sample is because this error happens only from time to time, and not always. But when it happens I'm not getting any events from the IMAP server.
Actually I'm getting the error on my next noop cycle.
Temporarily, to solve the problem, when ever I I’m getting this error message
 I’m replacing my IMAP object with a new one (Dispose the old one, login with the new one), and that solve my problem. The problem with this solution is that I depend on the noop interval which was set to 20 min.

About the trace event, I wrote the followed method, is it ok? Do I need to ask about e.Exception?

private void receivingComponent_Trace(object sender, SegmentEventArgs e)
{
// Append data to a file
System.IO.FileStream file = new System.IO.FileStream("c:\\Temp\\dart_trace.txt", System.IO.FileMode.Append);
file.Write(e.Segment.Buffer, 0, e.Segment.Count);
file.Close();
}

What are my alternatives for switching on/off the trace (reg/unreg from the trace event?)
Can I control the trace severity?

Thanks in advance.
Raj

From: Rome, NY, USA
Posts: 389
Member Since: 02/01/06
posted July 12, 2006 12:20 PM

The code seems good.

When you say:
"But when it happens I'm not getting any events from the IMAP server."

I guess the Control freezes, due to some reason. Thus blocking all events. In such a scenario, the trace log will show what happened before the control stopped.

-Raj
bauz

From: coldrerio, Switzerland
Posts: 2
Member Since: 05/14/06
posted July 27, 2006 1:09 PM

Hello, I have the same problem and it happens always when I try to connect to our mailserver using the Asp.Net Imap client using two separate browser at the precise same time.
The web application run on a IIS6 and it the imap component give that error when 2 or more connection on different mailbox are read.

Do you know what the problem is???
Raj

From: Rome, NY, USA
Posts: 389
Member Since: 02/01/06
posted July 28, 2006 11:36 AM

Before we begin, are you using a trial version of the product, and if not, which licensed version of the product do you have running?

Do you see the same problem if you try this with the IMAP Client ASP.NET sample?

Please create a Trace Log using the Trace Event, and share it. It will be of help.

Regards,
Raj
Arjun

From: Rome, NY, USA
Posts: 137
Member Since: 09/17/07
posted February 6, 2008 5:22 PM

Hello,

As the customer did not respond, referring the sample and checking the trace log of the communication seem to have shown the cause of the issue and the direction to resolve it.

Regards,
Arjun
ktruyens

From: Hoegaarden, Belgium
Posts: 2
Member Since: 11/04/11
posted November 4, 2011 9:37 AM

I am encountering the same issue in an automated deamon. I cannot reconstruct this with the 'sample' since that is manually triggered. I also don't get this problem all the time, but every now and then.

I would like to understand what causes this error and how to avoid it.

Here is an extract of my Trace up to where it stops:

* OK The Microsoft Exchange IMAP4 service is ready.
A3 CAPABILITY
* CAPABILITY IMAP4 IMAP4rev1 AUTH=NTLM AUTH=GSSAPI AUTH=PLAIN STARTTLS CHILDREN IDLE NAMESPACE LITERAL+
A3 OK CAPABILITY completed.
A2 LOGIN "** REMOVED **" "** REMOVED **"
A2 OK LOGIN completed.
A4 LIST "" ""
* LIST (\Noselect) "/" ""
A4 OK LIST completed.
A5 LIST "" "%"
* LIST (\Marked \HasNoChildren) "/" INBOX
* LIST (\HasNoChildren) "/" "Bo&AO4-te d'envoi"
* LIST (\HasNoChildren) "/" Brouillons
* LIST (\HasNoChildren) "/" Calendrier
* LIST (\HasNoChildren) "/" Contacts
* LIST (\HasNoChildren) "/" "Courrier ind&AOk-sirable"
* LIST (\HasNoChildren) "/" Draft
* LIST (\HasNoChildren) "/" "&AMk-l&AOk-ments envoy&AOk-s"
* LIST (\Marked \HasNoChildren) "/" "&AMk-l&AOk-ments supprim&AOk-s"
* LIST (\HasNoChildren) "/" Journal
* LIST (\HasNoChildren) "/" Notes
* LIST (\HasChildren) "/" "Probl&AOg-mes de synchronisation"
* LIST (\HasNoChildren) "/" T&AOI-ches
A5 OK LIST completed.
A6 EXAMINE INBOX
Nick B (Admin)

From: Utica, NY USA
Posts: 619
Member Since: 05/25/10

Extra Support Options
Custom Application Development

posted November 7, 2011 10:00 AM

Hello,

What method is the exception thrown on? What method are you calling before it? What is the value of the Busy property when the error occurs? Is your application multithreaded or asynchronous?
ktruyens

From: Hoegaarden, Belgium
Posts: 2
Member Since: 11/04/11
posted November 8, 2011 8:09 AM

it's an async process. the imap control is used in a scheduled program which starts and stops after processing.

inserted some debugging since it's not a manual process, but it seems to happen on the mailbox.purge() method. Before this, there is no significant action. The busy-flag was indeed 'True'. The idea was to purge then read the messages on the mail server.

I've now moved the purge to the end of the process, so basically first processing the box, then purging it. I've also put in a dummy try-catch since the purge is not critical, so in effect i don't get this error anymore.

I did not implement checks on the 'bussy' flag. Should this be done? I assumed async implementation meant that the command/method completes before moving on to next code - and hence bussy-flag would always be false. Is this an incorrect assumption?


Nick B (Admin)

From: Utica, NY USA
Posts: 619
Member Since: 05/25/10

Extra Support Options
Custom Application Development

posted November 8, 2011 1:24 PM

Hello,

Yes, that is incorrect. Asynchronous means that more than one thing could occur at one time; so if you've called an asynchronous method, and after that call another method that may interfere with the asynchronous method (before it returns in the asynchronous method's callback), then there may be some issues.

The advantage of asynchronous programming is that the main UI thread is not blocked while methods that take a while to return are processed.
Reply | PowerTCP Mail for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX