Hi,
I have a problem creating an XMLTextReader from a file on disk. Its an ASP.NET application written in VS 2005.
When the application is deployed to IIS6 it runs fine but when run from visual studio the XMLTextReader is not populated from the file on the disk. I've checked that the file exists - it does.
I'm thinking its a permissions issue but I've given full control to the ASPNET user on the machine to the C drive, the windows folder and the folder when the file resides. Below is some of the code with comments explaning what its doing.
If anyone can advise on the permissions I would be really grateful.
string tempFolder = ConfigurationManager.AppSettings["ReportTempFolder"]; //Get the folder to create file
string xmlName = Convert.ToString(Guid.NewGuid()); //use guid as filename
htmlDoc.Save(@tempFolder + xmlName); //save file to folder
XmlTextReader xmlr = new XmlTextReader(@tempFolder + xmlName); //read file into XMLTextReader