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

Security Exception error

5 Answers 82 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
banshi khinchi
Top achievements
Rank 1
banshi khinchi asked on 06 May 2010, 12:19 AM
Hello Support,

We have been using Telerik  binaries of version 2008.3.1314.20 and recently decided to upgradde to 2009.3.1314.35. As soon as we copy Telerik.Web.Design and Telerik.Web.UI as new reference, we start getting Security EXception error. I have no clue, what is causing it. Please advice !

Thank you,

5 Answers, 1 is accepted

Sort by
0
Ivan Dimitrov
Telerik team
answered on 06 May 2010, 06:31 AM
Hi banshi khinchi,

What is the error you are getting? When you try to load a website is there any stack trace?

Kind regards,
Ivan Dimitrov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
banshi khinchi
Top achievements
Rank 1
answered on 06 May 2010, 10:03 PM

Hi,

Googled it and try to follow different options like changing the trust level in iis etc...but nothing seem to be worked
Thanks,

Security Exception

Description: The application attempted to perform an operation not allowed by the security policy.  To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]
   System.Reflection.Assembly._GetType(String name, Boolean throwOnError, Boolean ignoreCase) +0
   System.Web.UI.NamespaceTagNameToTypeMapper.GetControlType(String tagName, IDictionary attribs, Boolean throwOnError) +209
   System.Web.UI.TagPrefixTagNameToTypeMapper.System.Web.UI.ITagNameToTypeMapper.GetControlType(String tagName, IDictionary attribs) +210
   System.Web.UI.MainTagNameToTypeMapper.GetControlType2(String tagName, IDictionary attribs, Boolean fAllowHtmlTags) +242
   System.Web.UI.MainTagNameToTypeMapper.GetControlType(String tagName, IDictionary attribs, Boolean fAllowHtmlTags) +17
   System.Web.UI.RootBuilder.GetChildControlType(String tagName, IDictionary attribs) +22
   System.Web.UI.ControlBuilder.CreateChildBuilder(String filter, String tagName, IDictionary attribs, TemplateParser parser, ControlBuilder parentBuilder, String id, Int32 line, VirtualPath virtualPath, Type& childType, Boolean defaultProperty) +119
   System.Web.UI.TemplateParser.ProcessBeginTag(Match match, String inputText) +605
   System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding) +1334


Version Information: Microsoft .NET Framework Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927
0
banshi khinchi
Top achievements
Rank 1
answered on 08 May 2010, 04:00 PM
Hi,

Any advice on the issue !

Thanks
0
banshi khinchi
Top achievements
Rank 1
answered on 17 May 2010, 11:31 PM
Hi Guys,

Just wondering, if I can have update on the following issue !!!!
0
Daniel
Telerik team
answered on 18 May 2010, 08:23 AM
Hello Banshi,

If you are using AJAX or PDF export in medium trust please examine the following links:
Using RadAjax in Medium Trust
PDF export

If you are already in full trust, you can check this link:
http://dbvt.com/blog/post/AspNetHostingPermission-Security-Exception-Fix-with-Ajax-in-IIS7.aspx

Other than this, I suggest you try a newer version of RadControls for ASP.NET AJAX.

Regards,
Daniel
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
General Discussions
Asked by
banshi khinchi
Top achievements
Rank 1
Answers by
Ivan Dimitrov
Telerik team
banshi khinchi
Top achievements
Rank 1
Daniel
Telerik team
Share this question
or