Tuesday, 14 July 2015

TF30170: The plugin Microsoft.ProjectCreationWizard.TestManagement failed during task TestResolutionState from group TestManagement.

In the past i was working with one of the client where i was migrating data along with reports and SharePoint from TFS 2008 to TFS 2013 update 4 which was successfully completed. But after migration i came across an issue while creating new team project.

Below is the error:

TF30170: The plugin Microsoft.ProjectCreationWizard.TestManagement failed during task TestResolutionState from group TestManagement.
Plugin error text: “System.MissingFieldException: Field not found:  'Microsoft.TeamFoundation.TestManagement.Common.WitCategoryRefName.SharedDataSet'.  at  Microsoft.TeamFoundation.TestManagement.Client.TestManagementTeamProject.get_SharedParameterDataSetWorkItemTypeName()  at  Microsoft.TeamFoundation.TestManagement.Client.TestManagementTeamProject.get_HasSupportForSharedParameterDataSets()  at  Microsoft.TeamFoundation.TestManagement.Client.TestManagementTeamProject..ctor(TestManagementService  manager, String projectName) at  Microsoft.TeamFoundation.TestManagement.Client.TestManagementService.b__0(String  name) at  Microsoft.TeamFoundation.TestManagement.Client.ObjectCache`2.Get(Key  key, Creator creator) at  Microsoft.TeamFoundation.TestManagement.Client.TestManagementService.GetTeamProject(String  projectName) at  Microsoft.TeamFoundation.TestManagement.PcwPlugin.ContextWrapper.get_Project()  at  Microsoft.TeamFoundation.TestManagement.PcwPlugin.PcwPluginComponentCreator.SetPermissionsIfNeeded(ContextWrapper  wrapper) at  Microsoft.TeamFoundation.TestManagement.PcwPlugin.PcwPluginComponentCreator.Parse(ContextWrapper  wrapper, XmlNode taskXml, Boolean fExecute)”
Then i understood it as a bug in the update and i dint not stop there did some investigation and then i ended at a point which resolved the issue. 

Solution:
Below are the steps to be followed:
  1. Close all instances on Visual Studio and Microsoft Test Manager
  2. Open Visual Studio command prompt in admin mode.
  3. Perform the following steps: 
    • ngen uninstall Microsoft.TeamFoundation.TestManagement.Client 
    • ngen uninstall Microsoft.TeamFoundation.TestManagement.Common
If still the issue is not fixed, do the following:
  1. Open admin command prompt.
  2. Navigate to <System_Drive>:\Windows\Assembly\NativeImages_v4.0.30319_32
  3. dir /s Microsoft.TeamFoundation.TestManagement.Client.ni.dll
  4. Delete all instances of this native image dll.
    • Ex: del /s Microsoft.TeamFoundation.TestManagement.Client.ni.dll
  5. dir /s Microsoft.TeamFoundation.TestManagement.Common.ni.dll
  6. Delete all instances of this native image dll.
    • Ex: del /s Microsoft.TeamFoundation.TestManagement.Common.ni.dll
Happy ending :) 


No comments:

Post a Comment