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
Posted
Updated 22-Mar-12 7:01am
v2
Comments
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.

   
Comments
Sergey Alexandrovich Kryukov 22-Mar-12 13:07pm
   
Right, a 5.
--SA
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.
   
Comments
meganathanm 22-Mar-12 13:01pm
   
Thank You For your Response.
Sergey Alexandrovich Kryukov 22-Mar-12 13:07pm
   
Sure, a 5.
--SA
Check the Master Page URLs like Scripts, Css links...
   
v2
Comments
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