What you want to see on DotNetFunda.com ?
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 17134 |  Welcome, Guest!   Register  Login
  Home > Community Home >

System.UnauthorizedAccessException though Network Service acct has Full Control Permissions

 Author: Ram.net1 | Posted on: 6/9/2008 9:18:40 PM | Views: 80

Recommend an Articles | Recommended Articles | Search Resources | Community Home |




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:


About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/24/2013 5:18:13 PM