Try our conversational search powered by Generative AI!

NullReferenceException when trying to start workflows

Vote:
 

When trying to start the RequestForFeedback workflow on a website, I am seeing the following error messages in the EPiServer log file.

System.NullReferenceException: Object reference not set to an instance of an object.
   at System.Web.Profile.SqlProfileProvider.GetPropertyValuesFromDatabase(String userName, SettingsPropertyValueCollection svc)
   at System.Web.Profile.SqlProfileProvider.GetPropertyValues(SettingsContext sc, SettingsPropertyCollection properties)
   at System.Configuration.SettingsBase.GetPropertiesFromProvider(SettingsProvider provider)
   at System.Configuration.SettingsBase.GetPropertyValueByName(String propertyName)
   at System.Configuration.SettingsBase.get_Item(String propertyName)
   at System.Web.Profile.ProfileBase.GetInternal(String propertyName)
   at System.Web.Profile.ProfileBase.get_Item(String propertyName)
   at EPiServer.Personalization.EPiServerProfile.get_Language()
   at EPiServer.WorkflowFoundation.Workflows.ApprovalBase.Translate(String userName, String languagekey)
   at EPiServer.WorkflowFoundation.Workflows.RequestForFeedback.OnCreateFeedbackRequests(Object sender, EventArgs e)
   at System.Workflow.ComponentModel.Activity.RaiseEvent(DependencyProperty dependencyEvent, Object sender, EventArgs e)
   at System.Workflow.Activities.CallExternalMethodActivity.Execute(ActivityExecutionContext executionContext)
   at System.Workflow.ComponentModel.ActivityExecutor`1.Execute(T activity, ActivityExecutionContext executionContext)
   at System.Workflow.ComponentModel.ActivityExecutorOperation.Run(IWorkflowCoreRuntime workflowCoreRuntime)
   at System.Workflow.Runtime.Scheduler.Run()   

The issue looks to be around accessing the Language from the EPiServerProfile class.

The website uses the standard SqlProfileProvider with the addition of a few extra properties.

I have two versions of the websites on different servers. On one server, the workflows are working correctly and on another, the above errors are occuring.

As far as im aware, the servers and databases are the same so am running out of ideas for what could be causing this.

Has anyone else seen this before?

#66584
Mar 05, 2013 18:23
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.