Copied to clipboard

Flag this post as spam?

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


  • James Shannon 9 posts 29 karma points
    Nov 12, 2011 @ 10:20
    James Shannon
    0

    NullReferenceException in dashboard after Workflow package installation

    Hi,

    Just installed Workflow for evaluation and am getting the following error/stack trace in the dashboard when I click the root Content node (it returns to normal if I uninstall Workflow):

    [NullReferenceException: Object reference not set to an instance of an object.]
       FergusonMoriyam.Workflow.Umbraco.Web.Ui.Instances.OnPreRender(EventArgs e) +88
       System.Web.UI.Control.PreRenderRecursiveInternal() +103
       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.Control.PreRenderRecursiveInternal() +175
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2496

    Any ideas what would cause this or where to start troubleshooting?

    It's installed into an existing site running Umbraco 4.7.1 under .net 4.0 (IIS 6) with SQL & Full Trust.

    Thanks,

    James

  • Darren Ferguson 1022 posts 3259 karma points MVP c-trib
    Nov 12, 2011 @ 11:09
    Darren Ferguson
    0

    Hi James, 

    Could you screengrab or put the whole exception into a word doc and email it to me.

    Also - is there a workflow log file in your /App_Data folder?

    My email is df at darren-ferguson dot com

    Do you get the same effect in the developer section?

    Thanks! 

     

  • Darren Ferguson 1022 posts 3259 karma points MVP c-trib
    Nov 12, 2011 @ 11:16
    Darren Ferguson
    0

    Also - if possible could you send me your web.config file?

    Thanks.

     

  • James Shannon 9 posts 29 karma points
    Nov 12, 2011 @ 11:29
    James Shannon
    0

    Same in the Developer section - all info sent to your email as requested!

    Thanks,

    James

  • Darren Ferguson 1022 posts 3259 karma points MVP c-trib
    Nov 13, 2011 @ 10:20
    Darren Ferguson
    0

    Hi James, I've sent you an email - it looks like the installer only part completed. Did you get any errors during the installation?

  • James Shannon 9 posts 29 karma points
    Nov 13, 2011 @ 10:41
    James Shannon
    0

    Darren,

    I got an error at the end saying there were duplicate sections in web.config (related to log4j - possibly already there from a previous 3rd party package install?) so I removed them to resolve the error - I guess it's possible that some steps after that then didn't execute...

    Haven't received an email as yet - could there be an attachment our server didn't like?

    Thanks,

    James

  • Darren Ferguson 1022 posts 3259 karma points MVP c-trib
    Nov 13, 2011 @ 10:46
    Darren Ferguson
    0

    Hi James,

    I'd sent you the web.config from a working install so i guess it got blocked.

    Do you have three workflow tables in your DB? beginning with the word "workflow"

    If so we can probably just correct your web.config - otherwise we'll probably need to re-run the installer.

  • James Shannon 9 posts 29 karma points
    Nov 13, 2011 @ 16:05
    James Shannon
    0

    Darren,

    I uninstalled the package, then removed the following lines from web.config, then re-installed without error this time (due to no duplicate web.config entries). However, I still get the above dashboard errors (but do have the 3 workflow SQL tables). Please could you therefore re-send the working web.config as a txt file and I'll compare the final result?

    <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821" />

    <sectionGroup name="spring">
    <section name="context" type="Spring.Context.Support.WebContextHandler, Spring.Web" />
    </sectionGroup>

    <spring>
        <context configSource="config\fmworkflow\workflow.spring.config" />
    </spring>

    Thanks,

    James

  • Darren Ferguson 1022 posts 3259 karma points MVP c-trib
    Nov 13, 2011 @ 17:48
    Darren Ferguson
    0

    Hi James,

    In My mail i'd renamed it to web.txt so it seems your mail filter is scanning for XML and removing

    I uploaded it to http://static.darren-ferguson.com/web.txt for you.

    The additional config should be:

    in //configuration/configSections

     

    <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821" />

    <sectionGroup name="spring">

          <section name="context" type="Spring.Context.Support.WebContextHandler, Spring.Web" />

    </sectionGroup>

     

    In  //configuration

     

    <spring>

        <context configSource="config\fmworkflow\workflow.spring.config" />

    </spring>

    In //configuration/appSettings

    <add key="log4net.Config" value="config\fmworkflow\Log4Net.config" />

    In //configuration/connectionStrings

        <add name="WorkflowConnection" connectionString="Server=...;Database=workflow;User ID=....;Password=.....;Trusted_Connection=False;" 

    providerName="System.Data.SqlClient" />

    Note: this should match the connection string of your Umbraco DB.

    In //configuration/system.web/httpModules

     

    <add name="Spring" type="Spring.Context.Support.WebSupportModule, Spring.Web" />

    In //configuration/system.web/httpHandlers
    <add verb="*" path="*.aspx" type="Spring.Web.Support.PageHandlerFactory, Spring.Web" />
    In //configuration/system.webServer/modules
    <add name="Spring" type="Spring.Context.Support.WebSupportModule, Spring.Web" />
    In //configuration/system.webServer/handlers
    <add name="SpringPageHandler" verb="*" path="*.aspx" type="Spring.Web.Support.PageHandlerFactory, Spring.Web" />
    <add name="SpringContextMonitor" verb="*" path="ContextMonitor.ashx" type="Spring.Web.Support.ContextMonitor, Spring.Web" />
    Let me know if this helps.
    Thanks

     

     

  • James Shannon 9 posts 29 karma points
    Nov 13, 2011 @ 18:30
    James Shannon
    0

    Darren,

    Yes, once I manually added the connectionString and the Spring httpModules, httpHandlers, webServer/modules and webServer/handlers it's now loading the dashboard fine.

    Thanks for your help.

    James

Please Sign in or register to post replies

Write your reply to:

Draft