I installed TFS 2013 update 2 and visual studio 2013 update 2 RC and when I tried to create a Test Case work item in visual studio, I saw something funny. In the steps section, it showed “Exception has been thrown by the target of an invocation”. I fired up MTM (Microsoft Test Manager) and tried to create a Test Case work item from MTM and I saw the same error. After some searching, the fix is
1) Close all instances of Visual Studio and Microsoft Test Manager
2) Open a Visual Studio command prompt in admin mode
3) type the following 2 comamnds:
ngen uninstall Microsoft.TeamFouncation.TestManagement.Client
ngen uninstall Microsoft.TeamFoundation.TestManagement.Common
If it’s still broken, then do the following:
1) Open a Visual Studio command prompt in admin mode
2) Navigate to :WindowsAssemblyNativeImages_v4.0.30319_32
3) dir /s Microsoft.TeamFoundation.TestManagement.Client.ni.dll
4) delete all instances of this native image dll
5) dir /s Microsoft.TeamFoundation.TestManagement.Common.ni.dll
6) delete all instances of this native image dll
I have VS 2017 and just started seeing this issue this morning 8/1/2019
I can open MTM and see my test case but when I open I see the error message and not the steps under Plan I can run the test case under tab Test then I see the steps