Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP XML
|
Classic ASP XML Using ASP 3 and XML. See also the XML category for more XML discussions not relating to ASP. NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP XML section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 22nd, 2006, 12:14 PM
Authorized User
 
Join Date: Feb 2005
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default 'ASP 0131 VBScript not allowing ../ relative addr

Hi,

Heres one... Why would this piece of code work on one asp.net server yet throw an 'ASP 0131' error once we move to another asp.net box?



<%@ CodePage=65001 Language="VBScript"%>
<% Option Explicit %>




etc.....


Screen error message :

Active Server Pages error 'ASP 0131'

Disallowed Parent Path

/forum/forums/forum-view.asp, line 7

The Include file '../includes/include.asp' cannot contain '..' to indicate the parent directory.


Helllllllllllllp!
 
Old May 23rd, 2006, 11:07 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

This is a setting you can change for each application in IIS. It's recommended to leave it off, so that's probably why the new server doesn't have it enabled.

To change it, try this:

1. Open the IIS Manager
2. Locate your website, and open its Properties dialog.
3. Click Home Directory and the Configuration.
4. Switch to the Options tab and then make sure that Enable parent paths is selected.

Alternatively, change your include statements, so they no longer reference a parent path. You can use an include like :

virtual="/Include/SomeFile.asp"

Hope this helps,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
 
Old May 24th, 2006, 03:09 AM
Authorized User
 
Join Date: Feb 2005
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks Imar.
 
Old May 24th, 2006, 11:12 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

You're welcome...

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004





Similar Threads
Thread Thread Starter Forum Replies Last Post
A possible solution regarding not allowing cachin malay mehta PHP How-To 0 March 12th, 2007 06:23 AM
Allowing Decimal values bright_mulenga Access 1 February 12th, 2007 12:38 PM
ASP creating relative directory memnon33 Classic ASP Basics 0 August 2nd, 2005 05:35 AM
Allowing HTML in form hcweb Classic ASP Basics 17 June 18th, 2004 07:32 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.