ReflectionPermission; what's creating the error?

4 posts, 0 answers
  1. Derek
    Derek avatar
    118 posts
    Member since:
    Oct 2008

    Posted 28 Jul 2010 Link to this post

    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.

  2. shahab
    shahab avatar
    22 posts
    Member since:
    Oct 2012

    Posted 01 Aug 2010 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Derek
    Derek avatar
    118 posts
    Member since:
    Oct 2008

    Posted 01 Aug 2010 Link to this post

    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?
  5. shahab
    shahab avatar
    22 posts
    Member since:
    Oct 2012

    Posted 01 Aug 2010 Link to this post

    That is exactly I am after.BTW what did you ask your hosting guys to modify and where in the config file?
Back to Top