cannot use a leading .. to exit above the top directory.

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
User avatar
jsmits
Lieutenant (LT)
Lieutenant (LT)
Posts: 66
Joined: Wed Sep 30, 2009 11:57 am

cannot use a leading .. to exit above the top directory.

Post by jsmits » Wed Dec 02, 2009 9:47 am

When I try to access pages from the Members directory I get the error: cannot use a leading .. to exit above the top directory. Seems like a pretty straight forward error message, but I am having trouble pinning down where it is happening. Has anybody experienced this error before?

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: cannot use a leading .. to exit above the top directory.

Post by mazhar » Wed Dec 02, 2009 10:49 am

Better make use of ~ for root and then access pages from there. For example from members directory if you are going for some page on root for example Contact.aspx. Simply make use of ~/ContactUs.aspx or if in some different directory then ~/directoryname/page.aspx.

User avatar
jsmits
Lieutenant (LT)
Lieutenant (LT)
Posts: 66
Joined: Wed Sep 30, 2009 11:57 am

Re: cannot use a leading .. to exit above the top directory.

Post by jsmits » Wed Dec 02, 2009 10:53 am

Thanks Mazhar,

I just figured it out. In the db I had the images set with a leading ../. Changing that to a ~ fixed the problem. It was a tough one to hunt down as I thought it had to do with the register of a control or something.

Post Reply