Parent Path with Active Server Pages

K

Kevin

Keep getting the error below, because am using the ../ notation for an
include file in the root of a website.
Active Server Pages error 'ASP 0131' Disallowed Parent Path The Include
file '../vbutils.asp' cannot contain '..' to indicate the parent directory.
The webhosts will not change their settings on IIS6, because of a potential
security issue.
Can I overcome this problem by coding???
 
J

Jens Peter Karlsen[FP MVP]

You can overcome it by using absolute URLs.

Regards Jens Peter Karlsen. Microsoft MVP - Frontpage.
 
K

Kevin

Re: Parent Path with Active Server PagesOnly problem with using absolute paths is that the development server and the production server must be identical - which sadly they are not.
You can overcome it by using absolute URLs.

Regards Jens Peter Karlsen. Microsoft MVP - Frontpage.
 
C

Chris Leeds, MVP-FrontPage

Re: Parent Path with Active Server Pageswhy not just have the production server allow parent pathing? it would make your life easier.

--
Chris Leeds,
Microsoft MVP-FrontPage

Make More Money with Less Work
Let Your Clients Control Their Content With Just A Browser!
http://contentseed.com/
 
K

Kevin

Re: Parent Path with Active Server PagesIt would be wonderful - but the web hosting company will not allow this due to possible security issues. Would be nice to do this dynamically, by coding.
Have tried MapPath etc.
why not just have the production server allow parent pathing? it would make your life easier.

--
Chris Leeds,
Microsoft MVP-FrontPage

Make More Money with Less Work
Let Your Clients Control Their Content With Just A Browser!
http://contentseed.com/
 
R

Ronx

Use root relative links - example <a href="/folder/pagename.htm">blah</a>

The development and production servers should have identical file/folder
structures, else development and testing would be hit and miss.

--
Ron

Reply only to group - emails will be deleted unread.


Re: Parent Path with Active Server PagesOnly problem with using absolute
paths is that the development server and the production server must be
identical - which sadly they are not.
You can overcome it by using absolute URLs.

Regards Jens Peter Karlsen. Microsoft MVP - Frontpage.
 
K

Kevin

Tried that and the result:-
Active Server Pages error 'ASP 0130'
Invalid File attribute
/bizz/login.asp, line 3
File attribute '/vbutils.asp' cannot start with forward slash or back slash.
That also needs absolute paths on the server :((
Even tried using FrontPage Include Pages - but that gets the same result.

Must be a way around this??? :((

Ronx said:
Use root relative links - example <a
href="/folder/pagename.htm">blah said:
The development and production servers should have identical file/folder
structures, else development and testing would be hit and miss.

--
Ron

Reply only to group - emails will be deleted unread.


Re: Parent Path with Active Server PagesOnly problem with using absolute
paths is that the development server and the production server must be
identical - which sadly they are not.
You can overcome it by using absolute URLs.

Regards Jens Peter Karlsen. Microsoft MVP - Frontpage.
-----Original Message-----
From: Kevin [mailto:[email protected]]
Posted At: 7. oktober 2004 22:41
Posted To: microsoft.public.frontpage.programming
Conversation: Parent Path with Active Server Pages
Subject: Parent Path with Active Server Pages


Keep getting the error below, because am using the ../
notation for an include file in the root of a website.
Active Server Pages error 'ASP 0131' Disallowed Parent Path
The Include file '../vbutils.asp' cannot contain '..' to
indicate the parent directory.
The webhosts will not change their settings on IIS6, because
of a potential security issue.
Can I overcome this problem by coding???
 
C

clintonG

There is a solution but it requires using .NET which supports
the tilde operator, i.e. ~/folder/file.aspx

--
<%= Clinton Gallagher, "Twice the Results -- Half the Cost"
Architectural & e-Business Consulting -- Software Development
NET (e-mail address removed)
URL http://www.metromilwaukee.com/clintongallagher/



Kevin said:
Tried that and the result:-
Active Server Pages error 'ASP 0130'
Invalid File attribute
/bizz/login.asp, line 3
File attribute '/vbutils.asp' cannot start with forward slash or back slash.
That also needs absolute paths on the server :((
Even tried using FrontPage Include Pages - but that gets the same result.

Must be a way around this??? :((

Ronx said:
Use root relative links - example <a
href="/folder/pagename.htm">blah said:
The development and production servers should have identical file/folder
structures, else development and testing would be hit and miss.

--
Ron

Reply only to group - emails will be deleted unread.


Re: Parent Path with Active Server PagesOnly problem with using absolute
paths is that the development server and the production server must be
identical - which sadly they are not.
You can overcome it by using absolute URLs.

Regards Jens Peter Karlsen. Microsoft MVP - Frontpage.
-----Original Message-----
From: Kevin [mailto:[email protected]]
Posted At: 7. oktober 2004 22:41
Posted To: microsoft.public.frontpage.programming
Conversation: Parent Path with Active Server Pages
Subject: Parent Path with Active Server Pages


Keep getting the error below, because am using the ../
notation for an include file in the root of a website.
Active Server Pages error 'ASP 0131' Disallowed Parent Path
The Include file '../vbutils.asp' cannot contain '..' to
indicate the parent directory.
The webhosts will not change their settings on IIS6, because
of a potential security issue.
Can I overcome this problem by coding???
 
W

Walter

copy the includet file to all the folders where the asp-pages
and remuove manually the "../" from the source.


Kevin said:
Tried that and the result:-
Active Server Pages error 'ASP 0130'
Invalid File attribute
/bizz/login.asp, line 3
File attribute '/vbutils.asp' cannot start with forward slash or back slash.
That also needs absolute paths on the server :((
Even tried using FrontPage Include Pages - but that gets the same result.

Must be a way around this??? :((

Ronx said:
Use root relative links - example <a
href="/folder/pagename.htm">blah said:
The development and production servers should have identical file/folder
structures, else development and testing would be hit and miss.

--
Ron

Reply only to group - emails will be deleted unread.


Re: Parent Path with Active Server PagesOnly problem with using absolute
paths is that the development server and the production server must be
identical - which sadly they are not.
You can overcome it by using absolute URLs.

Regards Jens Peter Karlsen. Microsoft MVP - Frontpage.
-----Original Message-----
From: Kevin [mailto:[email protected]]
Posted At: 7. oktober 2004 22:41
Posted To: microsoft.public.frontpage.programming
Conversation: Parent Path with Active Server Pages
Subject: Parent Path with Active Server Pages


Keep getting the error below, because am using the ../
notation for an include file in the root of a website.
Active Server Pages error 'ASP 0131' Disallowed Parent Path
The Include file '../vbutils.asp' cannot contain '..' to
indicate the parent directory.
The webhosts will not change their settings on IIS6, because
of a potential security issue.
Can I overcome this problem by coding???
 
K

Kevin

Would work but not a very elegant solution.
Think Microsoft missed this one as seems to be an odd and annoying error.

Kevin

Walter said:
copy the includet file to all the folders where the asp-pages
and remuove manually the "../" from the source.


Kevin said:
Tried that and the result:-
Active Server Pages error 'ASP 0130'
Invalid File attribute
/bizz/login.asp, line 3
File attribute '/vbutils.asp' cannot start with forward slash or back
slash.
That also needs absolute paths on the server :((
Even tried using FrontPage Include Pages - but that gets the same result.

Must be a way around this??? :((

Ronx said:
Use root relative links - example <a
href="/folder/pagename.htm">blah said:
The development and production servers should have identical
file/folder
structures, else development and testing would be hit and miss.

--
Ron

Reply only to group - emails will be deleted unread.


Re: Parent Path with Active Server PagesOnly problem with using
absolute
paths is that the development server and the production server must be
identical - which sadly they are not.
You can overcome it by using absolute URLs.

Regards Jens Peter Karlsen. Microsoft MVP - Frontpage.

-----Original Message-----
From: Kevin [mailto:[email protected]]
Posted At: 7. oktober 2004 22:41
Posted To: microsoft.public.frontpage.programming
Conversation: Parent Path with Active Server Pages
Subject: Parent Path with Active Server Pages


Keep getting the error below, because am using the ../
notation for an include file in the root of a website.
Active Server Pages error 'ASP 0131' Disallowed Parent Path
The Include file '../vbutils.asp' cannot contain '..' to
indicate the parent directory.
The webhosts will not change their settings on IIS6, because
of a potential security issue.
Can I overcome this problem by coding???
 

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

Similar Threads


Top