We're a community of 1.1M IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,080,439 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Error including Parent directory files

Hi Friends,

I installed IIS6.0 in my system. I can't include my parent directory files. It displays Error msg

Active Server Pages error 'ASP 0131'

Disallowed Parent Path

/working/login_main.asp, line 9

The Include file '../_ScriptLibrary/pm.asp' cannot contain '..' to indicate the parent directory.

Please any one can help me.

Thanks & Regards,
R.Chandrasekaran.

3
Contributors
2
Replies
3 Weeks
Discussion Span
8 Years Ago
Last Updated
3
Views
rchandrasekaran
Newbie Poster
1 post since Jun 2004
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

You can't use relative file paths due to default security settings. Easiest way around this is to not use "../" - you have to either use absolute file paths or use #include virtual.

samaru
a.k.a inscissor
Team Colleague
1,256 posts since Feb 2002
Reputation Points: 262
Solved Threads: 18
Skill Endorsements: 22

if you need it to work the way you describe, you can enable parent paths in IIS admin console.

RobUK
Light Poster
32 posts since Jul 2004
Reputation Points: 10
Solved Threads: 1
Skill Endorsements: 0

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page generated in 0.0631 seconds using 2.67MB