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

6 posts, 0 answers
  1. Piyush Bhatt
    Piyush Bhatt avatar
    166 posts
    Member since:
    Nov 2007

    Posted 03 Jan 2008 Link to this post

    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
  2. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 04 Jan 2008 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. David Penrose
    David Penrose avatar
    33 posts
    Member since:
    Feb 2003

    Posted 06 Jan 2008 Link to this post

    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

  5. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 07 Jan 2008 Link to this post

    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
  6. Piyush Bhatt
    Piyush Bhatt avatar
    166 posts
    Member since:
    Nov 2007

    Posted 14 Jan 2008 Link to this post


    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.
  7. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 14 Jan 2008 Link to this post

    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
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017