Not enough permissions. Inherit your page class from RadAjaxPage if you are running under Medium trust level.

17 posts, 0 answers
  1. prady
    prady avatar
    6 posts
    Member since:
    Aug 2007

    Posted 28 Nov 2007 Link to this post

    hi
    good evening telrick team how are you

    we are trying all of my web based app using your rad controls

    it is working everything fine in local iis without any problems

    but after uploading into my web server we got the following error
    and especially while trying to display rad scheduler using iframe concept part of our arctecture

    please provide solution for this problem asap
    because our project deliverery very soon

    thanks to your team once again

    syna-g team







    Server Error in '/' Application.

    Not enough permissions.
    Inherit your page class from RadAjaxPage if you are running under Medium trust level.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.InvalidOperationException: Not enough permissions.
    Inherit your page class from RadAjaxPage if you are running under Medium trust level.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:

    [InvalidOperationException: Not enough permissions.Inherit your page class from RadAjaxPage if you are running under Medium trust level.] Telerik.Web.UI.RadAjaxControl.AttachOnRender() +235 Telerik.Web.UI.RadAjaxControl.OnPagePreRenderComplete(Object sender, EventArgs e) +111 System.EventHandler.Invoke(Object sender, EventArgs e) +0 System.Web.UI.Page.OnPreRenderComplete(EventArgs e) +2058052 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1566


    Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET Version:2.0.50727.832

  2. Steve
    Admin
    Steve avatar
    10942 posts
    Member since:
    May 2014

    Posted 28 Nov 2007 Link to this post

    Hi prady,

    Your web application is running in Medium trust. However RadAjax "Prometheus" has some limitations when running in medium trust. To make it work you  should  change  the base type of your pages that use radjax from "System.Web.UI.Page"  to "Telerik.Web.UI.RadAjaxPage":

    Before:

    public partial class MyPage : Page

    After:
    public partial class MyPage: RadAjaxPage

    Regards,
    Steve
    the Telerik team


    Instantly find answers to your questions at the new Telerik Support Center

  3. DevCraft Release
  4. Horacio Judeikin
    Horacio Judeikin avatar
    8 posts
    Member since:
    Jul 2007

    Posted 23 Jan 2008 Link to this post

    Hello,

    We are trying Prometheus and are facing the same problem.

    We are developing a DNN (DotNetNuke) module and thus, we cannot simply change the page's base class (the module's controls Inherits from Entities.Modules.PortalModuleBase).

    How can we solve this problem?

    Thanks in advance!

  5. Steve
    Admin
    Steve avatar
    10942 posts
    Member since:
    May 2014

    Posted 05 Feb 2008 Link to this post

    Hi guys,

    This is just a follow up to let you know that we've made the necessary adjustments and exposed a new property, which can be used when you run RadAjax Prometheus in Medium trust - RestoreOriginalRenderDelegate. By default it is true, if you need it in Medium trust, you should set that to false (it would be documented in Q3 SP2).
    Find attached the latest internal hotfix to this thread including the new property.

    Do let us know if you encounter any problems with it.

    Greetings,
    Steve
    the Telerik team


    Instantly find answers to your questions at the new Telerik Support Center

  6. Patrick
    Patrick avatar
    20 posts
    Member since:
    Feb 2008

    Posted 18 Sep 2008 Link to this post

    I got the same problem with my radgrid, on medium trust level on a server. Im using it with DNN 4.8'.

    Where can i set the RestoreOriginalRenderDelegate value?

    Thank you.

  7. Pavel
    Admin
    Pavel avatar
    902 posts
    Member since:
    Jan 2013

    Posted 19 Sep 2008 Link to this post

    Hello Patrick,

    The RestoreOriginalRenderDelegate property can be set on RadAjaxManager or RadAjaxPanel control like this:

    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" RestoreOriginalRenderDelegate="false"
        <AjaxSettings> 
            ... 
        </AjaxSettings> 
    </telerik:RadAjaxManager> 


    Greetings,
    Pavel
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.

  8. Rutger Buijzen
    Rutger Buijzen avatar
    21 posts
    Member since:
    Nov 2006

    Posted 16 Oct 2008 Link to this post

    Hi, I'm currently facing the same error. Could this have something to do with a windows update? Problem is that I have the error in a DNN modules, so I cannot change the Page class as suggested in this post. Is there another fix that works in DNN?

  9. Sebastian
    Admin
    Sebastian avatar
    9817 posts
    Member since:
    Sep 2012

    Posted 16 Oct 2008 Link to this post

    Hi Rutger,

    Try setting the RestoreOriginalRenderDelegate property to false as suggested in the last post and let us know whether this helps. Also verify that you are using the latest version 2008.2.1001 of RadControls for ASP.NET AJAX.

    Best regards,
    Stephen
    the Telerik team


    Check out Telerik Trainer, the state of the art learning tool for Telerik products.

  10. Rutger Buijzen
    Rutger Buijzen avatar
    21 posts
    Member since:
    Nov 2006

    Posted 16 Oct 2008 Link to this post

    Thanks again stephen!

  11. CBARS
    CBARS avatar
    55 posts
    Member since:
    Sep 2008

    Posted 04 Jan 2009 Link to this post

    Hi

    Do you only need to set the property on the AJAX manager on the master page? What about the proxies on child pages?

    Also, which class should the master pages inherit from to fix this problem?

    Regards...

  12. Kashan
    Kashan avatar
    1 posts
    Member since:
    Jun 2009

    Posted 23 Jun 2009 Link to this post

    Hello Telerik team,
    i also got the same problem and the massage was occur that " not enough permoissions..." and i made the changes as you told ie "System.Web.UI.Page"  to "Telerik.Web.UI.RadAjaxPage" now the page show on server but there is no loading panel display when i trigger even the page refresh, like there is no ajax it is running very smooth locally
    Please help me what to do... reply soon

  13. Jason
    Jason avatar
    12 posts
    Member since:
    Aug 2007

    Posted 13 Sep 2009 Link to this post

    What if you are using Master pages. Is there a class for that.

  14. Sebastian
    Admin
    Sebastian avatar
    9817 posts
    Member since:
    Sep 2012

    Posted 14 Sep 2009 Link to this post

    Hello Hector,

    It is enough to have your content page inherits from RadAjaxPage. Thus RadAjax controls which are either on your master page or the content page/user control inside the content page should work without issues under Medium trust environment.

    Kind regards,
    Sebastian
    the Telerik team


    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.

  15. phil doc
    phil doc avatar
    9 posts
    Member since:
    Jun 2009

    Posted 21 Oct 2009 Link to this post

    Hi,


    I am using Q2 2008 controls but they wont work with my shared hosting provider.  I've inherited from the RadAjaxPage but this doesnt solve the problem.

    The controls are visible but they don't dropdown/expand etc etc.

    Was there any fixes for this?

    I've used the latest trial of the controls and they work ok but I can't afford them and would expect the ones I bought to work just fine.

    Thks

    Phil

  16. Sebastian
    Admin
    Sebastian avatar
    9817 posts
    Member since:
    Sep 2012

    Posted 21 Oct 2009 Link to this post

    Hello phil doc,

    Is it possible that some javascript errors on the page conflict with the client initialization of some of your RadControls and cause the erroneous behavior? Please address them if any, this should not depend on the versions of the controls you are using.

    The exception discussed here is generated on the server and the page fails to load at all in this case.

    Kind regards,
    Sebastian
    the Telerik team


    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.

  17. phil doc
    phil doc avatar
    9 posts
    Member since:
    Jun 2009

    Posted 21 Oct 2009 Link to this post

    I'll start a new thread

  18. kalpesh
    kalpesh avatar
    1 posts
    Member since:
    Oct 2010

    Posted 08 Apr 2011 Link to this post

    Thanks Pavel the Telerik team
    Its working for me.

Back to Top
DevCraft Release