|
-
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?
-
Aug 29th, 2006, 03:36 PM
#2
Frenzied Member
Re: [02/03] permissions and identity.
What type of authentication are you using on IIS?
it's under the directory security tab of the directory
-
Aug 29th, 2006, 03:39 PM
#3
Re: [02/03] permissions and identity.
Anonymous access (which uses acct IUSR_COMPUTERNAME)
and also Integrated Windows authentication.
-
Aug 29th, 2006, 03:44 PM
#4
Frenzied Member
Re: [02/03] permissions and identity.
god help you when u run into security issues with asp.net.
u said u gave ASPNET full permissions, did you try giving permissions to IUSR_machineName?
give full perms to both aspnet and IUSR, if that doenst help we can try few other things
-
Aug 29th, 2006, 03:51 PM
#5
Re: [02/03] permissions and identity.
Nope, that doesn't change anything.
-
Aug 29th, 2006, 04:18 PM
#6
Frenzied Member
Re: [02/03] permissions and identity.
what happens if you give "everyone" group full perms?
-
Aug 29th, 2006, 05:09 PM
#7
Re: [02/03] permissions and identity.
Well I will assume that will work, but that is obviously in no way, shape, or form, the correct way to set permissions on a folder....
-
Aug 29th, 2006, 07:16 PM
#8
Frenzied Member
Re: [02/03] permissions and identity.
absolutely not the righ way but one step at a time.
try deleting the virtual directory and recreating the app
also is this happening on a windows xp or what?
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
|