Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Pete K 317 posts 56 karma points
    Feb 01, 2011 @ 20:05
    Pete K
    0

    Error saving after macro insert

    I have a simple "include text" macro that has been tested and is working on several pages. For some reason, on one particular page when we try to insert the macro and save or save/publish, we get an error message. The server log contains the following:

    Event Type: Warning

    Event Source: ASP.NET 2.0.50727.0

    Event Category: Web Event 

    Event ID: 1309

    Date: 2/1/2011

    Time: 1:52:02 PM

    User: N/A

    Computer: CEN-WEB01

    Description:

    Event code: 3005 

    Event message: An unhandled exception has occurred. 

    Event time: 2/1/2011 1:52:02 PM 

    Event time (UTC): 2/1/2011 6:52:02 PM 

    Event ID: a0951dcfd7bf4d40b02eefeec5168bd5 

    Event sequence: 13098 

    Event occurrence: 1 

    Event detail code: 0 

     

    Application information: 

        Application domain: /LM/W3SVC/955224157/Root-2-129410593396663521 

        Trust level: Full 

        Application Virtual Path: / 

        Application Path: E:\InetPub\umbraco schools\ 

        Machine name: CEN-WEB01 

     

    Process information: 

        Process ID: 5504 

        Process name: w3wp.exe 

        Account name: NT AUTHORITY\NETWORK SERVICE 

     

    Exception information: 

        Exception type: ArgumentOutOfRangeException 

        Exception message: Length cannot be less than zero.

    Parameter name: length 

     

    Request information: 

        Request URL: http://schools.fcps.net/umbraco/editContent.aspx?id=1830 ;

        Request path: /umbraco/editContent.aspx 

        User host address: 10.84.4.3 

        User:  

        Is authenticated: False 

        Authentication Type:  

        Thread account name: NT AUTHORITY\NETWORK SERVICE 

     

    Thread information: 

        Thread ID: 14 

        Thread account name: NT AUTHORITY\NETWORK SERVICE 

        Is impersonating: False 

        Stack trace:    at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)

       at umbraco.editorControls.tinyMCE3.TinyMCE.replaceMacroTags(String text)

       at umbraco.editorControls.tinyMCE3.TinyMCE.Save()

       at umbraco.controls.ContentControl.saveClick(Object Sender, ImageClickEventArgs e)

       at System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e)

       at System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument)

       at System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)

       at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)

       at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)

       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

     

     

    Custom event details: 

     

    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

    We are running umbraco v 4.0.2.1. Any ideas?  

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Feb 01, 2011 @ 21:37
    Jan Skovgaard
    0

    Hi Pete

    How many fields does the macro contain of? And is one or more of the possible fields left empty when saving the macro? I suspect that it's maybe because of some validation that does not allow an empty field somehow due to this

        Exception message: Length cannot be less than zero.

    Or does the field maybe contain a special characther perhaps?

    /Jan

  • Pete K 317 posts 56 karma points
    Feb 03, 2011 @ 14:29
    Pete K
    0

    Thanks for the reply, Jan. That was a great stab at the problem, but unfortunately did not help. There is only one field, the node to be included, and it was properly selected. In experimenting, I discovered that I can insert the same macro using the same parameter on other pages in the site with no problem. This page has a few other macros in the same body text field and I'm thinking that something is interfering with this particular one. So I am investigating that scenario. For now, I have provided a workaround so they are happy. 

Please Sign in or register to post replies

Write your reply to:

Draft