473,543 Members | 2,488 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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
]

[TargetInvocatio nException: Exception has been thrown by the target of an
invocation.]
System.RuntimeT ype.InvokeDispM ethod(String name, BindingFlags invokeAttr,
Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture,
String[] namedParameters ) +0
System.RuntimeT ype.InvokeMembe r(String name, BindingFlags invokeAttr,
Binder binder, Object target, Object[] args, ParameterModifi er[] modifiers,
CultureInfo culture, String[] namedParameters ) +473
System.Web.Mail .LateBoundAcces sHelper.CallMet hod(Object obj, String
methodName, Object[] args) +58

[HttpException (0x80004005): Could not access 'CDO.Message' object.]
System.Web.Mail .LateBoundAcces sHelper.CallMet hod(Object obj, String
methodName, Object[] args) +113
System.Web.Mail .CdoSysHelper.S end(MailMessage message) +1840
System.Web.Mail .SmtpMail.Send( MailMessage message) +150
Intranet.srcMai l.sendMailNow(S tring listID) in c:\documents and
settings\sean\v swebcache\srcfi leserver\intran et\srcmail.cs:1 28
Intranet.srcCom mon.fnSendMail( String strTo, String strSubject, String
strBody, String list_ID, String groupID, String Mailing) in c:\documents and
settings\sean\v swebcache\srcfi leserver\intran et\srccommon.cs :257
Intranet.srcCom mon.doMail(Bool ean bTest, String strEmailAddress , String
txtBody, String txtSubject, String listID, String groupID, String Mailer) in
c:\documents and
settings\sean\v swebcache\srcfi leserver\intran et\srccommon.cs :100
Intranet.TestMa ilToSignups.But ton1_Click(Obje ct sender, EventArgs e) in
c:\documents and
settings\sean\v swebcache\srcfi leserver\intran et\testmailtosi gnups.aspx.cs:1 2
3
System.Web.UI.W ebControls.Butt on.OnClick(Even tArgs e) +108

System.Web.UI.W ebControls.Butt on.System.Web.U I.IPostBackEven tHandler.RaiseP o
stBackEvent(Str ing eventArgument) +57
System.Web.UI.P age.RaisePostBa ckEvent(IPostBa ckEventHandler
sourceControl, String eventArgument) +18
System.Web.UI.P age.RaisePostBa ckEvent(NameVal ueCollection postData) +33
System.Web.UI.P age.ProcessRequ estMain() +1277

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

Version Information: Microsoft .NET Framework Version:1.1.432 2.573; ASP.NET
Version:1.1.432 2.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(str ing listID)

{

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

if(mBCC != "")

myMail.Bcc = mBCC;

myMail.From = FromMail;

myMail.Subject = mSubject;

myMail.BodyForm at = mFormat;

myMail.Body = mBody;

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

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

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

SmtpMail.SmtpSe rver = mSMTPServer;

SmtpMail.Send(m yMail);

logMailnow(ToMa il,listID);

}
Nov 16 '05 #1
2 91017
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******@earth link.net> wrote in message
news:aY******** *******@newsrea d3.news.atl.ear thlink.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
]

[TargetInvocatio nException: Exception has been thrown by the target of an invocation.]
System.RuntimeT ype.InvokeDispM ethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture,
String[] namedParameters ) +0
System.RuntimeT ype.InvokeMembe r(String name, BindingFlags invokeAttr,
Binder binder, Object target, Object[] args, ParameterModifi er[] modifiers, CultureInfo culture, String[] namedParameters ) +473
System.Web.Mail .LateBoundAcces sHelper.CallMet hod(Object obj, String
methodName, Object[] args) +58

[HttpException (0x80004005): Could not access 'CDO.Message' object.]
System.Web.Mail .LateBoundAcces sHelper.CallMet hod(Object obj, String
methodName, Object[] args) +113
System.Web.Mail .CdoSysHelper.S end(MailMessage message) +1840
System.Web.Mail .SmtpMail.Send( MailMessage message) +150
Intranet.srcMai l.sendMailNow(S tring listID) in c:\documents and
settings\sean\v swebcache\srcfi leserver\intran et\srcmail.cs:1 28
Intranet.srcCom mon.fnSendMail( String strTo, String strSubject, String
strBody, String list_ID, String groupID, String Mailing) in c:\documents and settings\sean\v swebcache\srcfi leserver\intran et\srccommon.cs :257
Intranet.srcCom mon.doMail(Bool ean bTest, String strEmailAddress , String
txtBody, String txtSubject, String listID, String groupID, String Mailer) in c:\documents and
settings\sean\v swebcache\srcfi leserver\intran et\srccommon.cs :100
Intranet.TestMa ilToSignups.But ton1_Click(Obje ct sender, EventArgs e) in
c:\documents and
settings\sean\v swebcache\srcfi leserver\intran et\testmailtosi gnups.aspx.cs:1 2 3
System.Web.UI.W ebControls.Butt on.OnClick(Even tArgs e) +108

System.Web.UI.W ebControls.Butt on.System.Web.U I.IPostBackEven tHandler.RaiseP o stBackEvent(Str ing eventArgument) +57
System.Web.UI.P age.RaisePostBa ckEvent(IPostBa ckEventHandler
sourceControl, String eventArgument) +18
System.Web.UI.P age.RaisePostBa ckEvent(NameVal ueCollection postData) +33
System.Web.UI.P age.ProcessRequ estMain() +1277

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

Version Information: Microsoft .NET Framework Version:1.1.432 2.573; ASP.NET Version:1.1.432 2.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(str ing listID)

{

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

if(mBCC != "")

myMail.Bcc = mBCC;

myMail.From = FromMail;

myMail.Subject = mSubject;

myMail.BodyForm at = mFormat;

myMail.Body = mBody;

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

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

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

SmtpMail.SmtpSe rver = mSMTPServer;

SmtpMail.Send(m yMail);

logMailnow(ToMa il,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

--
Wierdy1024Poste d 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
1993
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 manager or anywhere on my PC. I DO have the VSTO Access Developer Extensions installed for 2003. Anyone have a clue what happened to the Add-in? ...
0
3781
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 with error code 128. and another one which is in a different directory is giving me Server Application Unavailable I am using ASP.NET 1.1.4322.0,...
3
544
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 web hosting company and when I try to run the site (which runs in our local IIS server), I get the following error: Server Error in '/New'...
4
3484
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 Text", "Msg Text") Exception = Could not access 'CDO.Message' object. Base Exception = The message could not be sent to the SMTP server. The...
0
1217
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 failed with error code -1073741819" The only resolution for this error is kill the aspnet_wp process on the server and deleting the ASPNet cache folder...
2
18136
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 hits enter, some times they get a 'Page Cannot be Displayed' error. The details of the error are: -----------------------------------------------------...
1
5300
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 specific error details and modify your source code appropriately. Compiler Error Message: The compiler failed with error code -1073741502. Detailed...
0
1513
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
3360
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 the Path parameter ..... My question is, how can i handle this error message. in other words, i would like the server in this case to display a...
0
7408
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7349
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7590
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7735
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7347
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
5885
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5271
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
1
968
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
636
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.