Copied to clipboard

Flag this post as spam?

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


  • Darren Ferguson 1022 posts 3259 karma points MVP c-trib
    Aug 13, 2010 @ 13:42
    Darren Ferguson
    1

    Execptions in my event log

    I've been looking into an issue with another datatype and it appears there is some kind of issue with this package that is causing it My event log is filling up with the following - any ideas??

    I've just installed the current release of the package and I'm on Umbraco 4.5.1 on .net 4 using SQL 2008 and Windows Server 2008.

    Thanks in advance!

    Exception information:
        Exception type: InvalidOperationException
        Exception message: The script tag registered for type 'Bodenko.Umbraco.DataType.Bitly.BitlyDataEditor' and key 'bit.ly api css' has invalid characters outside of the script tags:
    <style type='text/css'>
        #bitly-info-results {width:300px;}
        #bitly-info-results .bitly_refs_container {}
        #bitly-info-results .bitly_head {margin-top:10px;padding:5px 0;}
        #bitly-info-results .bitly_nodata {border-top:solid 1px #eee;border-bottom:solid 1px #eee;font-style:italic;padding:5px 0;}
        #bitly-info-results .bitly_refs_tab .bitly_drow {border:0;}
        #bitly-info-results .bitly_refs_tab .bitly_drow .bitly_dparent {border-top:solid 1px #eee;padding:5px 0;}
        #bitly-info-results .bitly_refs_tab .bitly_drow img.bitly_favi {height:16px;width:16px;}
    </style>
    . Only properly formatted script tags can be registered.
       at System.Web.UI.ScriptRegistrationManager.WriteScriptWithTags(HtmlTextWriter writer, String token, RegisteredScript activeRegistration)
       at System.Web.UI.ScriptRegistrationManager.RenderActiveScriptBlocks(List`1 updatePanels, HtmlTextWriter writer, String token, List`1 scriptRegistrations)
       at System.Web.UI.PageRequestManager.ProcessScriptRegistration(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.Page.Render(HtmlTextWriter writer)
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

     
     
    Request information:
        Request URL: http://www.darren-ferguson.com/umbraco/editContent.aspx?id=13784
        Request path: /umbraco/editContent.aspx
        User host address: 80.83.150.156
        User: 
        Is authenticated: False
        Authentication Type: 
        Thread account name: NT AUTHORITY\NETWORK SERVICE


  • Tim 168 posts 372 karma points
    Aug 13, 2010 @ 13:47
    Tim
    0

    That's probably related to this: http://bit.ly/9cMEAf (the { cause issues with ASP.Net's StringFormatting format string)

    Tim

  • Tim 168 posts 372 karma points
    Aug 13, 2010 @ 13:48
    Tim
    0

    Ah, re-read, probably unrelated lol

  • Lee Kelleher 4020 posts 15802 karma points MVP 13x admin c-trib
    Aug 13, 2010 @ 14:06
    Lee Kelleher
    0

    Hi Darren,

    I was using "ScriptManager.RegisterClientScriptBlock" to include the CSS block for the data-type.  It was an ugly hack, as it was intended for <script> blocks, not <style> blocks.  I'm guessing that .NET 4.0 doesn't like the CSS and threw an exception!

    I do want to upgrade the data-type code to follow the patterns we have been developing with uComponents (making use of embedded resources, etc).

    Going forwards, I'll get the source-code up on CodePlex and open it up for collaboration.  You've asked before about generating bit.ly URLs on publish - but to be honest I haven't had much incentive to develop that. So some collaboration might be needed! :-)

    Cheers, Lee.

Please Sign in or register to post replies

Write your reply to:

Draft