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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice