CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2008
    Posts
    13

    "Unable to read data from the transport connection: net_io_connectionclosed."

    Can anyone know what this error about??

    "Unable to read data from the transport connection: net_io_connectionclosed."



    my code as...

    string to = "abc@mymail.com";

    string from = test@mymail.om;

    string subject = "test";

    string body = @"test email";

    MailMessage message = new MailMessage(from, to, subject, body);

    SmtpClient client = new SmtpClient("Mymailserver"); //172.20.70.34




    client.Credentials = CredentialCache.DefaultNetworkCredentials;

    client.Send(message);



    i had set the IIS->Default SMTP Virtual Server->Properties->IP Address to "All unassigned"

  2. #2
    Join Date
    Oct 2003
    Location
    .NET2.0 / VS2005 Developer
    Posts
    7,104

    Re: "Unable to read data from the transport connection: net_io_connectionclosed."

    The connection you are attempting to use, is closed. Use packet monitoring tools to find out whether it was never open or if it closed prematurely
    "it's a fax from your dog, Mr Dansworth. It looks like your cat" - Gary Larson...DW1: Data Walkthroughs 1.1...DW2: Data Walkthroughs 2.0...DDS: The DataSet Designer Surface...ANO: ADO.NET2 Orientation...DAN: Deeper ADO.NET...DNU...PQ

  3. #3
    Join Date
    Mar 2008
    Posts
    13

    Re: "Unable to read data from the transport connection: net_io_connectionclosed."

    Quote Originally Posted by cjard
    The connection you are attempting to use, is closed. Use packet monitoring tools to find out whether it was never open or if it closed prematurely
    What is that about? Can you describe it more?
    Thanks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured