SilverNodashi
Expert Member
Hi everyone,
Does anyone know what the correct way is of including a Classic ASP file on an IIS7 server?
I don't have an ASP developer at this stage, and the original developer who developed a Classic ASP website for a client, who's website we had to move to an IIS7 server has emigrated with no current contact details.
All the searched I found on the web basically suggested I enable "Parent Paths", but I guess if that feature was disabled by default in II6 for security reasons then we'd rather not enable it, right?
The File which is being called from the browser, that gives the error is in :
C:\Users\cPanel\john\public_html\website1.TLD\manager
http://website1.TLD/manager/
The error it produces is:
that file, "validator.asp" is in a folder called:
C:\Users\cPanel\john\public_html\website1.TLD\genincs
And this is the code in /manager/validateaddcat.asp :
I tried changing the code to
but that didn't work either.
Can anyone give me some suggestions on this?
Does anyone know what the correct way is of including a Classic ASP file on an IIS7 server?
I don't have an ASP developer at this stage, and the original developer who developed a Classic ASP website for a client, who's website we had to move to an IIS7 server has emigrated with no current contact details.
All the searched I found on the web basically suggested I enable "Parent Paths", but I guess if that feature was disabled by default in II6 for security reasons then we'd rather not enable it, right?
The File which is being called from the browser, that gives the error is in :
C:\Users\cPanel\john\public_html\website1.TLD\manager
http://website1.TLD/manager/
The error it produces is:
Code:
Active Server Pages error 'ASP 0131'
Disallowed Parent Path
/manager/validateaddcat.asp, line 1
The Include file '../genincs/validator.asp' cannot contain '..' to indicate the parent directory.
that file, "validator.asp" is in a folder called:
C:\Users\cPanel\john\public_html\website1.TLD\genincs
And this is the code in /manager/validateaddcat.asp :
Code:
<!--#include file="../genincs/validator.asp"-->
<script ID=clientEventHandlersVBS LANGUAGE=vbscript>
<!--
I tried changing the code to
Code:
<!--#include file="C:\Users\cPanel\john\public_html\website1.TLD\genincs\validator.asp"-->
but that didn't work either.
Can anyone give me some suggestions on this?