ASP.NET Granting access to local resources

Posted by Mina Samy on Stack Overflow See other posts from Stack Overflow or by Mina Samy
Published on 2010-04-13T14:02:18Z Indexed on 2010/04/13 14:02 UTC
Read the original article Hit count: 237

Filed under:

Hi all

I have an ASP.NET web application that runs on a windows server 2003 server.

there is a form that reads and writes data to an xml file inside the application's directory.

I always grant the NETWORK SERVICE user full control on my application folder so that it can read and write to the xml file.

I put the application on another windows server 2003 server and did the same steps above but i was getting an Access denied exception on the form that reads and writes to the xml.

I did some search and found that if you grant the user ASPNET full control to the directory it would work, I did that and it worked fine.

my question is: what is the difference between granting full control permissions to NETWORK SERVICE and ASPNET users ?

and what can be the difference between the two servers that caused this issue ?

thanks

© Stack Overflow or respective owner

Related posts about ASP.NET