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

ReflectionPermission; what's creating the error?

3 Answers 56 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Derek
Top achievements
Rank 1
Derek asked on 28 Jul 2010, 02:24 PM

We have a telerik site that my developers are trying to move onto a production hosting environment. The hosting environment provides a marginally modified medium trust level. When we try to run the application, we get a security exception error as shown below. I've read the comments about RadUpload ProgressHandler requiring reflectionpermission, but the app is not using RadUploads, and all references to RadUpload and RadUploadProgressHandler have been removed from web.config.

Is there anything else that would be trying to use reflectionpermission? I have no idea where to begin looking for the issue.

Thanks in advance,

------------------------------------

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.Security.Permissions.ReflectionPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

3 Answers, 1 is accepted

Sort by
0
shahab
Top achievements
Rank 1
answered on 01 Aug 2010, 12:46 PM
Hi did you get any solution because I am also facing the same issue.All my other controls works just fine except the RadGrid creates the same security error.I am on a shared hosting environment so getting the admin to relax security will be an uphill battle.It would be nice to know what is causing and how it can be resolved.
many thanks
0
Derek
Top achievements
Rank 1
answered on 01 Aug 2010, 01:00 PM
My hosting provider changed the trust level for this application; that solved the problem, but I still didn't answer the original question.

I wonder if any of the Telerik support engineers are reading this and can clarify? Specifically, the question is what would be causing the call to use ReflectionPermission?
0
shahab
Top achievements
Rank 1
answered on 01 Aug 2010, 01:07 PM
That is exactly I am after.BTW what did you ask your hosting guys to modify and where in the config file?
Tags
General Discussions
Asked by
Derek
Top achievements
Rank 1
Answers by
shahab
Top achievements
Rank 1
Derek
Top achievements
Rank 1
Share this question
or