System.UnauthorizedAccessException: Access to the path ...Temporary ASP.NET Files.. is denied.



Hi all,

I have developed an application in VS .NET 2003 (framework 1.1) on a XP
platform. It is working fine in that PC.

Now, I setup new PC with same configuration for another develper.
Whenever I execute the application it gives, Unauthorize Exception
error and it's not execting the application property.

The Error message is as follows,
===============================================================

Server Error in '/myApp' Application.
--------------------------------------------------------------------------------

Access to the path
"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
Files\myApp\dc572ed2\cf08d790\hash.web" is denied.
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 to the
path "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
Files\myApp\dc572ed2\cf08d790\hash.web" 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 <identity
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.


===============================================================

During the investigation I found that there is no folder called myApp
created under the "Temporary ASP .NET Files". I have set full privilege
to the ASPNET user account and to the Developer.

Nothing has been changed in the Web.Config also.

How can I solve the problem? TIA.

.



Relevant Pages

  • Re: outlook mobile access broken
    ... enumeration operation may not execute. ... > the current web request. ... > Exception Details: System.InvalidOperationException: Collection was ... Thread account name: NT AUTHORITY\NETWORK SERVICE ...
    (microsoft.public.exchange.admin)
  • C# Ftp client
    ... Whenever, I execute System.Net.Sockets.Socket.Connect method, .Net Framework ... raises the following exception ... Request for the permission of type System.Net.SocketPermission, System, ...
    (microsoft.public.dotnet.languages.csharp)
  • Why am I getting this exception?
    ... I am trying to execute a post back request on the page and end up getting ... the following exception. ... I used to have this assembly file in my BIN folder ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: System.Security.SecurityException was unhandled
    ... The exception gave you the CLSID. ... the first thing to check might be whether the COM server ... assembly actually has the permission in question. ... When I execute the application I received and error message. ...
    (microsoft.public.dotnet.security)
  • Server Error in /Remote Application
    ... configuration file located in the root directory of the current web ... Exception Details: System.UnauthorizedAccessException: Access to the path ... granting access rights to the resource to the ASP.NET request identity. ... System.IO.StreamWriter.CreateFile(String path, Boolean append) +55 ...
    (microsoft.public.windows.server.sbs)