473,403 Members | 2,222 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

The message could not be sent to the SMTP server. The transport error code was 0x80040217. The server response was not available

Hello all,

First off, if there is a better place to post for an answer to this
question, please feel free to point me there.

I have some very strange behavior happening with my System.web.mail objects.

I was able to run my application fine for roughly 1500 email messages. The
next time I tried sending mail, it stopped working with the message:
"
The message could not be sent to the SMTP server. The transport error code
was 0x80040217. The server response was not available

Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.Runtime.InteropServices.COMException: The message
could not be sent to the SMTP server. The transport error code was
0x80040217. The server response was not available

Source Error:
An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.
Stack Trace:
[COMException (0x80040211): The message could not be sent to the SMTP
server. The transport error code was 0x80040217. The server response was not
available
]

[TargetInvocationException: Exception has been thrown by the target of an
invocation.]
System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr,
Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture,
String[] namedParameters) +0
System.RuntimeType.InvokeMember(String name, BindingFlags invokeAttr,
Binder binder, Object target, Object[] args, ParameterModifier[] modifiers,
CultureInfo culture, String[] namedParameters) +473
System.Web.Mail.LateBoundAccessHelper.CallMethod(O bject obj, String
methodName, Object[] args) +58

[HttpException (0x80004005): Could not access 'CDO.Message' object.]
System.Web.Mail.LateBoundAccessHelper.CallMethod(O bject obj, String
methodName, Object[] args) +113
System.Web.Mail.CdoSysHelper.Send(MailMessage message) +1840
System.Web.Mail.SmtpMail.Send(MailMessage message) +150
Intranet.srcMail.sendMailNow(String listID) in c:\documents and
settings\sean\vswebcache\srcfileserver\intranet\sr cmail.cs:128
Intranet.srcCommon.fnSendMail(String strTo, String strSubject, String
strBody, String list_ID, String groupID, String Mailing) in c:\documents and
settings\sean\vswebcache\srcfileserver\intranet\sr ccommon.cs:257
Intranet.srcCommon.doMail(Boolean bTest, String strEmailAddress, String
txtBody, String txtSubject, String listID, String groupID, String Mailer) in
c:\documents and
settings\sean\vswebcache\srcfileserver\intranet\sr ccommon.cs:100
Intranet.TestMailToSignups.Button1_Click(Object sender, EventArgs e) in
c:\documents and
settings\sean\vswebcache\srcfileserver\intranet\te stmailtosignups.aspx.cs:12
3
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108

System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.RaisePo
stBackEvent(String eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler
sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData) +33
System.Web.UI.Page.ProcessRequestMain() +1277

----------------------------------------------------------------------------
----

Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET
Version:1.1.4322.573 "

My question is this: What would cause this behaviour? I have since changed
several lines of code to try to fix the problem, but have not had any
success. This has happened to me in the past and it seemed like rebooting
the server may have fixed it, not this time however.

Here's my code snippit:

public void sendMailNow(string listID)

{

MailMessage myMail = new MailMessage(); myMail.To = ToMail;

if(mBCC != "")

myMail.Bcc = mBCC;

myMail.From = FromMail;

myMail.Subject = mSubject;

myMail.BodyFormat = mFormat;

myMail.Body = mBody;

myMail.Fields["http://schemas.microsoft.com/cdo/configuration/smtpauthentica
te"] = 1;

myMail.Fields["http://schemas.microsoft.com/cdo/configuration/sendusername"]
= mUserName;

myMail.Fields["http://schemas.microsoft.com/cdo/configuration/sendpassword"]
= mPassword;

SmtpMail.SmtpServer = mSMTPServer;

SmtpMail.Send(myMail);

logMailnow(ToMail,listID);

}
Nov 16 '05 #1
2 90993
Sorry, I hit send prior to finishiing up the message:

All variables listed in my code at the bottom are set through properties...

It just seems strange to me that it works then stops. I'm using this for
emails to people who have signed up for newsletters (and there's only a
handful). Basically, I'm trying to let the other folks in my office manage
their own communciations with our clients through a web interface.

Thanks in advance for your help.

"Janna Deegan" <sp******@earthlink.net> wrote in message
news:aY***************@newsread3.news.atl.earthlin k.net...
Hello all,

First off, if there is a better place to post for an answer to this
question, please feel free to point me there.

I have some very strange behavior happening with my System.web.mail objects.
I was able to run my application fine for roughly 1500 email messages. The next time I tried sending mail, it stopped working with the message:
"
The message could not be sent to the SMTP server. The transport error code
was 0x80040217. The server response was not available

Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.Runtime.InteropServices.COMException: The message could not be sent to the SMTP server. The transport error code was
0x80040217. The server response was not available

Source Error:
An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.
Stack Trace:
[COMException (0x80040211): The message could not be sent to the SMTP
server. The transport error code was 0x80040217. The server response was not available
]

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture,
String[] namedParameters) +0
System.RuntimeType.InvokeMember(String name, BindingFlags invokeAttr,
Binder binder, Object target, Object[] args, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParameters) +473
System.Web.Mail.LateBoundAccessHelper.CallMethod(O bject obj, String
methodName, Object[] args) +58

[HttpException (0x80004005): Could not access 'CDO.Message' object.]
System.Web.Mail.LateBoundAccessHelper.CallMethod(O bject obj, String
methodName, Object[] args) +113
System.Web.Mail.CdoSysHelper.Send(MailMessage message) +1840
System.Web.Mail.SmtpMail.Send(MailMessage message) +150
Intranet.srcMail.sendMailNow(String listID) in c:\documents and
settings\sean\vswebcache\srcfileserver\intranet\sr cmail.cs:128
Intranet.srcCommon.fnSendMail(String strTo, String strSubject, String
strBody, String list_ID, String groupID, String Mailing) in c:\documents and settings\sean\vswebcache\srcfileserver\intranet\sr ccommon.cs:257
Intranet.srcCommon.doMail(Boolean bTest, String strEmailAddress, String
txtBody, String txtSubject, String listID, String groupID, String Mailer) in c:\documents and
settings\sean\vswebcache\srcfileserver\intranet\sr ccommon.cs:100
Intranet.TestMailToSignups.Button1_Click(Object sender, EventArgs e) in
c:\documents and
settings\sean\vswebcache\srcfileserver\intranet\te stmailtosignups.aspx.cs:12 3
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108

System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.RaisePo stBackEvent(String eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler
sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData) +33
System.Web.UI.Page.ProcessRequestMain() +1277

-------------------------------------------------------------------------- -- ----

Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573 "

My question is this: What would cause this behaviour? I have since changed several lines of code to try to fix the problem, but have not had any
success. This has happened to me in the past and it seemed like rebooting
the server may have fixed it, not this time however.

Here's my code snippit:

public void sendMailNow(string listID)

{

MailMessage myMail = new MailMessage(); myMail.To = ToMail;

if(mBCC != "")

myMail.Bcc = mBCC;

myMail.From = FromMail;

myMail.Subject = mSubject;

myMail.BodyFormat = mFormat;

myMail.Body = mBody;

myMail.Fields["http://schemas.microsoft.com/cdo/configuration/smtpauthentica te"] = 1;

myMail.Fields["http://schemas.microsoft.com/cdo/configuration/sendusername"] = mUserName;

myMail.Fields["http://schemas.microsoft.com/cdo/configuration/sendpassword"] = mPassword;

SmtpMail.SmtpServer = mSMTPServer;

SmtpMail.Send(myMail);

logMailnow(ToMail,listID);

}

Nov 16 '05 #2

replies probably a bit late :-) - but for those other visitors to th
site with this error:

It's caused by a wrong username or password for the SMTP server an
usually means that the server has disabled your account for spamming i
you've sent 1500 mails

--
Wierdy1024Posted from http://www.pcreview.co.uk/ newsgroup acces

Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Lauren Wilson | last post by:
Hi folks, Just "upgraded" from A2K to A2K3. Everything is just hunky dory (so far) -- EXCEPT that the Add-in I had with A2K that auto inserts error code is no longer available in the Add-in...
0
by: Yan | last post by:
Hi. I am having trouble running my aspx code. I created two simple webforms, which i try to run from two different directories one is giving me Compiler Error Message: The compiler failed...
3
by: Hamilton | last post by:
Hi there, I've seen this error appear a few times in newsgroups but unfortunately I haven't found one that actually provides a solution. I'm basically deploying a new website into an area at a...
4
by: cs_hart | last post by:
I am trying to send an email using our mailserver but keep getting an error. Here is the code: SmtpMail.SmtpServer = "MAILSERV.meas-inc.com" SmtpMail.Send(me@myserv.com", "someuser@mail.com", "Sub...
0
by: Ram | last post by:
Hey, I have a Windows 2000 Advanced Server SP4 with Framework 1.1 installed. I have an ASPNet website that every now and then I get the following error: "Compiler Error Message: The compiler...
2
by: sareena | last post by:
There is a problem with accessing an ASP appln hosted on a dedicated Win '03 load balanced server running IIS 6.0 in worker process isolation mode. When the user types in the URl of the appln and...
1
by: kmsandeep17 | last post by:
when i host my site on go daddy it give error Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following...
0
by: madank | last post by:
i m getting Error code 64- Host not available in my server system while i am trying to open my own site even though tomcat is working properly
1
by: kyrillos | last post by:
hello, i get the common error message when using the Server.MapPath() error. which is Server.MapPath() error 'ASP 0173 : 80004005' Invalid Path Character An invalid character was specified in...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.