ASP error message resolution: IIS enables parent path settings

  
                  

Today, the company has a customer warranty website that cannot be accessed in the background. I checked the source code and found that the ASP code itself has no problem. And I can go to the local to access. It is not possible to connect properly on the Internet, and the error is displayed:

Server.MapPath() Error 'ASP 0175 : 80004005'
The Path character is not allowed
/0709/dqyllhsub/news/OpenDatabase. Asp, line 4
does not allow characters in the Path parameter of MapPath '..'

The path inside the page is re-pointed with a Response.Redirect, the path to the client page is a relative path. The website domain address is omitted.

The main reason is that the IIS server does not open the parent path. Modify the method:
in the IIS Properties -> Home Directory -> Configuration -> option. Put a check mark in front of "Enable Parent Path". Confirm the refresh.

If the server provider does not open the parent path for security reasons, it is recommended to write the absolute path when the path is pointed to, ie the full address such as "http://45it.com/Article/UploadFiles_9354/201007 /20100718133954347.gif"

The default setting after IIS6.0 installation is, do not open the parent path.
----------------------------------------------< BR> If your website program uses the parent path, such as ../conn/db.asp, .. means the upper directory, you must open the parent path, otherwise the system can not recognize the parent path. Normal display

Copyright © Windows knowledge All Rights Reserved