Thursday, April 27, 2006

Exception Details: System. UnauthorizedAccessException: Access is denied.

One old error revisits me when i was coding a asp.net project. It's a common problem everytime i try to do a virgin development on a PC with visual studio. I'm not sure why Microsoft doesn't release a patch for it but i'm used to it now. Here's some description on the error..

Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information about
the error and where it originated in the code.

Exception Details: System.UnauthorizedAccessException: Access is denied.

ASP.NET is not authorized to access the requested resource. Consider
granting access rights to the resource to the ASP.NET request identity.
ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or
Network Service on IIS 6) that is used if the application is not
impersonating. If the application is impersonating via impersonate="true"/>, the identity will be the anonymous user (typically
IUSR_MACHINENAME) or the authenticated request user.

To grant ASP.NET write access to a file, right-click the file in Explorer,
choose "Properties" and select the Security tab. Click "Add" to add the
appropriate user or group. Highlight the ASP.NET account, and check the boxes
for the desired access.
IF you are like me, who encountered the problem before, you should know what is the cause of the error. The solutions? It's posted all over the net. But to save your time, you may want to visit here. The solution works for me, but if don't turns out the same for you, you may post your problems or the alternative solutions you took to solve it.

*I got a chance today to install and tried out new Visual Studio 2005 Web developer tool. IT IS BRILLIANT Software. I love it very much. The interface is great, the functions, not to mention, THE INTELLISENSE! I strongly recommend you to try it out. Best thing is, IT's available for free, for personal use! OMG, i just can't believe it. I'm going to hook myself up. I haven't try out the Visual Studio 2005 Visual Basic yet but i'm sure it's a good stuff ;) Worth my time spent to download it 150+ mbs ;D

Your Ad Here