Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 '..' not allowed in path
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Mr Pink
Junior Member

United Kingdom
387 Posts

Posted - 12 October 2003 :  11:03:02  Show Profile  Visit Mr Pink's Homepage  Send Mr Pink an AOL message
I wanted to try out a banner management package recently, but I kept geting errors with the include files.

for example <!--#INCLUDE FILE="../include/login.asp" -->

would generate an error because of the '..'

I've just installed the topic maker mod and am getting a similar error

"The '..' characters are not allowed in the Path parameter for the MapPath method."

Is this a problem with my databse configuration or my hosts server? I didn't post this in MOD support because it seems to be a general problem that I keep getting.

Martin
Leyland Forum Leyland Lancashire UK

Roland
Advanced Member

Netherlands
9335 Posts

Posted - 12 October 2003 :  11:06:30  Show Profile
have you ever gotten similar errors with includes?
you could try using a virtual include: <!--#INCLUDE VIRTUAL="/include/login.asp" --> assuming /include/ is a directory right in the webroot.
Go to Top of Page

Mr Pink
Junior Member

United Kingdom
387 Posts

Posted - 12 October 2003 :  11:14:07  Show Profile  Visit Mr Pink's Homepage  Send Mr Pink an AOL message
Thanks for the advice, I'll give it a go. I've just noticed that the second error is different to the first. I will see if I can work that one out again.

Martin
Leyland Forum Leyland Lancashire UK
Go to Top of Page

Mr Pink
Junior Member

United Kingdom
387 Posts

Posted - 13 October 2003 :  08:00:57  Show Profile  Visit Mr Pink's Homepage  Send Mr Pink an AOL message
Out of curiosity, why would <!--#INCLUDE FILE="../include/login.asp" --> have been used in the original programming? I presume that whoever wrote this did not have the same problem.


Martin
Leyland Forum Leyland Lancashire UK
Go to Top of Page

Roland
Advanced Member

Netherlands
9335 Posts

Posted - 13 October 2003 :  08:10:24  Show Profile
A quick search revealed this URL: http://www.w3schools.com/asp/asp_incfiles.asp
I recall reading somewhere that some hosts don't allow paths using ../ for "security reasons". Maybe that's what you've run into?
Go to Top of Page

Mr Pink
Junior Member

United Kingdom
387 Posts

Posted - 13 October 2003 :  08:18:35  Show Profile  Visit Mr Pink's Homepage  Send Mr Pink an AOL message
Thanks for the link. It looks like a good site for ASP info.

Martin
Leyland Forum Leyland Lancashire UK
Go to Top of Page

mios
Junior Member

United Kingdom
101 Posts

Posted - 13 October 2003 :  08:32:27  Show Profile  Send mios an ICQ Message
Looks like the server has 'Enable Parent paths' disabled. This is now the default option with win2003.

You need to ask your host to enable it, though they may refuse for security reasons.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.35 seconds. Powered By: Snitz Forums 2000 Version 3.4.07