Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

A first chance exception of type 'System.Net.Mail.SmtpException' occurred in System.d

Today when I woke up to start working on my sms bomber project again I was continually getting "A first chance exception of type 'System.Net.Mail.SmtpException' occurred in System.dll" when I wasn't getting that at all yesterday. I have the bomber running off of 5 BackGroundWorkers on a timer. I tried 3 different emails and the last one I tried sent about 4 messages then went to doing the error again.

Edit: Just bought an smtp server and that is doing it as well.
Check the inner exception and let us know what it is.
(Jun 27, 2013 12:34 PM)Cody8295 Wrote:  Check the inner exception and let us know what it is.
There isn't any. It only happens when I try to send. And it sends a few but others don't.
(Jun 27, 2013 12:56 PM)ExaNet Wrote:  There isn't any. It only happens when I try to send. And it sends a few but others don't.

It's possible the SMTP server you're using is throttling your sending, however I'm not sure if that would create an exception. Which mail server are you using?
(Jun 27, 2013 12:56 PM)ExaNet Wrote:  There isn't any. It only happens when I try to send. And it sends a few but others don't.

I meant, do a try/catch, and catch for SmtpExceptions, then let us know the message.
(Jun 27, 2013 01:00 PM)Cody8295 Wrote:  I meant, do a try/catch, and catch for SmtpExceptions, then let us know the message.
Lol, when I switched to my smtp server I forgot to change the info on all of the workers. Working now, thanks!


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C] by maryousJul 24, 2022 03:35 PM 0 160 Jul 24, 2022 03:35 PM
Last Post: maryous
[C] by LunarManureDec 10, 2020 05:21 PM 13 531 Dec 10, 2020 05:21 PM
Last Post: LunarManure
[C#] by KUi29929Aug 11, 2020 12:09 PM 1 295 Aug 11, 2020 12:09 PM
Last Post: VisualSoft