VSTestHost hang on Windows 7 RTM

I have Windows 7 RTM installed and Visual Studio 2008 with SP1. After writing some simple unit test and run it I have got VSTestHost.exe not responding error.

First I have thought that is Windows 7 error. I have looked and find some hotfix and if you have some similar problems I suggest to try run sample test with no code to ensure that problem is not in your code. That hotfix is on this address : http://code.msdn.microsoft.com/970449/Release/ProjectReleases.aspx?ReleaseId=2830

After better looking in my code I have found that problem is in my own code. I have had recursive call to a method inside unit test so test method is never finishing and VSTestHost is hang out after few seconds with unknown error.

Hopefully this post will help someone struggling with similar issues…

Comments are closed.