Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP XML
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old May 22nd, 2006, 12:14 PM
Authorized User
Points: 126, Level: 2
Points: 126, Level: 2 Points: 126, Level: 2 Points: 126, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Feb 2005
Location: , , France.
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!
Reply With Quote
  #2 (permalink)  
Old May 23rd, 2006, 11:07 AM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 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
Reply With Quote
  #3 (permalink)  
Old May 24th, 2006, 03:09 AM
Authorized User
Points: 126, Level: 2
Points: 126, Level: 2 Points: 126, Level: 2 Points: 126, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Feb 2005
Location: , , France.
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks Imar.
Reply With Quote
  #4 (permalink)  
Old May 24th, 2006, 11:12 AM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 05:54 AM.


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