ASP. NET is not authorized to access the requested resources. Please consider granting the ASP. NET Request identity the permission to access this resource

Source: Internet
Author: User
Vs2003 is installed in Windows 2003. When running a web application, the following error occurs: "D:/Windows/Microsoft. net/framework/v1.1.4322/Temporary ASP. the access to net files/test/db58b339/50f84c0 is denied.

Note: An unhandled exception occurs during the execution of the current Web request. Check the stack trace information for details about the error and the source of the error in the code.

Exception details: system. unauthorizedaccessexception: Specifies the path "D:/Windows/Microsoft. net/framework/v1.1.4322/Temporary ASP. the access to net files/test/db58b339/50f84c0 is denied.

ASP. NET is not authorized to access the requested resources. Consider granting the ASP. NET Request identity the permission to access this resource. ASP. NET has a base process ID that is used when the application is not simulated (usually {MACHINE}/ASPnet on IIS 5 and Network Service on IIS 6 ). If the application is simulating through <identity sonate = "true"/>, the identity will be an anonymous user (usually IUSR_machinename) or an authenticated user.

I found the solution and posted it for reference!

In IIS 6.0, network service is used in the default application pool, so the network serviceaccount is used to run the w3wp.exe process in the process, when running vs 2003, we need. net/framework/v1.1.4322/Temporary ASP.. Net files/directory for read/write operations, so I checked the folder and found that there is no network service. Add the account and select "Full Control" to solve the problem, however, I don't know why this problem occurs because the network service account exists in temporary ASP when installing Windows 2003.. Net files.

In addition, you can change net service to local system in the default application pool --> properties --> label in iis6.0.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.