472,981 Members | 1,512 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,981 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 90905
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...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
4
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.