Google
 
Web tech-mania.blogspot.com

Tuesday, April 15, 2008

 
Active Server Pages, ASP 0131 Disallowed Parent Path.
SYMPTOMS
When you use relative paths in include statements with Microsoft's Active Server Pages (ASP), browsing a Web page may return an error message similar to the following:
Active Server Pages, ASP 0131Disallowed Parent PathThe Include file '../' cannot contain '..' to indicate the parent directory.//, line

CAUSE
This is caused by disabling ASP's "parent paths" for a Web site or application while using relative parent paths in an include statement. Relative parent paths in include statements use the following form:

RESOLUTION
The best solution to the problem is to use absolute virtual paths from the root of the Web site instead of relative paths.For example, if you use an include file named "mycode.inc" at the root of your server, the virtual path would be "/mycode.inc." If you use the same include file in a virtual directory named "/includes" on your server, the virtual path would be "/includes/mycode.inc."The syntax example below illustrates how to implement virtual paths:

An alternative to using absolute virtual paths is to enable parent paths; however, this is not the preferred method.
This is accomplished for your default Web site by using the following steps:
1. Open the Internet Services Manager in the Microsoft Management Console (MMC).
2. Right-click on your Default Web Site and select Properties.
3. Click the Home Directory tab.
4. Click the Configuration button.
5. Click the App Options tab.
6. Click to select the Enable Parent Paths checkbox.
7. Click the OK button until you return to the MMC.

Comments: Post a Comment



<< Home

This page is powered by Blogger. Isn't yours?