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

parial trust security exception

6 Answers 70 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
a.bek
Top achievements
Rank 1
a.bek asked on 14 Nov 2007, 09:01 PM
on a page that works without expeption in a partial trust enviroment i tried to ajaxify some controls and i m getting the following expeption

atempt to access a method failed

   at System.Reflection.MethodBase.PerformSecurityCheck(Object obj, RuntimeMethodHandle method, IntPtr parent, UInt32 invocationFlags)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.Reflection.RuntimePropertyInfo.GetValue(Object obj, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture)
   at System.Reflection.RuntimePropertyInfo.GetValue(Object obj, Object[] index)
   at Telerik.Web.UI.ProxyScriptControl.AddRadControlScriptDescriptors(ArrayList scriptDescriptors, Control child)
   at Telerik.Web.UI.ProxyScriptControl.GetScriptDescriptors()
   at System.Web.UI.ScriptControlManager.RegisterScriptDescriptors(IScriptControl scriptControl)
   at System.Web.UI.ScriptManager.RegisterScriptDescriptors(IScriptControl scriptControl)
   at Telerik.Web.UI.ProxyScriptControl.Render(HtmlTextWriter writer)
   at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)
   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
   at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
   at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)
   at System.Web.UI.Control.Render(HtmlTextWriter writer)
   at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)
   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
   at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
   at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)
   at System.Web.UI.UpdatePanel.RenderChildren(HtmlTextWriter writer)
   at System.Web.UI.Control.Render(HtmlTextWriter writer)
   at System.Web.UI.UpdatePanel.Render(HtmlTextWriter writer)
   at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)
   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
   at System.Web.UI.PageRequestManager.RenderFormCallback(HtmlTextWriter writer, Control containerControl)
   at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
   at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)
   at System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer)
   at System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output)
   at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)
   at System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer)
   at System.Web.UI.HtmlFormWrapper.System.Web.UI.IHtmlForm.RenderControl(HtmlTextWriter writer)
   at System.Web.UI.PageRequestManager.RenderPageCallback(HtmlTextWriter writer, Control pageControl)
   at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
   at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)
   at System.Web.UI.Page.Render(HtmlTextWriter writer)
   at Telerik.Web.UI.RadAjaxPage.Render(HtmlTextWriter writer)
   at WM.FrameWork.Web.BasePage.Render(HtmlTextWriter writer) in F:\NET Solutions\Csharp\WM\WM.FrameWork.2\WM.FrameWork.Web.2\BasePage.cs:line 112
   at WM.Manager.Controls.Manager.ManagerBasePage.Render(HtmlTextWriter writer) in f:\NET Solutions\Csharp\WM\POX\App_Code\ManagerBasePage.cs:line 219
   at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)
   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

any ideas??

6 Answers, 1 is accepted

Sort by
0
Konstantin Petkov
Telerik team
answered on 15 Nov 2007, 11:37 AM
Hello a.bek,

Does this error occur with the latest Prometheus version labeled 2007_2_1107? If so, would you post the relevant code so that we can investigate the problem locally? Is there something specific in your Telerik.Web.UI controls configuration?

Kind regards,
Konstantin Petkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
a.bek
Top achievements
Rank 1
answered on 15 Nov 2007, 03:41 PM
Yes i m using the latest version but can't past code here cause is too complecated is there any other way i could get more info of the exception please suggest an alternative
0
a.bek
Top achievements
Rank 1
answered on 15 Nov 2007, 03:42 PM
i remind u that when i remove radajaxmanager no exception is raised
0
Konstantin Petkov
Telerik team
answered on 16 Nov 2007, 07:08 AM
Hello a.bek,

Unfortunately our attempts to replicate the problem locally fail so far, at least with Medium trust level. We highly appreciate if you can isolate the problem in a sample project and send it through a regular support ticket. It will be investigated and we will provide solution if possible.

Greetings,
Konstantin Petkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
a.bek
Top achievements
Rank 1
answered on 18 Nov 2007, 03:30 PM
it happens when u tried to ajaxify a radtree i have submitted a support ticket on this
0
Vlad
Telerik team
answered on 22 Nov 2007, 12:41 PM
Hi a.bek,

We have fixed this problem and the fix will be available officially for Q3. You can request RadTreeView dev version via support ticket.

Kind regards,
Vlad
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Ajax
Asked by
a.bek
Top achievements
Rank 1
Answers by
Konstantin Petkov
Telerik team
a.bek
Top achievements
Rank 1
Vlad
Telerik team
Share this question
or