A few days ago to help friends deal with the site after the relocation of the MSSQL database link problem, and then I put its code in the local environment test found an ASP problem and this solution, but also to help my friend solve the problem. So today to tell you the next ASP error, although the ASP program has been very few people use, but still a lot of.
OK, let's go to our topic, first we'll understand the environment of the demo. First I used the version of the Windows 7 flagship 32bit and IIS7.5. The program is using a simple CMS system, language: ASP.
The error that occurred is:
An error occurred on the "server" when processing the URL. Please contact the system administrator.
If you are are the system administrator please click here for find out more about this error.
In fact, the solution to this problem is very simple, today it as a lesson to tell you.
First step: Start IIS and open the site. In the Feature View list, locate ASP
Step two: Find the "Send error to Browser" value modified to "True" and apply.
If you modify it, preview it directly to see the effect. It's not going to work because it's not set up yet.
The following error occurred:
Active Server Pages error ' ASP 0131 '
Parent Path not allowed
/admin/login.asp, Line 1
Include file "... /inc/const.asp "can't use" ... " Represents the parent directory.
Step three: This time I will also set the "Enable Parent path", also set to "True" and apply
See how it works?
By the way also explained here, and I based on my understanding to introduce it, simple? Sending the error to the browser is not a friendly way to display the error message, it is mainly for convenience of debugging; Enabling the parent path is the path of "..." in the code, as is the case with Windows permission inheritance. The following is from Microsoft Official description:
Send error to Browser [Scripterrorsenttobrowser]:
Specifies whether the WEB server is also written to the client browser, in addition to logging the debug details (file name, error, line number, description) to the IIS request log. The default value is True.
Enable parent path [Enableparentpaths]:
Specifies whether the ASP page allows a path relative to the current directory (using the "..." notation), which is the path above the current directory. The default value is False.
Tisp:
1. If the browser open any Web site problems, you can put IE's "Show friendly HTTP error message" Do not tick enabled to view this site's error messages.
2. The user of the virtual host space can let the service provider to solve this problem.