ASP.NET won't email form

gmc8757

Member
Feb 9, 2005
170
0
0
I have a form that's pretty simple, it just emails someone with a message and what not. The user says that about 2 weeks ago the form just stopped working. So I took a look at the code, noticed it was pointed to a old email server (which was taken offline more than 2 weeks but that's a different story) so i changed it to point to the new email server, but still get the same error- The transport failed to connect to the server. I have no idea, the mail server and web server are on the same subnet, sit right next to eachother, i tried refering to it by IP, DNS, still nothing.

I restored the code from 1 month ago just incase someone changed something, but it was identical.

Any ideas what it could be?
 

Rilex

Senior member
Sep 18, 2005
447
0
0
Does that server accept unauthenticated SMTP sessions, or are you passing authentication in the code?
 

gmc8757

Member
Feb 9, 2005
170
0
0
We're not passing authentication through the script. Under the "Default SMTP Virtual server" properties, i have it set to allow anonymous access. Still nothing.

Thanks.
Joe
 

JDMnAR1

Lifer
May 12, 2003
11,984
1
0
But does your new email server accept anonymous SMTP connections? If nothing changed on your form/web server, then it almost has to be a configuration issue on the new email server.
 

gmc8757

Member
Feb 9, 2005
170
0
0
Yea, it does accept anonymous SMTP connections, i'm able to run a vbscript that sends an email anonymously from the same server using the same exchange server.
 

garak

Member
Mar 7, 2001
126
0
0
Is your SMTP component throwing an exception? Any chance of getting the exact exception message, as well as any inner exceptions? Maybe a stack trace?
 

gmc8757

Member
Feb 9, 2005
170
0
0
Thanks a lot for trying to help out. Here's what we get:


Server Error in '/JobApp' Application.
--------------------------------------------------------------------------------

The transport failed to connect to the server.
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 transport failed to connect to the server.

Source Error:


[No relevant source lines]


Source File: C:\Inetpub\wwwroot\JobApp\index.aspx.vb Line: 474

Stack Trace:


[COMException (0x80040213): The transport failed to connect to the server.
]

[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(Object obj, String methodName, Object[] args) +58

[HttpException (0x80004005): Could not access 'CDO.Message' object.]
System.Web.Mail.LateBoundAccessHelper.CallMethod(Object obj, String methodName, Object[] args) +113
System.Web.Mail.CdoSysHelper.Send(MailMessage message) +1861
System.Web.Mail.SmtpMail.Send(MailMessage message) +153
JobApp.index.btnSubmit_Click(Object sender, EventArgs e) in C:\Inetpub\wwwroot\JobApp\index.aspx.vb:474
System.Web.UI.WebControls.Button.******(EventArgs e) +108
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostB
ckEvent(String eventArgument) +58
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain() +1292


 

garak

Member
Mar 7, 2001
126
0
0
hmm... that didn't seem to reveal anything that you didn't already say. Oh well. Are you using the IIS SMTP server, Exchange Server, or something else? Have you tried pinging the mail server from the web server? Any new firewall software installed lately?

Something about this problem seems familiar, as if I've run into it before. I wish I could remember...
 

gmc8757

Member
Feb 9, 2005
170
0
0
I really appreciate you guys taking time to review this problem.

However, Good News! It's fixed.

Wanna know what I did? I opened the index.aspx page in visual studio, set it as the default start page, tested it, and it worked. Unbelievable. i spent too much time on this for it to be a simple thing i could never think of being. Anyway, it's done. Thanks again.
 

garak

Member
Mar 7, 2001
126
0
0
Well... that at least proves that your code works, and that your development box can connect to the mail server. Just make sure the form works on your web server before declaring victory. Good luck, and I hope it's working again .
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |