Does Upload work in Medium trust?

Thread is closed for posting
4 posts, 0 answers
  1. Scott
    Scott avatar
    45 posts
    Member since:
    Apr 2008

    Posted 08 Oct 2008 Link to this post

    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.
  2. Paul
    Admin
    Paul avatar
    4281 posts

    Posted 08 Oct 2008 Link to this post

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

    Posted 08 Oct 2008 Link to this post

    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?
  5. Erjan Gavalji
    Admin
    Erjan Gavalji avatar
    1455 posts

    Posted 09 Oct 2008 Link to this post

    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.
Back to Top