Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET Objects

 AfterLogic Forum : MailBee.NET Objects
Subject Topic: error i get when sending Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
raindm
Groupie
Groupie
Avatar

Joined: 31 January 2008
Location: Israel
Online Status: Offline
Posts: 44
Posted: 19 July 2009 at 5:42am | IP Logged Quote raindm

Hello

Sometimes i get the following error:
"Operation is not valid due to the current state of the object." I catch it when executing the code (sending email)
objMailer.Send(m_strBounceMail, (string)null);

This usually happens sometimes for hotmail.com and rarely for yahoo.com, sometimes resending solves the problems.

If you have any ideas what could cause the this error i would really aprehiate it..
Back to Top View raindm's Profile Search for other posts by raindm
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 20 July 2009 at 2:06am | IP Logged Quote Igor

To let us help you on this, please enable logging SMTP session into a file, reproduce the issue and provide us with the log file for examination.

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

Joined: 31 January 2008
Location: Israel
Online Status: Offline
Posts: 44
Posted: 23 July 2009 at 6:19am | IP Logged Quote raindm

Good idea, just when i enable logging and since i am using my own threads to send i get the error sometimes:
Error: IOException occurred. InnerException message follows: The process cannot access the file 'c:\Log\SmtpLog.txt' because it is being used by another process.

How do i make it work if i use my own threads?
Back to Top View raindm's Profile Search for other posts by raindm
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 23 July 2009 at 6:36am | IP Logged Quote Igor

Quote:
This usually happens sometimes for hotmail.com and rarely for yahoo.com, sometimes resending solves the problems.


Please check that multiple threads aren't using the same instanse of Smtp object; each thread should have it's own instance.

Quote:
How do i make it work if i use my own threads?


We suggest using this property for synchronization.

Quote:
Error: IOException occurred. InnerException message follows: The process cannot access the file 'c:\Log\SmtpLog.txt' because it is being used by another process.


Which method throws such exception? Perhaps, you can get the stack trace?

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

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