testing the basic code shown here: http://docs.sendgrid.com/documentatio...
with my credentials of course, I get the exception "Unable to read data from the transport connection: net_io_connectionclosed".
Tried code in webforms and console app with same results.
Help get this topic noticed by sharing it on
Twitter,
Facebook, or email.
Twitter,
Facebook, or email.
C# exception "Unable to read data from the transport connection: net_io_connectionclosed"
Promoted
Response
-
Hi mdspeirs,
I had this issue a while back and it was resolved with fixing some settings in IIS/SMTP Virtual Server. Unfortunately, there are a number of setting that can potentially result in this error. I would start by trying some of these:
http://forums.asp.net/t/924682.aspx/1
Right click Default SMTP Virtual server.
Change IP address to All Unassigned
Let us know how it goes or if the error message changes.
-
Hi mdspeirs,
I had this issue a while back and it was resolved with fixing some settings in IIS/SMTP Virtual Server. Unfortunately, there are a number of setting that can potentially result in this error. I would start by trying some of these:
http://forums.asp.net/t/924682.aspx/1
Right click Default SMTP Virtual server.
Change IP address to All Unassigned
Let us know how it goes or if the error message changes. -
-
I saw a lot of posts similar to that, but after looking for my smtp server in IIS, it turns out that it doesn't have one by default and isn't needed if you use System.Net.Mail. ..
http://social.technet.microsoft.com/F...
This makes sense because presumably a console app like your example code wouldn't be using IIS.
It turns out changing the "username@domain.com" to just the "username" in the example code fixes it.
System.Net.NetworkCredential credentials = new System.Net.NetworkCredential("username@domain.com", "yourpassword"); -
-
-
Loading Profile...





