Thursday, June 29, 2006

Debugging - ASP Access to path error

Attempting to run a series of aspx pages from within the IDE gives the following error.

Server Error in '/WebApplication1' Application
Access to the path "c:\windows\microsoft.net\framework\v1.1.4322\Temporary ASP.NET Files\webapplication1\8dd84b00\b065eec7" is denied.

Both the ASPNET account and the current user account are local administrators on the machine.
The stack trace shows an IO error in attempting to create the temporary directory.

The directory is set as read-only and won't me reset it. The index serveice isn't running and simple sharing has been turned off for the folder.

No solution yet.

I'll post a solution when I find one but feel free to help.

4 comments:

weasel said...

I'm assuming you've doen he usual .Net voodoo dance, espcially resetting IIS. You might even want to stop IIS and then (try to) change the attributes on the folder.

good luck!

weasel said...

oh yeah, close VS as well

Accipiter said...

Doing the usual voodoo and changing the permissions on the IUSR_ Account didn't help unfortunately. It would have disturbed me greatly if changing the anonymous account permissions had solved it but at least I'm working in a mildly hacked up solution.

weasel said...

Doh! I just figured it out...you should switch to Linux!