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.