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

Does Upload work in Medium trust?

3 Answers 96 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Scott
Top achievements
Rank 2
Scott asked on 08 Oct 2008, 06:06 AM
I have a need to use Upload in an environment that has Medium trust.  I've fixed a number of "Security Exception" errors for the other tools by inheriting Telerik.Web.UI.RadAjaxPage...but can't find anything to fix the Upload

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 failed.

3 Answers, 1 is accepted

Sort by
0
Paul
Telerik team
answered on 08 Oct 2008, 07:43 AM
Hello Scott,

Progress monitoring requires ReflectionPermission in order to operate correctly. This means that in normal circumstances you will have to run your application with Full Trust permission set, unless you create a custom security policy that allows ReflectionPermission. If you are unable to set Full Trust or a custom security policy, the solution is to put the controls assembly in GAC.

Greetings,
Paul
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Scott
Top achievements
Rank 2
answered on 08 Oct 2008, 05:56 PM
Thanks.  Good news is that I just read my hosting company has Medium trust with some exceptions including ReflectionPermission... so I uploaded my file to test and it worked.

Just so I'm clear, RadAjaxPage is the only and current way to get around the medium trust issue when telerik is used, correct?  If not, what are they other ways?
0
Erjan Gavalji
Telerik team
answered on 09 Oct 2008, 07:08 AM
Hi Scott,

No, RadAjaxPage is required only for RadAjax (RadAjaxManager and RadAjaxPanel) to work under Medium Trust. Additionally, it is required mainly because of ReflectionPermission, so you should not experience any problems with the normal pages.

Best,
Erjan Gavalji
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Upload (Obsolete)
Asked by
Scott
Top achievements
Rank 2
Answers by
Paul
Telerik team
Scott
Top achievements
Rank 2
Erjan Gavalji
Telerik team
Share this question
or