ASP error Message Resolution: IIS enables the setting of the parent path

Source: Internet
Author: User
Tags iis domain name access

Today, the company has a customer warranty Web site can not access the background, I looked at the source code, found that the ASP code itself does not have any problems. And I'm down to the local to be able to access. On the internet is not a normal connection, display the error:

Server.MapPath () error ' ASP 0175:80,004,005 '
The Path character is not allowed
/0709/dqyllhsub/news/opendatabase.asp, line 4
The character ' ... ' is not allowed in the Path parameter of MapPath.

Inside the page with a Response.Redirect path to redirect, the customer page inside the path to write is relative path, omitted the site domain name address.

The main is that the IIS server does not open the parent path, modify the method:
In IIS, the properties-> the home directory-> configuration-> option. Check the "Enable Parent path" front. Confirm the refresh.

If the server provider does not open the parent path for security reasons, suggest that the path point to the absolute path, that is, the full address such as "Logo.gif"

IIS6.0 the default setting after installation is to not open the parent path.
----------------------------------------------
If your site program uses a parent path, such as. /conn/db.asp like this, ... Indicates the upper directory, you must open the parent path, otherwise the system will not be recognized properly. Parent path, Web page will not display correctly



Related Article

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.