This is a migrated thread and some comments may be shown as answers.

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

5 Answers 154 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Piyush Bhatt
Top achievements
Rank 2
Piyush Bhatt asked on 03 Jan 2008, 11:13 PM
My RadMenu was working fine with the Rad Controls. After upgrading it to Prometheus, I get the error only on Production Server that -

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

[HttpException (0x80004005): Cannot use a leading .. to exit above the top directory.] System.Web.Util.UrlPath.ReduceVirtualPath(String path) +3644954 System.Web.Util.UrlPath.ReduceVirtualPath(String path) +3644992 System.Web.Util.UrlPath.Reduce(String path) +84 System.Web.Util.UrlPath.Combine(String appPath, String basepath, String relative) +355 System.Web.UI.Control.ResolveUrl(String relativeUrl) +235 Telerik.Web.UI.RadMenuItem.RenderImage(HtmlTextWriter writer) +90 Telerik.Web.UI.RadMenuItem.RenderContents(HtmlTextWriter writer) +80

My RadMenu ImageUrl refers to ~/images/icons folder. And I checked the whole site - there is no reference to "../" for css. I had a css that was referencing images as "../" - and it was working fine. I even took that CSS out - still its giving this error.

So, what could be wrong?
-Piyush

5 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 04 Jan 2008, 09:12 AM
Hi Piyush,

I think you have discovered a bug in RadMenu "Prometheus". We would fix it in the official service pack which will probably be released next week. If this is a showstopper please open a formal support ticket so we can send you a hotfix.

Regards,
Albert
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
David Penrose
Top achievements
Rank 1
answered on 06 Jan 2008, 10:14 AM
I am also seeing these errors after migrating from radControls 1.1 to radControls 2.0. There are several telerik skins that use ".." in image reference. For example:

background-image

:url(../Img/sideNavCategoryBg.gif);

What is the fix? Please advise.

David Penrose
Top Network

0
Atanas Korchev
Telerik team
answered on 07 Jan 2008, 08:48 AM
Hello David,

Do you experience this problem with Prometheus controls or with "Classic" RadControls? The leading dots in the skins should not cause such issues because they are not processed by the ASP.NET runtime (which emits that exception).

It would be of great help if you open a support ticket and send us a sample project which replicates the error. Once we reproduce the error we would be able to provide a solution.

Regards,
Albert
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Piyush Bhatt
Top achievements
Rank 2
answered on 14 Jan 2008, 04:00 PM

My project was 'temporaryweb' and its local url was 'locationhost:1126/temporaryweb/'. In this URL the menu was working w/o problem. But when I published it on the server where the url was 'http://www.temporaryweb.com/' - in the root folder - this error started popping up.

Then on server I created 'test' folder and installed application in 'test' folder. In this folder there is no error.

I think the issue occurs when the RadMenu is implemented at the 'root' folder of the site. Please update if a hotfix or servicepack is published or not.

Thanks,
Piyush Bhatt.
0
Atanas Korchev
Telerik team
answered on 14 Jan 2008, 04:16 PM
Hi Piyush,

The hotfix is expected tomorrow. Please try it out when it goes live and let us know if it solves the problem. Thanks.

Regards,
Albert
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Menu
Asked by
Piyush Bhatt
Top achievements
Rank 2
Answers by
Atanas Korchev
Telerik team
David Penrose
Top achievements
Rank 1
Piyush Bhatt
Top achievements
Rank 2
Share this question
or