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

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

16 Answers 1066 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
prady
Top achievements
Rank 1
prady asked on 28 Nov 2007, 03:50 PM
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

16 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 28 Nov 2007, 04:23 PM
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
0
Accord Dev Team
Top achievements
Rank 1
answered on 23 Jan 2008, 10:22 PM
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!
0
Steve
Telerik team
answered on 05 Feb 2008, 03:23 PM
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
0
Patrick
Top achievements
Rank 1
answered on 18 Sep 2008, 12:37 PM
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.
0
Pavel
Telerik team
answered on 19 Sep 2008, 07:00 AM
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.
0
Rutger Buijzen
Top achievements
Rank 2
answered on 16 Oct 2008, 08:37 AM
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?
0
Sebastian
Telerik team
answered on 16 Oct 2008, 08:44 AM
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.
0
Rutger Buijzen
Top achievements
Rank 2
answered on 16 Oct 2008, 08:49 AM
Thanks again stephen!
0
CBARS
Top achievements
Rank 2
answered on 04 Jan 2009, 01:13 PM
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...
0
Kashan
Top achievements
Rank 1
answered on 24 Jun 2009, 03:53 AM
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
0
Jason
Top achievements
Rank 1
answered on 14 Sep 2009, 03:15 AM
What if you are using Master pages. Is there a class for that.
0
Sebastian
Telerik team
answered on 14 Sep 2009, 10:40 AM
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.
0
phil doc
Top achievements
Rank 1
answered on 21 Oct 2009, 11:51 AM
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
0
Sebastian
Telerik team
answered on 21 Oct 2009, 11:56 AM
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.
0
phil doc
Top achievements
Rank 1
answered on 21 Oct 2009, 02:18 PM
I'll start a new thread
0
kalpesh
Top achievements
Rank 1
answered on 08 Apr 2011, 08:04 AM
Thanks Pavel the Telerik team
Its working for me.
Tags
Scheduler
Asked by
prady
Top achievements
Rank 1
Answers by
Steve
Telerik team
Accord Dev Team
Top achievements
Rank 1
Patrick
Top achievements
Rank 1
Pavel
Telerik team
Rutger Buijzen
Top achievements
Rank 2
Sebastian
Telerik team
CBARS
Top achievements
Rank 2
Kashan
Top achievements
Rank 1
Jason
Top achievements
Rank 1
phil doc
Top achievements
Rank 1
kalpesh
Top achievements
Rank 1
Share this question
or