System.io.ioexception Unable to Read Data From the Transport Connection

 Unable to read data from the transport connexion:
Author Message
Secrets


PostPosted: Visual Basic Express Edition, Unable to read data from the transport connection: Meridian

hi, i am trying to ship electronic mail using VB2005 merely i am getting this Exception.
"Organisation.IO.IOException = {"Unable to read data from the transport connection: net_io_connectionclosed."}"
while from same machine i am able to send electronic mail with same SMTP server from OutLook Limited.
what could be the reason

Visual Studio Limited Editions38

 
Bhanu Prakash Nunna - MSFT


PostPosted: Visual Basic Express Edition, Unable to read data from the send connection: Top

howdy,

Please become through the link below. Information technology has a sample code in information technology.Hope this helps.
Link: http://www.jscape.com/manufactures/sending_email_using_vb.html

Thanks,
Bhanu.

Vikram Karumbaiah


PostPosted: Visual Basic Express Edition, Unable to read information from the transport connection: Top

Hi bhanu

The link you provided refres to using the Email Factory component and is not helpful if one is using the Organisation.Net.Mail namespace.

I am getting this error while trying to send mail using the organisation.Net.Mail service what is the cause and resolution for this mistake

This is my code

Dim  objSMTPclient As New Organization.Internet.Mail.SmtpClient

Dim objMailMessage As New MailMessage

objMailMessage.From = New ", "Mail service Homo")

objMailMessage.Subject = "Message Bailiwick"

objMailMessage.Body = "Message Trunk"

objSMTPclient.Host = "Localhost"

objSMTPclient.PickupDirectoryLocation = "C:\Inetpub\mailroot\Queue"

Try

objSMTPclient.Send(objMailMessage)

Catch ex As Exception

Finish Try

This works well in my development environs (win XP pro) but fails on my test server (win 2000) with the following fault

Failure sending mail service.
System.IO.IOException: Unable to read data from the transport connection: net_io_connectionclosed.
   at System.Net.Postal service.SmtpReplyReaderFactory.ProcessRead(Byte[] buffer, Int32 starting time, Int32 read, Boolean readLine)
   at System.Net.Mail.SmtpReplyReaderFactory.ReadLines(SmtpReplyReader caller, Boolean oneLine)
   at System.Net.Mail service.SmtpReplyReaderFactory.ReadLine(SmtpReplyReader caller)
   at Organization.Internet.Mail.SmtpReplyReader.ReadLine()
   at System.Internet.Mail.SmtpConnection.GetConnection(String host, Int32 port)
   at Organisation.Net.Mail.SmtpTransport.GetConnection(String host, Int32 port)
   at System.Net.Mail service.SmtpClient.GetConnection()
   at Organization.Net.Post.SmtpClient.Ship(MailMessage message)


Secrets


PostPosted: Visual Basic Limited Edition, Unable to read data from the transport connection: Top

it sounds like you are backside a firewall or some affair similar wise.
in my case aforementioned thing was happening, a firewall on my pc was preventing me.
TomThe1337


PostPosted: Visual Basic Express Edition, Unable to read data from the transport connection: Meridian

objSMTPclient.PickupDirectoryLocation = "C:\Inetpub\mailroot\Queue"
Try objSMTPclient.Send(objMailMessage) ' Should be linefeed after try
Catch ex As Exception
End Endeavour

If this is only a typo I don't know what'south wrong,
otherwise y'all should edit that.

Grtz, Tom.

Vikram Karumbaiah


PostPosted: Visual Bones Limited Edition, Unable to read information from the transport connection: Top

Tom,

yea that was a typo lamentable about that. I stock-still that now

Secrets
I dont think it is a problem with a firewall in my instance since the code works on my development machine but not on on the test server. both machines are on the same network and on the same side of the firewall.

The test server is a win 2000 server with no built in firewall and the windows firewall on my development Win XP machine is turned off.

I remember information technology has to practice with the security and permissions of the account under which the compiled and deployed lawmaking is running only I dont know enough about windows/SMTP security to say for sure. Anybody know of a good book or resource wher I can larn about this stuff

For instance what are the security implications of specifying the post-obit in my lawmaking

objSMTPclient.PickupDirectoryLocation = "C:\Inetpub\mailroot\Queue"

thanks

Vikram


Nevyn32


PostPosted: Visual Basic Express Edition, Unable to read data from the transport connection: Acme

I'yard having a weird instance of this trouble. I've done the obligatory Google search on the "net_io_connectionclosed" event and have found numerous postings from people with the trouble. However, I've not still seen a good solution, or a solution that applies to my case.

I've fix an ASP.net page (2.0) to transport out weekly Newsletters to my subscriber database (7500+ email addresses). When I endeavor to send the emails I get this error... BUT... it does in fact send some of the emails off commencement. I've not established the exact number of emails sent, just it is at least l. So, the typical reasons for this error bulletin obviosuly don't apply: the SMTP is set fine, and its not a firewall issue.

Whatsoever ideas This is driving me nuts... my lawmaking clearly works fine, or else no emails would be sent.... and so how exactly do I fix this problem


Vikram Karumbaiah


PostPosted: Visual Basic Limited Edition, Unable to read information from the transport connexion: Peak

Hello Nevyn32
I managed to gear up the problem I had, it seemed to exist the SMTP settings. Im not sure what exactly the problem was just this is what fixed it.

Open the SMTP properties

Under the General tab

IP address - All unassigned (prepare this per your secutrity needs)

Limit number of connections Checked on and value is ten (Cheque if your code has multiple SMTP connections at whatever given time)

Connectedness time out Mins 10

Enable Logging Checked on - This may give yous some idea of what the problem is in your case

Under Access tab

Access Control - Click the Authentication button - Bank check on Anonymous Access and uncheck the residuum

Check your Connexion control and relay restrictions per your security needs

Under Messages tab

Yous may want to check your settings here as this is where limitations of the number of recipients of a message are set

Y'all may consider disabling some restrictions or increasing the limits for the number of recipients per message

I believe the net_io_connectionclosed error message is mostly related to the SMTP settings and other security patches that were recently released by MS. but Im just speculating there.

Practice post your resuls back hither.

Best

Vikram


mateid


PostPosted: Visual Basic Limited Edition, Unable to read information from the send connection: Pinnacle

Make sure y'all can relay (Relay push button) and Connect (Connection push button)...

Both of these take to exist set for yous to succesfuly send mail this manner.

Cheers,
Matei


Paige Ake


PostPosted: Visual Basic Express Edition, Unable to read data from the transport connection: Summit

Hello,

I take received the aforementioned mistake when trying to send electronic mail using System.Net.Mail. One thing I noticed is if I employ objSMTPclient.Host = "Localhost" similar you do then I get the same error as yous. Even so, if I prepare this property to the IP Address of the server instead of "Localhost" and so the email messages are sent successfully. You may attempt using the IP Address of the automobile to see if information technology solves your problem.

Paige Ake, MCSD

mateid


PostPosted: Visual Basic Limited Edition, Unable to read information from the ship connection: Top

Howdy in that location, using the explicit IP address of the server solved this for me. Thanks!

Cheers,
Matt


flixxx


PostPosted: Visual Basic Express Edition, Unable to read data from the transport connexion: Elevation

Cheers!
This did it for me!

/flix


bitumen


PostPosted: Visual Basic Limited Edition, Unable to read data from the transport connection: Top

hi peoples ;

A cheers note for the advise on SMTP setup

if followed the mail service by;

Vikram Karumbaiah
Posts six

and also followed

mateid
Posts 2

posts inserting my domain name as relay (Relay button) and Connect (Connectedness push button)...Authoritized

thank you for the mail service and ideas

Pixelxx


PostPosted: Visual Basic Limited Edition, Unable to read information from the transport connection: Pinnacle

Finally I found the reason for the error:

Some of you solve the trouble when turn off integrated autentificaion on configuration tab of SMTP.

The trouble is that the user who execute your ASP application doesn't have permisions to access SMTP server.

try adding credential to the

CredentialCache object

for example.. if you are running a windows app, simply add

client.Credentials = CredentialCache.DefaultNetworkCredentials;

and .NET takes the user who run the application to log into the smpt if needed.

regards


kailass


PostPosted: Visual Basic Express Edition, Unable to read information from the transport connection: Top

Gr8!

it worker for me..Smile

highetthaoreas66.blogspot.com

Source: http://www.databaseforum.info/30/513917.aspx

0 Response to "System.io.ioexception Unable to Read Data From the Transport Connection"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel