Hi, my app is running into a "System.UnauthorizedAccessException: Access to the path 'g:\wwwroot\Test\App_Data\TestXml.xml' is denied." error even after I gave the "Network Service" account Full Control permissions on the wwwroot directory, the Test directory and the TestXml.xml file.
Btw my code isn't directly reading the xml file. The xml file is the data source of a TreeView control and the treeview control is in default.aspx
I also gave Full Control permissions to IIS_WPG, MachineName\IUSR_MachineName, MachineName\ASPNET
System.Security.Principal.WindowsIdentity.GetCurrent().Name is NT AUTHORITY\NETWORK SERVICE and I'm running this code on a Win2003 machine
(When I run the same app with the VS2005 IDE and Cassini server, the app runs fi ... Go to the complete details ...
Found interesting? Add this to: