iis7 error message An error occurred on the server when processing the URL...
There are always errors when running ASP programs under win7. It turns out to be a problem with the site configuration. . .
Problem 1: The MS Jet engine changed the location of the temporary directory, but did not have access rights to the temporary directory, causing the database to fail (due to SQL problems, the access database was later used for testing).
Solution:
Add an Authenticated Users user to the system disk:/Windows/ServiceProfiles/NetworkService/AppData/Local/Temp directory. The AppData directory is hidden. When entering, you can directly enter the path in the address bar or display it in the folder options. Hidden files.
Steps to set permissions: Right-click the Temp folder, select Properties > Select the Security tab > Click Edit > Bring up the Temp permissions dialog box, click Add, enter Authenticated Users in the Enter object name to select below (you can also click Advanced ... button, then click the Search button, select Authenticated Users in the search results), OK > Return to Temp permissions, check Full Control in the permissions of Authenticated Users, OK > OK.
Question 2: IIS7 does not send detailed errors to the client by default, so it only gives us a script error message (this message can be modified): An error occurred on the server when processing the URL. Please contact the system administrator. In this way, it is unknown what went wrong.
Solution:
Change Send errors to the browser in the ASP module in iis7 to True.
It's very important, otherwise you won't know where the error is.