I have installed SharePoint 2016 on a local development server and using Visual Studio 2017, I've created a new SharePoint 2016 - Empty Project adding in a new Workflow item to the solution.
When I attempt to deploy the workflow, the solution gets deployed to SharePoint, two features get installed (the workflow, and the lists as two separate features). The Lists feature is correctly activated and the Workflow History list and Workflow Task list appear inside my SharePoint site. However, the feature that contains my workflow doesn't activate and cannot be activated manually.
During the deployment Visual Studio displays the following error:
Error occurred in deployment step 'Activate Features': System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.SharePoint.WorkflowServices.WorkflowSubscriptionStorageEventReceiver.ItemUpdating(SPItemEventProperties properties)
If more information is required, please let me know.
Thanks for any help you can provide.