A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond

please can you help, when i do my request form i am getting an error. this happens when it is called over the web externally when i launch in visual stuido it works fine, i am local to the smtp server. it is an Exchange 2003 server. It has an address published, i can connect to port 25 with telnet to the dnsname.

 

I have many different snippets of code i have tried in a bid to get to the root, i think it cant authenticate. i have assigned 3 buttons to different subs for the mail send, noe of which work

 

A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 217.41.13.159:25

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.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 217.41.13.159:25

Source Error:

Line 39:         Dim MailToken As String = My.User.Name
Line 40: 
Line 41:         client.Send(msg)
Line 42: 
Line 43:     End Sub
0 Simon 1/26/2008 2:08:35 PM

Hi, 

Simon Purr:
Line 39:         Dim MailToken As String = My.User.Name
Line 40: 
Line 41:         client.Send(msg)
Line 42: 
Line 43:     End Sub
0 Zhao 1/29/2008 11:14:42 AM

Yeah it was a connection issue, but the problem was the DNS name resolution. When it was resolving the DNS name. With the server being internal, it cant resolve its own external DNS name. An ammend in DNS adding a host record for www in the the dns zone sorted the problem. was also sorted by using the internal ip of the web server.

0 Simon 1/29/2008 2:12:00 PM

Hi Simon,

Great, here are some general troubleshooting steps for such kind of issue from our Knowledge Base:

http://support.microsoft.com/kb/115492/en-us


Zhao Ji Ma
Sincerely,
Microsoft Online Community Support

€œPlease remember to click €œMark as Answer€ on the post that helps you, and to click €œUnmark as Answer€ if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. €
0 Zhao 1/30/2008 1:29:10 AM
Reply:

(Thread closed)