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

System.Security.SecurityException is coming while fetching data in radgrid from sql connection

1 Answer 115 Views
Grid
This is a migrated thread and some comments may be shown as answers.
chirayu
Top achievements
Rank 1
chirayu asked on 07 Jul 2011, 12:41 PM
System.Security.SecurityException is coming while fetching data in radgrid from sqlConnection object
I have uploaded the site to netfirms.com, they are only supporting Medium Trust Level.

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.


I have used templates for editing in radgrid.

How to get data in the radgrid without using reflection ?


1 Answer, 1 is accepted

Sort by
0
Veli
Telerik team
answered on 13 Jul 2011, 09:12 AM
Hello Chirayu,

RadGrid does not use reflection for databinding. Can you send us the stack trace of the exception so that we can investigate this further. RadAjax, on the other hand, uses reflection and cannot be used off-the-shelf in medium trust environments. Does  your page use any RadAjax controls? If so, consider disabling any AJAX functionality and see if it makes any difference. If you narrow down the issue to RadAjax, we have a help topic on how to workaround this issue.

Veli
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
Grid
Asked by
chirayu
Top achievements
Rank 1
Answers by
Veli
Telerik team
Share this question
or