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.
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?
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?
Yes, once I manually added the connectionString and the Spring httpModules, httpHandlers, webServer/modules and webServer/handlers it's now loading the dashboard fine.
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):
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
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!
Also - if possible could you send me your web.config file?
Thanks.
Same in the Developer section - all info sent to your email as requested!
Thanks,
James
Hi James, I've sent you an email - it looks like the installer only part completed. Did you get any errors during the installation?
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
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.
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
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" />
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
is working on a reply...