0

The default association form template is giving an null reference exception. This is happening with a blank project and on two PCs with Workflow Foundation installed. I've taken a screenshot of every click I've taken to reproduce the error, and it happens every single time.

Creating a new sharepoint project: enter image description here

Creating a farm solution: enter image description here Right clicking on the solution and adding a new workflow: enter image description here Adding a list workflow: enter image description here Reusable: enter image description here Right clicking on the workflow and adding an association form: enter image description here enter image description here Creating a new list: enter image description here enter image description here enter image description here Adding the workflow to the list: enter image description here enter image description here enter image description here Clicking Next so the association form shows up: enter image description here

What I've tried:

  • Installed workflow foundation on multiple PCs, created a new project each time with visual studio: same results.
  • Found this post indicating a reference problem and attempted to add the reference manually (which had no effect)
  • Removed the following line, which allowed the association form to show up, but I am not sure what the repercussions are, because I can't find this control documented ANYWHERE!

    WorkflowServices:WorkflowAssociationFormContextControl ID="WorkflowAssociationFormContextControl1" runat="server"

    [NullReferenceException: Object reference not set to an instance of an object.] Microsoft.SharePoint.Utilities.SPChunkedStringBuffer.Append(String str) + 0 Microsoft.SharePoint.WorkflowServices.ApplicationPages.WorkflowAssociationFormContextControl.OnLoad(EventArgs e)

0

It turned out that the problem was that we had SharePoint 2013 RTM installed. After we installed this update: ubersrvsp2013-kb2767999-fullfile-x64-glb.exe it fixed the problem.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.