Click here to Skip to main content
15,308,422 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Good Evening To all. In my project While i insert data in some page i have the "cannot use a leading .. to exit above the top directory" Error only in hosting server but no problem in localhost how can i solve please any one help me.cannot use a leading .. to exit above the top directory. master page

thanks in advance
Meganathan M
Updated 22-Mar-12 7:01am
ZurdoDev 22-Mar-12 12:53pm
You need to make the path proper. If you are using ASP controls you can try using ~/ to go to the root of the site no matter how deep it is.

Sergey Alexandrovich Kryukov 22-Mar-12 13:07pm
Right, a 5.
wizardzz 22-Mar-12 13:36pm
I wonder if OP tried Google.
[no name] 22-Mar-12 14:22pm
Exact same question was asked here about 3 days ago....
wizardzz 22-Mar-12 14:41pm
Ugh, I don't know how it could be, but I suspect homework... Ugh.
First off, love your name. It's like Mega + Nathan.

Ok, so it looks like you are using ".." to go up a directory hierarchy to a point past the highest directory that exists. You should probably check that your local and remote directory structures are identical.

Basically you have a bad path that's going up the directory path too high.
meganathanm 22-Mar-12 13:01pm
Thank You For your Response.
Sergey Alexandrovich Kryukov 22-Mar-12 13:07pm
Sure, a 5.
Check the Master Page URLs like Scripts, Css links...
CHill60 27-Jan-14 10:40am
Question is old and answered clearly. Unlike your comment

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900