1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

The connection was closed unexpectedly

Discussion in 'ASP' started by oujeboland, Oct 28, 2011.

  1. oujeboland

    oujeboland New Member

    Joined:
    Oct 28, 2011
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    i want to change and save a html file at runtime using xmltextreader. it works fine on local host but after uploading website i get this error:

    The underlying connection was closed: The connection was closed unexpectedly.

    on:

    Code:
    
             File.Copy(source, pathToNewPost);
      
             XmlTextReader txReader = new XmlTextReader(pathToNewPost);
             XmlDocument xmlDoc = new XmlDocument();
     [B]        xmlDoc.Load(txReader);[/B]<------
    
     

Share This Page