IBM Computer, Laptops and Servers

Back Homepage Content Directory Resource Guide Blog

Why do I get ASP 0130 / ASP 0131 errors?

Active Server Pages error 'ASP 0130'  
Invalid File attribute  
/<file>.asp, line <line> 
File attribute '/<file>.asp' cannot start with forward 
slash or back slash.  
 
Active Server Pages error 'ASP 0131'  
Disallowed Parent Path  
/<file>.asp, line <line> 
The Include file '../<file>.asp' cannot contain '..' to 
indicate the parent directory.
 
To work around either error, use a virtual include, with relative references from the root - rather than the current directory, e.g.: 
 
<!--#include virtual=/folder/file.asp-->
 
As far as the disallowed parent path goes, there is a security measure in IIS, designed mainly for multiple websites (e.g. at an ISP). The concept is to prevent ASP pages in site A from including ASP pages from site B. This measure is called 'enable parent paths' and is usually disabled (it is disabled by default in IIS 6.0; for information, see KB #332117). 
 
Another workaround is to enable parent paths. You can find this setting in the IIS MMC, right-click the web site in question, select properties, on the Home Directory tab, click configuration, and move to the options tab: 
 
 
However, this is the least preferred method. See KB #226474 and KB #184717 for details.

[ Comment, Edit or Article Submission ]

Share this:

Add To Yahoo MyWeb Add To Google Bookmarks Add To Furl Fav This With Technorati Add To Newsvine Add To Bloglines Add To Ask Add To Windows Live Add To Slashdot Stumble This Digg This Add To Del.icio.us Add To Reddit

More about:

Oct November 2008 Dec
Sun Mon Tue Wed Thu Fri Sat
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30            

IBM Computer, Laptops and Servers Blog on Technorati Related Blog of IBM Computer, Laptops and Servers on Sphere
Content Directory
Resource Guide


PCIQ Computer Repair and IT Support for PC and Mac

Website Links
IBM Computer, Laptops and Servers Copyright © 2008 www.ibmfans.com. All rights reserved. Site Map
Homepage | Blog | Advertise | Privacy Policy | Disclaimer | Contact Us | Links