Object Reference Not Set to an Instance of an Object

May 13, 2014 at 7:44 PM
I am trying the Synchronous install for the first time on a sandbox server running TFS 2013.2. The log recorded the below after an IIS reset (iisreset /restart) and subsequent work item edit:

2014-05-13 13:27:20.813 INFO [444792377637559] [ndation Task Thread TaskPool 0] TFSEventWorkflowsServerPlugin.WorkflowRunner | Detecting event [HostReadyEvent] defined in [Microsoft.TeamFoundation.Framework.Server.dll] - [Microsoft.TeamFoundation.Framework.Server.HostReadyEvent] defined in [C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\tfs\ff4dbb16\74edc26c\assembly\dl3\6c759d84\00dbb8a6_f846cf01\Microsoft.TeamFoundation.Framework.Server.dll]
2014-05-13 13:27:20.821 INFO [444792377637559] [ndation Task Thread TaskPool 0] TFSEventWorkflowsServerPlugin.WorkflowRunner | Starting Update Cache
2014-05-13 13:27:20.915 INFO [444792377637559] [ndation Task Thread TaskPool 0] TFSEventWorkflowsServerPlugin.WorkflowRunner | WorkflowActivitiesGlobalCollection:
2014-05-13 13:27:20.915 INFO [444792377637559] [ndation Task Thread TaskPool 0] TFSEventWorkflowsServerPlugin.WorkflowRunner | WorkflowActivitiesGlobalPath:
2014-05-13 13:27:20.915 INFO [444792377637559] [ndation Task Thread TaskPool 0] TFSEventWorkflowsServerPlugin.WorkflowRunner | WorkflowsGlobalCollection:
2014-05-13 13:27:20.915 INFO [444792377637559] [ndation Task Thread TaskPool 0] TFSEventWorkflowsServerPlugin.WorkflowRunner | WorkflowsGlobalPath:
2014-05-13 13:27:20.915 INFO [444792377637559] [ndation Task Thread TaskPool 0] TFSEventWorkflowsServerPlugin.WorkflowRunner | WorkflowsProjectRelativePath:
2014-05-13 13:27:20.915 INFO [444792377637559] [ndation Task Thread TaskPool 0] TFSEventWorkflowsServerPlugin.WorkflowRunner | WorkflowsConfigFileName:
2014-05-13 13:27:20.993 INFO [444792377637559] [ndation Task Thread TaskPool 0] TFSEventWorkflowsServerPlugin.WorkflowRunner | machine: R2EHVTFSTMP01
2014-05-13 13:27:21.001 INFO [444792377637559] [ndation Task Thread TaskPool 0] TFSEventWorkflowsServerPlugin.WorkflowRunner | MachineName: R2EHVTFSTMP01
2014-05-13 13:27:21.001 INFO [444792377637559] [ndation Task Thread TaskPool 0] TFSEventWorkflowsServerPlugin.WorkflowRunner | ConnectTime: 2014-05-13T18:27:19.9611197Z
2014-05-13 13:27:21.001 INFO [444792377637559] [ndation Task Thread TaskPool 0] TFSEventWorkflowsServerPlugin.WorkflowRunner | ProductVersion: 12.0.30324.0
2014-05-13 13:27:21.001 INFO [444792377637559] [ndation Task Thread TaskPool 0] TFSEventWorkflowsServerPlugin.WorkflowRunner | ServiceLevel: Dev12.M62
2014-05-13 13:27:22.181 INFO [444792377637559] [dation Task Thread TaskPool 18] TFSEventWorkflowsServerPlugin.WorkflowRunner | Detecting event [HostReadyEvent] defined in [Microsoft.TeamFoundation.Framework.Server.dll] - [Microsoft.TeamFoundation.Framework.Server.HostReadyEvent] defined in [C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\tfs\ff4dbb16\74edc26c\assembly\dl3\6c759d84\00dbb8a6_f846cf01\Microsoft.TeamFoundation.Framework.Server.dll]
2014-05-13 13:27:22.181 INFO [444792377637559] [dation Task Thread TaskPool 18] TFSEventWorkflowsServerPlugin.WorkflowRunner | Starting Update Cache
2014-05-13 13:27:22.275 INFO [444792377637559] [dation Task Thread TaskPool 18] TFSEventWorkflowsServerPlugin.WorkflowRunner | WorkflowActivitiesGlobalCollection:
2014-05-13 13:27:22.275 INFO [444792377637559] [dation Task Thread TaskPool 18] TFSEventWorkflowsServerPlugin.WorkflowRunner | WorkflowActivitiesGlobalPath:
2014-05-13 13:27:22.275 INFO [444792377637559] [dation Task Thread TaskPool 18] TFSEventWorkflowsServerPlugin.WorkflowRunner | WorkflowsGlobalCollection:
2014-05-13 13:27:22.275 INFO [444792377637559] [dation Task Thread TaskPool 18] TFSEventWorkflowsServerPlugin.WorkflowRunner | WorkflowsGlobalPath:
2014-05-13 13:27:22.275 INFO [444792377637559] [dation Task Thread TaskPool 18] TFSEventWorkflowsServerPlugin.WorkflowRunner | WorkflowsProjectRelativePath:
2014-05-13 13:27:22.275 INFO [444792377637559] [dation Task Thread TaskPool 18] TFSEventWorkflowsServerPlugin.WorkflowRunner | WorkflowsConfigFileName:
2014-05-13 13:27:22.330 INFO [444792377637559] [dation Task Thread TaskPool 18] TFSEventWorkflowsServerPlugin.WorkflowRunner | machine: R2EHVTFSTMP01
2014-05-13 13:27:22.330 INFO [444792377637559] [dation Task Thread TaskPool 18] TFSEventWorkflowsServerPlugin.WorkflowRunner | MachineName: R2EHVTFSTMP01
2014-05-13 13:27:22.338 INFO [444792377637559] [dation Task Thread TaskPool 18] TFSEventWorkflowsServerPlugin.WorkflowRunner | ConnectTime: 2014-05-13T18:27:19.9611197Z
2014-05-13 13:27:22.338 INFO [444792377637559] [dation Task Thread TaskPool 18] TFSEventWorkflowsServerPlugin.WorkflowRunner | ProductVersion: 12.0.30324.0
2014-05-13 13:27:22.338 INFO [444792377637559] [dation Task Thread TaskPool 18] TFSEventWorkflowsServerPlugin.WorkflowRunner | ServiceLevel: Dev12.M62
2014-05-13 13:27:22.752 ERROR [444792377637559] [ndation Task Thread TaskPool 0] TFSEventWorkflowsServerPlugin.WorkflowRunner | Loading error: System.NullReferenceException: Object reference not set to an instance of an object.
at artiso.TFSEventWorkflows.TFSEventWorkflowsServerPlugin.WorkflowRunner.GetTFSEventConfigFromTfs(TeamFoundationRequestContext requestContextCollection)

2014-05-13 13:27:22.760 INFO [444792377637559] [ndation Task Thread TaskPool 0] TFSEventWorkflowsServerPlugin.WorkflowRunner | Watching event [workItemChangedEvent1] workflow file [EmptyWorkflow.xaml] defined in config [artiso.TFSEventWorkflows.TFSEventWorkflowsServerPlugin.dll.config] - workflow file [C:\Program Files\Microsoft Team Foundation Server 12.0\Application Tier\Web Services\bin\Plugins\EmptyWorkflow.xaml] defined in config [C:\Program Files\Microsoft Team Foundation Server 12.0\Application Tier\Web Services\bin\Plugins\artiso.TFSEventWorkflows.TFSEventWorkflowsServerPlugin.dll.config])
2014-05-13 13:27:22.760 INFO [444792377637559] [ndation Task Thread TaskPool 0] TFSEventWorkflowsServerPlugin.WorkflowRunner | Watching event [workItemChangedEvent2] workflow file [DumpWorkitem.xaml] defined in config [artiso.TFSEventWorkflows.TFSEventWorkflowsServerPlugin.dll.config] - workflow file [C:\Program Files\Microsoft Team Foundation Server 12.0\Application Tier\Web Services\bin\Plugins\DumpWorkitem.xaml] defined in config [C:\Program Files\Microsoft Team Foundation Server 12.0\Application Tier\Web Services\bin\Plugins\artiso.TFSEventWorkflows.TFSEventWorkflowsServerPlugin.dll.config])
2014-05-13 13:27:22.760 INFO [444792377637559] [ndation Task Thread TaskPool 0] TFSEventWorkflowsServerPlugin.WorkflowRunner | Leave Update Cache
2014-05-13 13:27:22.776 ERROR [444792377637559] [dation Task Thread TaskPool 18] TFSEventWorkflowsServerPlugin.WorkflowRunner | Loading error: System.NullReferenceException: Object reference not set to an instance of an object.
at artiso.TFSEventWorkflows.TFSEventWorkflowsServerPlugin.WorkflowRunner.GetTFSEventConfigFromTfs(TeamFoundationRequestContext requestContextCollection)

2014-05-13 13:27:22.776 INFO [444792377637559] [dation Task Thread TaskPool 18] TFSEventWorkflowsServerPlugin.WorkflowRunner | Watching event [workItemChangedEvent1] workflow file [EmptyWorkflow.xaml] defined in config [artiso.TFSEventWorkflows.TFSEventWorkflowsServerPlugin.dll.config] - workflow file [C:\Program Files\Microsoft Team Foundation Server 12.0\Application Tier\Web Services\bin\Plugins\EmptyWorkflow.xaml] defined in config [C:\Program Files\Microsoft Team Foundation Server 12.0\Application Tier\Web Services\bin\Plugins\artiso.TFSEventWorkflows.TFSEventWorkflowsServerPlugin.dll.config])
2014-05-13 13:27:22.776 INFO [444792377637559] [dation Task Thread TaskPool 18] TFSEventWorkflowsServerPlugin.WorkflowRunner | Watching event [workItemChangedEvent2] workflow file [DumpWorkitem.xaml] defined in config [artiso.TFSEventWorkflows.TFSEventWorkflowsServerPlugin.dll.config] - workflow file [C:\Program Files\Microsoft Team Foundation Server 12.0\Application Tier\Web Services\bin\Plugins\DumpWorkitem.xaml] defined in config [C:\Program Files\Microsoft Team Foundation Server 12.0\Application Tier\Web Services\bin\Plugins\artiso.TFSEventWorkflows.TFSEventWorkflowsServerPlugin.dll.config])
2014-05-13 13:27:22.776 INFO [444792377637559] [dation Task Thread TaskPool 18] TFSEventWorkflowsServerPlugin.WorkflowRunner | Leave Update Cache
2014-05-13 13:27:31.870 INFO [444792377637559] [dation Task Thread TaskPool 18] TFSEventWorkflowsServerPlugin.WorkflowRunner | Detecting event [WorkItemsChangedNotification] defined in [Microsoft.TeamFoundation.WorkItemTracking.Server.dll] - [Microsoft.TeamFoundation.WorkItemTracking.Server.WorkItemsChangedNotification] defined in [C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\tfs\ff4dbb16\74edc26c\assembly\dl3\62e2302c\00dbb8a6_f846cf01\Microsoft.TeamFoundation.WorkItemTracking.Server.dll]
2014-05-13 13:27:31.933 INFO [444792377637559] [dation Task Thread TaskPool 18] TFSEventWorkflowsServerPlugin.WorkflowRunner | Detecting event [WorkItemChangedEvent] defined in [Microsoft.TeamFoundation.WorkItemTracking.Server.dll] - [Microsoft.TeamFoundation.WorkItemTracking.Server.WorkItemChangedEvent] defined in [C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\tfs\ff4dbb16\74edc26c\assembly\dl3\62e2302c\00dbb8a6_f846cf01\Microsoft.TeamFoundation.WorkItemTracking.Server.dll]

The event viewer shows:

TF400850: The request context was not disposed by the caller.

Any ideas what is causing this?
Coordinator
Jun 3, 2014 at 4:21 PM
The error occurs at the initialization of TFS Event Workflows. In this phase the plugin gets configuration information from TFS. Here are the possible root causes of this Problem

a) wrong version of the plugin
For TFS 2013.2 you need "TFS Event Workflows 0.11.41741.0 - TFS 2013.2". Microsoft does repackaging of classes to different assemblies alos on minor updates, so the Version must match exactly.

b) git as version control
Git is currently not supported at all. (it's under Investigation and planed to be supported in the future)

c) security problems
verify the configuration of the service accounts