Skip to main content
Inspiring
November 3, 2006
Question

Include file errors

  • November 3, 2006
  • 1 reply
  • 217 views
ASP, IIS 6

Hello all,

Yesterday we upgraded to Server 2003 with IIS 6. We were using IIS 5. I am
now having problems with a couple of pages. One being this one where I am
having problems with the include file that used to work :)

I get this error:
Active Server Pages error 'ASP 0131'
Disallowed Parent Path

/tree/login.asp, line 2

The Include file '../Connections/connNewdatabase.asp' cannot contain '..' to
indicate the parent directory.

The page starts as such:

<%@LANGUAGE="VBSCRIPT"%>
<!--#include file="../Connections/connNewdatabase.asp" -->
<%

The file "connNewdatabase.asp" is in a folder one above the folder that this
page is in. What is it that I have to change to get this page to work
again?

Thanks,

Gale


This topic has been closed for replies.

1 reply

Inspiring
November 3, 2006
I got it folks, I had to recode as such:

<!--#include virtual="/Connections/connNewdatabase.asp" -->



Thanks
Gale