ASP.NET/Windows Server 2003 Security Problem

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.
 
R

Rick Strahl [MVP]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,540
Members
45,025
Latest member
KetoRushACVFitness

Latest Threads

Top