IIS 5.1 (windows xp) <--> IIS SBS

G

Guest

Hello,
We upgraded to Windows Small Business Server 2003
It seems that there is something changed with the asp INCLUDE statement.

here is my code:
<!--#include file="../_includes/common.asp" -->

and the error:
Active Server Pages error 'ASP 0131'
Disallowed Parent Path
/artabel/info/default.asp, line 2
The Include file '../_includes/common.asp' cannot contain '..' to indicate
the parent directory.


It appears that the INCLUDE statement should point to absolute paths, not to
relative paths.

How can I use my website without changing every page?
Can I allow IIS of SBS2003 to use "../_includes/common.asp" ? How to
configure it?
The website still runs on IIS 5.1, delivered with Windows XP Prof


any help is appreciated,
regards,
bart




--

=======================================
ARTABEL
Bart Plessers
Schreursvest 67
3001 Leuven
BELGIUM
tel +32 (16) 23.40.85
tel +32 (16) 28.40.03 (rechtstreeks)
fax +32 (16) 23.41.06
email: (e-mail address removed)
web: http://www.artabel.com
=======================================
 
T

Tom Kaminski [MVP]

Hello,
We upgraded to Windows Small Business Server 2003
It seems that there is something changed with the asp INCLUDE statement.

here is my code:
<!--#include file="../_includes/common.asp" -->

and the error:
Active Server Pages error 'ASP 0131'
Disallowed Parent Path
/artabel/info/default.asp, line 2
The Include file '../_includes/common.asp' cannot contain '..' to indicate
the parent directory.


It appears that the INCLUDE statement should point to absolute paths, not
to relative paths.

How can I use my website without changing every page?
Can I allow IIS of SBS2003 to use "../_includes/common.asp" ? How to
configure it?

Yes, Parent Paths are disabled by default in IIS 6.
http://support.microsoft.com/default.aspx?scid=kb;en-us;332117
 
K

Kristofer Gafvert [MVP]

Hi Bart,

Parent Paths is a feature (related to ASP) that allows you to use "..\" to
move upwards and access files in a parent folder. Parent Paths is
considered to be dangerous because it may be used by an intruder to access
critical or confidential files outside the root of the application. Since
IIS 6.0 is locked down by default, Parent Paths is disabled on a default
installation of IIS 6.0.

To enable Parent Paths:
Click Start->Programs->Administrative Tools->Internet Information Services
Expand Web Sites and right click the web site you want to enable this for
(i.e Default Web Site), click Properties
Click the Home directory tab and click the Configuration button
Click on the Options tab
Check the box Enable Parent Paths

Also see:

http://www.gafvert.info/notes/DisallowedParentPath.htm
 
G

Guest

thanx!

--

=======================================
ARTABEL
Bart Plessers
Schreursvest 67
3001 Leuven
BELGIUM
tel +32 (16) 23.40.85
tel +32 (16) 28.40.03 (rechtstreeks)
fax +32 (16) 23.41.06
email: (e-mail address removed)
web: http://www.artabel.com
=======================================
 
G

Guest

thanx!

--

=======================================
ARTABEL
Bart Plessers
Schreursvest 67
3001 Leuven
BELGIUM
tel +32 (16) 23.40.85
tel +32 (16) 28.40.03 (rechtstreeks)
fax +32 (16) 23.41.06
email: (e-mail address removed)
web: http://www.artabel.com
=======================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top