I added arecovery password to the default page, when i try to recover the password i get this error message
Server Error in '/WebSite1' Application.
Unable to read data from the transport connection: net_io_connectionclosed.
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.IO.IOException: Unable to read data from the transport connection: net_io_connectionclosed.
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.
What this error means is that System.net.mail was unable to find the smtp server.
The answer will vary depending on whether you have a fixed IP or a dynamic IP but,
basically, you need to assign a valid IP to your smtp server.
With fixed IP's this is relatively straightforward.
With dynamic IP's it takes a bit of tweaking.
Open the IIS Manager and check the properties for the smtp server.
In the Default SMTP Virtual Server's properties, in the "Access" tab,
in the Connection Control and Relay dialogs, make sure that your local IP is assigned.
( In my case, it's 10.0.0.2... )
You may also need to modify your hosts file, to point 127.0.0.1 to your machine name.
( \WINDOWS\system32\drivers\etc\hosts )
Then, in your code, assign your machine name to the smtp client :
Dim client As New SmtpClient("yourmachinename")
client.Send(mail)
Unable to read data from the transport connection: net_io_connectionclosed
What this error means is that System.net.mail was unable to find the smtp server.
The answer will vary depending on whether you have a fixed IP or a dynamic IP but,
basically, you need to assign a valid IP to your smtp server.
With fixed IP's this is relatively straightforward.
With dynamic IP's it takes a bit of tweaking.
Open the IIS Manager and check the properties for the smtp server.
In the Default SMTP Virtual Server's properties, in the "Access" tab,
in the Connection Control and Relay dialogs, make sure that your local IP is assigned.
( In my case, it's 10.0.0.2... )
You may also need to modify your hosts file, to point 127.0.0.1 to your machine name.
( \WINDOWS\system32\drivers\etc\hosts )
Then, in your code, assign your machine name to the smtp client :
Dim client As New SmtpClient("yourmachinename")
client.Send(mail)
The error usually happens when the smtp server does not recognize the email address in the "from" field. Make sure you set the "from" with an email address that actualy exists in your smtp server.
See code below for an example, note how the email server used in the email of the "from" field is the same as the one specified as the smtp server:
Dim
from As
String = "me@youremailserver.com"
Dim
recipientEmail As
String = "someone@someamailserver.com"
Dim m As
New MailMessage(from, recipientEmail)
m.Subject = subject
m.Body = message & sb.ToString
Dim client As
New SmtpClient("youremailserver.com")
client.Send(m)
Ricardo D. Sanchez
Palo Software
Website: http://palosoftware.com
Blog: http://ricardodsanchez.com
Twitter: @ricardodsanchez
Please remember to click "Mark as Answer" on this post if it helped you.
I am also getting this problem but randomnly and I cannot figure out what is going on. The IP address of the mail server is fixed. The machine running the web application does not have SMTP installed. The email addresses are valid and the email server is
setup to allow the relay to take place. Any other possibilities I am not looking at?
ptjoe
Member
315 Points
63 Posts
Unable to read data from the transport connection: net_io_connectionclosed
Oct 03, 2005 05:27 PM|LINK
Server Error in '/WebSite1' Application.
Unable to read data from the transport connection: net_io_connectionclosed.
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.IO.IOException: Unable to read data from the transport connection: net_io_connectionclosed.
Source Error:
Stack Trace:
Version Information: Microsoft .NET Framework Version:2.0.50215.44; ASP.NET Version:2.0.50215.44
any clues ?
mike123
Contributor
2068 Points
728 Posts
Re: Unable to read data from the transport connection: net_io_connectionclosed
Nov 11, 2005 07:42 AM|LINK
I'm having this problem too .. did you find a solution?
Thanks!
mike123
Juan T. Llib...
Participant
848 Points
249 Posts
MVP
Re: Unable to read data from the transport connection: net_io_connectionclosed
Feb 15, 2006 11:40 AM|LINK
What this error means is that System.net.mail was unable to find the smtp server.
The answer will vary depending on whether you have a fixed IP or a dynamic IP but,
basically, you need to assign a valid IP to your smtp server.
With fixed IP's this is relatively straightforward.
With dynamic IP's it takes a bit of tweaking.
Open the IIS Manager and check the properties for the smtp server.
In the Default SMTP Virtual Server's properties, in the "Access" tab,
in the Connection Control and Relay dialogs, make sure that your local IP is assigned.
( In my case, it's 10.0.0.2... )
You may also need to modify your hosts file, to point 127.0.0.1 to your machine name.
( \WINDOWS\system32\drivers\etc\hosts )
Then, in your code, assign your machine name to the smtp client :
Dim client As New SmtpClient("yourmachinename")
client.Send(mail)
rvidal
Member
7 Points
8 Posts
Re: Unable to read data from the transport connection: net_io_connectionclosed
Jun 22, 2007 01:53 PM|LINK
I haven't found a solution yet.
when i find it,i'll let you know.
Ray
rvidal
Member
7 Points
8 Posts
Re: Unable to read data from the transport connection: net_io_connectionclosed
Jun 22, 2007 03:04 PM|LINK
Hi,it's me again,i did what you told me and i overcame the former message,
In my code i assigned my machine name as administrator/Computos8,you know the username and machine name.
and now i get the following message.
The remote name could not be resolved: 'administrator/Computos8.
Thank you.
Ray
.NET 2.0
rvidal
Member
7 Points
8 Posts
Re: Unable to read data from the transport connection: net_io_connectionclosed
Jun 22, 2007 05:14 PM|LINK
Unable to read data from the transport connection: net_io_connectionclosed
What this error means is that System.net.mail was unable to find the smtp server.
The answer will vary depending on whether you have a fixed IP or a dynamic IP but,
basically, you need to assign a valid IP to your smtp server.
With fixed IP's this is relatively straightforward.
With dynamic IP's it takes a bit of tweaking.
Open the IIS Manager and check the properties for the smtp server.
In the Default SMTP Virtual Server's properties, in the "Access" tab,
in the Connection Control and Relay dialogs, make sure that your local IP is assigned.
( In my case, it's 10.0.0.2... )
You may also need to modify your hosts file, to point 127.0.0.1 to your machine name.
( \WINDOWS\system32\drivers\etc\hosts )
Then, in your code, assign your machine name to the smtp client :
Dim client As New SmtpClient("yourmachinename")
client.Send(mail)
.NET 2.0
gdl
Member
533 Points
119 Posts
Re: Unable to read data from the transport connection: net_io_connectionclosed
Aug 18, 2007 05:51 AM|LINK
The error usually happens when the smtp server does not recognize the email address in the "from" field. Make sure you set the "from" with an email address that actualy exists in your smtp server.
See code below for an example, note how the email server used in the email of the "from" field is the same as the one specified as the smtp server:
Dim
from As String = "me@youremailserver.com"Dim
recipientEmail As String = "someone@someamailserver.com" Dim m As New MailMessage(from, recipientEmail)m.Subject = subject
m.Body = message & sb.ToString
Dim client As New SmtpClient("youremailserver.com")client.Send(m)
Palo Software
Website: http://palosoftware.com
Blog: http://ricardodsanchez.com
Twitter: @ricardodsanchez
Please remember to click "Mark as Answer" on this post if it helped you.
srkrishnakum...
Member
6 Points
7 Posts
Re: Unable to read data from the transport connection: net_io_connectionclosed
Aug 29, 2007 11:58 AM|LINK
hi i am also facing the same problem
i am using the password recovery control in my aspx page
My Web.config
<?xml version="1.0"?><
configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0"> <connectionStrings><
add name="defaultConnectionString" connectionString="Data Source=vitws-10;Initial Catalog=jobstarter;User ID=sa;Connect Timeout=200" /> <add name="defaultConnectionString1" connectionString="Data Source=vitws-10;DataBase=jobstarter; User ID=sa;Password=;" /></
connectionStrings> <system.web><
pages theme="Default"> </pages><
compilation debug="true"> <assemblies><
add assembly="System.Data, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/> <add assembly="System.Xml, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/><
add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/> <add assembly="System.Security, Version=2.0.1.2, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/></
assemblies> </compilation>
<authentication mode="Forms"><
forms name=".ASPXAUTH" loginUrl="~/default.aspx"></forms> </authentication><
membership defaultProvider="MyProvider"> <providers>
<add connectionStringName="defaultConnectionString" applicationName="/JobSiteStarterKit" description="" requiresUniqueEmail="true" enablePasswordRetrieval="false" minRequiredPasswordLength="4" minRequiredNonalphanumericCharacters="0" enablePasswordReset="true" requiresQuestionAndAnswer="true" passwordFormat="Hashed" name="MyProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/></
providers> </membership>
</system.web><
system.net> <mailSettings><
smtp from="sales@pingjob.com"> <network defaultCredentials="true" host="localhost" password="" userName=""/></
smtp> </mailSettings></
system.net> <appSettings><
add key="DBConn" value="Data Source=vitws-10;Database=jobstarter; User ID=sa;password=;"/> <add key="ProductAmount" value="4.99"/><
add key="numberToShow" value="20" /> </appSettings></
configuration>VITWS-10 is my server.. please help me..
thduttonuk
Member
8 Points
6 Posts
Re: Unable to read data from the transport connection: net_io_connectionclosed
Nov 20, 2007 12:14 PM|LINK
This is an SMTP Virtual server issue, load up IIS and
This should work..
wickedhangov...
Member
19 Points
7 Posts
Re: Unable to read data from the transport connection: net_io_connectionclosed
Feb 17, 2008 11:50 PM|LINK
I am also getting this problem but randomnly and I cannot figure out what is going on. The IP address of the mail server is fixed. The machine running the web application does not have SMTP installed. The email addresses are valid and the email server is setup to allow the relay to take place. Any other possibilities I am not looking at?