|
-
Aug 29th, 2006, 03:08 PM
#1
[02/03] permissions and identity.
I have a ASP.NET application (.NET 1.1) that reads and writes XML files from an orders directory off the application root..
Running XP SP2 IIS 5.1 for development.
so
directory structure looks like this...
[bin]
[orders]
[images]
default.aspx
someotherpage.aspx
So in one of my aspx pages, I read the XML file, which works fine, and then in another routine, I write changes back to the XML file.
I get an error writing back to the XML file, its a permissions error
{System.UnauthorizedAccessException}
I have given the ASPNET account on my machine FULL CONTROL over the applications root folder, which is inherent to the orders folder where the xml files sit.
I can bypass this error by adding this line to my web.config
<identity impersonate="true" userName="username" password="password" />
where the username and pass are my personal ones that I log onto the computer with.
What am I missing that is preventing the ASPNET account from writing to the file?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|