Forum Moderators: open

Message Too Old, No Replies

Server.MapPath won't allow ".." on my new server

What to do?

         

TheDave

2:09 am on Feb 12, 2004 (gmt 0)

10+ Year Member



Server.MapPath won't allow ".." on my new server, which I guess is a 2k3 thing which I wasnt prepared for, but I use it quite a bit with includes and path mapping. I'm kinda stumped as to how I'm going to work around this?

Xoc

2:20 am on Feb 12, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I believe that you need to set the Parent Paths checkbox in IIS manager. In IIS Manager, right click on your web site and select properties, change to the Home Directory tab and press Configuration, change to the App Options tab and check Parent Paths.

TheDave

2:33 am on Feb 12, 2004 (gmt 0)

10+ Year Member



Ok, thanks. I'll see if my host will allow this. I actually didn't realise that I was being moved to a 2k3 server (it was written I just didnt notice the "3"). Are there any other things I need to be aware of, in the way of major differences, between 2k and 2003?

Thanks

Xoc

3:10 am on Feb 12, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



That option is also available in 2000. It just was probably set for your old server and not set for your new one.

mattglet

1:02 pm on Feb 12, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



or you can do this:

<!-- #include virtual = "/directory/filename.ext" -->

-Matt

TheDave

12:38 am on Feb 14, 2004 (gmt 0)

10+ Year Member



Thanks Matt. That is what my host has instructed me to do also as they don't allow parent paths.