System.Web.AspNetHostingPermission failure

2 posts, 0 answers
  1. Peter Sitero
    Peter Sitero avatar
    15 posts
    Member since:
    Oct 2009

    Posted 15 Oct 2009 Link to this post

    My company bought the RadControls for and the first time I have tried to use any of the controls after a uneventful and successful install I get this error:
    Error 1 Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. Z:\ClosingApp\Default.aspx 14 
    What is causing this error?
  2. T. Tsonev
    T. Tsonev avatar
    2791 posts

    Posted 16 Oct 2009 Link to this post


    I assume that Z: drive is a mapped network share, is that correct? The .NET Code Access Security (CAS) disallows executing code from the intranet zone by default. You should either move the application to a local drive or modify the CAS policy.

    Refer to this KB for more information:

    Best wishes,
    Tsvetomir Tsonev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top