I get this error when trying load my ASP page : \"Disallowed Parent Path \"

 

DETAILS

I get the following error when I try to execute my ASP application

 Active Server Pages error \'ASP 0131\'

Disallowed Parent Path

/test/cdo.asp, line 1

The Include file \'../inc/inc.asp\' cannot contain \'..\' to indicate the parent directory.

RESOLUTION

Parent Path option is set to OFF in IIS6 because of potential security issues. You will need to update your script to not require Parent Path

TIP

Change your include directives to include virtual :

<!--#Include file=\"../inc/inc.asp\"-->  -------------->  <!--#Include virtual=\"/inc/inc.asp\"-->

Additional you can enable Parent Path option through Helm control panel Domain Menu>Web Sites Settings section. This method is not recommended

Was this answer helpful?

 Print this Article

Also Read

After I configure the custom error setting in the control panel, I still get the generic error page?

Custom error setting is a web server setting which affects all file types (.htm, .gif, etc.)...

I get a database timeout expired error on my ASP.NET application. What can I do?

I get the following error when my ASP.NET application connects to the MS SQL server:...

Sample Code : Query an Access database with ASP using a DSN-less connection

<% Dim cnnSimple  ' ADO connectionDim rstSimple  ' ADO recordsetSet cnnSimple =...

There is three types of ASP.Net sessions :

1)Inprocess session   (it's stored by default in web.cofig File and use for same...

How can I enable ASP.NET 2.0 on my website?

You can switch the .NET Framework version for your webiste using the Web Site Settings section in...