Go4Expert

Go4Expert (http://www.go4expert.com/)
-   ASP (http://www.go4expert.com/forums/asp/)
-   -   The connection was closed unexpectedly (http://www.go4expert.com/forums/connection-closed-unexpectedly-t27034/)

oujeboland 28Oct2011 20:24

The connection was closed unexpectedly
 
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();
         xmlDoc.Load(txReader);<------



All times are GMT +5.5. The time now is 21:35.