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

System.Web.AspNetHostingPermission failure

1 Answer 69 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Peter Sitero
Top achievements
Rank 1
Peter Sitero asked on 15 Oct 2009, 08:36 PM
My company bought the RadControls for asp.net 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=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. Z:\ClosingApp\Default.aspx 14 
What is causing this error?

1 Answer, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 16 Oct 2009, 08:44 AM
Hello,

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:
http://support.microsoft.com/kb/948034

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.
Tags
General Discussions
Asked by
Peter Sitero
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Share this question
or