I have a problem reading an html file using XmlDocument. Project is C# Windows Forms, VS2012
{"Error en el servidor remoto: (500) Error interno del servidor."}
Error in remote server: (500) Server Internal Error
I save a page to html
I can reopen the page in the browser OK.
I also can read it using File.ReadAllText so isn't security.
I try loading a test.html <html><b>HELLO WORLD</b></html>
and load ok.
So my guess is something in the Save As from the browser damage the file?
Is there a way of make a partial load or check what part is causing the error?
string curFile = @"C:\Uti\CambiaImagen.html";
if (File.Exists(curFile)) {
string html = File.ReadAllText(curFile);
//XmlDocument xd = new XmlDocument();
//xd.Load(curFile);
}