Problem using CuteEditor on ASP.NET

Last post 11-20-2012, 10:21 AM by Chaplain Doug. 3 replies.
Sort Posts: Previous Next
  •  11-19-2012, 12:04 PM 75285

    Problem using CuteEditor on ASP.NET

    I moved my web site to a new platform (Windows Server 2008 R2, IIS 7) and am now having a problem when I try to use the CuteEditor.  I get the following error.  ANY help will be appreciated.  Thanks.

     

     

    Server Error in '/' Application.

    Attempt by method 'CuteEditor.Editor+a+a+c+a+a.a()' to access method 'System.RuntimeType.get_Assembly()' failed.

    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.MethodAccessException: Attempt by method 'CuteEditor.Editor+a+a+c+a+a.a()' to access method 'System.RuntimeType.get_Assembly()' failed.

    Source Error:

    Line 679: Officials:</td> Line 680: <td style="width: 80%; height: 120px;"> Line 681: <CE:Editor ID="Editor1" runat="server" Width="60%" Height="120px" Autoconfigure="Minimal" Line 682: ThemeType="Office2007" ContextMenuMode="Simple" Text='<%# Bind("strOfficials") %>' Font-Names="Georgia" > Line 683: </CE:Editor>

    Source File: C:\inetpub\OldGoodNews\administration\Facilities.aspx Line: 681

  •  11-19-2012, 2:07 PM 75286 in reply to 75285

    Re: Problem using CuteEditor on ASP.NET

    Hi Chaplain,

     

    Do you get the same problem with the example page below?

     

    1. <%@ Page Language="C#" %> 
    2.  
    3. <%@ Register Assembly="CuteEditor" Namespace="CuteEditor" TagPrefix="CE" %> 
    4. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
    5. <html xmlns="http://www.w3.org/1999/xhtml"
    6. <head id="Head1" runat="server"
    7.     <title>example</title> 
    8. </head> 
    9. <body> 
    10.     <form id="form1" runat="server"
    11.         <CE:Editor ID="editor1" runat="server"
    12.         </CE:Editor> 
    13.     </form> 
    14. </body> 
    15. </html> 
     

    Regards,

     

    Ken

  •  11-20-2012, 10:15 AM 75292 in reply to 75286

    Re: Problem using CuteEditor on ASP.NET

    hi Chaplain Doug

    hi ken,

     

    i can confirm that we had that issue on all of our productive platforms surprisingly last thurstay evening.

    only way we got arround was to set trustlevel to full:(

     

    it would be great if you can fix this issue!!!

     

    best /from germany

     

     

    stacktrace:

     

    [MethodAccessException: Fehler beim Versuch der Methode "CuteEditor.Editor+a+a+b+a+a.a()", auf Methode "System.RuntimeType.get_Assembly()" zuzugreifen.] System.RuntimeMethodHandle.PerformSecurityCheck(Object obj, RuntimeMethodHandleInternal method, RuntimeType parent, UInt32 invocationFlags) +0 System.RuntimeMethodHandle.PerformSecurityCheck(Object obj, IRuntimeMethodInfo method, RuntimeType parent, UInt32 invocationFlags) +33 System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) +173 System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +28 System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams) +2031 System.Type.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args) +28 CuteEditor.a.a() +480 CuteEditor.c..ctor(a manager) +917 CuteEditor.a..ctor(Editor cuteEditor) +776 CuteEditor.Editor..ctor() +78 ASP.controls_cuteedit_ascx.__BuildControleditor1() in I:\CodeTree\Durban2011\Durban\controls\CuteEdit.ascx:3 ASP.controls_cuteedit_ascx.__BuildControlTree(controls_cuteedit_ascx __ctrl) in I:\CodeTree\Durban2011\Durban\controls\CuteEdit.ascx:1 ASP.controls_cuteedit_ascx.FrameworkInitialize() +82 System.Web.UI.UserControl.InitializeAsUserControlInternal() +35 System.Web.UI.UserControl.InitializeAsUserControl(Page page) +14 ASP.editor_cud_pageitem_aspx.__BuildControl__control6() in I:\CodeTree\Durban2011\Durban\editor\cud_pageitem.aspx:14 ASP.editor_cud_pageitem_aspx.__BuildControl__control3() in I:\CodeTree\Durban2011\Durban\editor\cud_pageitem.aspx:8 ASP.editor_cud_pageitem_aspx.__BuildControl__control2(Control __ctrl) in I:\CodeTree\Durban2011\Durban\editor\cud_pageitem.aspx:6 System.Web.UI.CompiledBindableTemplateBuilder.InstantiateIn(Control container) +12 System.Web.UI.WebControls.FormView.InitializeRow(FormViewRow row) +351 System.Web.UI.WebControls.FormView.CreateDataRowFromTemplates(Boolean dataBinding, TableRowCollection rows) +123 System.Web.UI.WebControls.FormView.CreateDataRow(Boolean dataBinding, TableRowCollection rows, Object dataItem) +76 System.Web.UI.WebControls.FormView.CreateChildControls(IEnumerable dataSource, Boolean dataBinding) +1291 System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) +66 System.Web.UI.WebControls.FormView.PerformDataBinding(IEnumerable data) +12 System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +128 System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +33 System.Web.UI.WebControls.DataBoundControl.PerformSelect() +143 System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +74 System.Web.UI.WebControls.FormView.DataBind() +4 System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +66 System.Web.UI.WebControls.FormView.EnsureDataBound() +183 System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls() +75 System.Web.UI.Control.EnsureChildControls() +102 System.Web.UI.Control.PreRenderRecursiveInternal() +42 System.Web.UI.Control.PreRenderRecursiveInternal() +175 System.Web.UI.Control.PreRenderRecursiveInternal() +175 System.Web.UI.Control.PreRenderRecursiveInternal() +175 System.Web.UI.Control.PreRenderRecursiveInternal() +175 System.Web.UI.Control.PreRenderRecursiveInternal() +175 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2496
     

  •  11-20-2012, 10:21 AM 75293 in reply to 75285

    Re: Problem using CuteEditor on ASP.NET

    As suggested above, the issue was the trust level.  In an ASP.Net application (Visual Web Developer 2012), I needed to add the following to the <system.web> section of the web.config file:

     

    <trust level="Full"/>

     

    That fixed the error (or stopped it from happening).

     

View as RSS news feed in XML