ASP.NET/Windows Server 2003 Security Problem

  • Thread starter Thread starter Pedro Alves
  • Start date Start date
P

Pedro Alves

Hi,

When executing our application ASP.NET in the Windows
Server 2003 is being returned the following error:

Exception Details: System.UnauthorizedAccessException:
Access to the
path "C:\WINNT\Microsoft.NET\Framework\v1.1.4322\Temporary
ASP.NET Files\administratori\4152f07e\848e4dc9" 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.

He happens that user "ASPNET" is in the
group "Administrators" and has permission for the folder
in question.

What it could be?

Thanks,


Pedro,
Brazil.
 
On Windows 2003 server there should not be an ASPNET account. Instead the
default account is usually Network Service but you can configure this in IIS
by setting the user account in the Application Pool that hosts your virtual.

Whatever account this is set to needs to be able to write in the temp
ASP.Net directory.


+++ Rick ---

--

Rick Strahl
West Wind Technologies
http://www.west-wind.com/
http://www.west-wind.com/wwHelp
 
Back
Top