Author: Wolfpac | Posted on: 12/3/2008 7:50:46 AM | Views : 519

 Exception Details: System.Net.Sockets.SocketException: No connection
could be made because the target machine actively refused it
I have an applications that runs fine on my local development and on the testing server (2003 server). Recently we upgraded Live server to 2003 and the email function of the system is giving out the above error. It is trying to communicate with our Exchange server. I am guessing it is something to do with the web server rather than exchange because my local machine works fine???? Any help is appreciated.
Below is my code, I did not specify any smtp host and for some reason the application is talking to our exchange server

Dim smtp As New SmtpClient()
Dim mail As New MailMessage()
mail.IsBodyHtml = True
mail.From = New MailAddress(< ...

Go to the complete details ...