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.