Copied to clipboard

Flag this post as spam?

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


  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Jul 27, 2011 @ 10:34
    Sebastiaan Janssen
    0

    Great work! One little problem though..

    I can't believe I haven't seen this package before, I've been wanting to build it for a while actually, thanks for doing all the hard work! :-)

    I already have all the CSS/JS in my current site, but I thought it'd be better to use your clientdepency version, but... When I insert the macro in my template like so:

    <umbraco:Macro Theme="" Alias="EyeCatchSyntaxHighlighter" runat="server">umbraco:Macro>

    I get a null reference error (umbraco 4.7, was a clean install at the time, so no upgraded version or anything): 

    [NullReferenceException: Object reference not set to an instance of an object.]
       ClientDependency.Core.Controls.ClientDependencyLoader.TryCreate(Control parent, Boolean& isNew) +45
       EyeCatch.Umbraco.SyntaxHighlighter.SyntaxHighlighterUserControl.Page_PreRender(Object sender, EventArgs e) +131
       System.Web.UI.Control.PreRenderRecursiveInternal() +112
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4200
  • Ove Andersen 435 posts 1541 karma points c-trib
    Jul 27, 2011 @ 12:14
    Ove Andersen
    1

    Try adding runat="server" to your <head> element.

  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Jul 27, 2011 @ 12:19
    Sebastiaan Janssen
    0

    Thanks, got it to work by putting runat="server" in the head and a <form runat="server"> somewhere in the page. Don't really want the overhead though, so I think I'll just keep including the scripts/css manually.

  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Jul 27, 2011 @ 12:35
    Sebastiaan Janssen
    0

    Update never mind, didn't need the form after all. :)

  • Ove Andersen 435 posts 1541 karma points c-trib
    Jul 27, 2011 @ 12:45
    Ove Andersen
    1

    Solved in version 1.1. Will be released later today.

Please Sign in or register to post replies

Write your reply to:

Draft