I am not able to run my Unit Tests in Visual Studio 2010 due to an error which occurs when I try to Run Test or open any test windows, such as Test > Windows > Test Results. An error message popups up saying "Exception has been thrown by the target of an invocation".
Everything I've read online says it's related to being disconnected from a Team Foundation Server (TFS) but I've never used TFS. I've also heard that closing all instances of Visual Studio and restarting it will help. Tried that. I've also restarted my machine. No luck. I've had this happen a few times in the past as well and I don't know what makes it go away.
Does anyone know what might be causing this?
The solution I'm working in has several projects, including a WCF service, a Window Server, several other libraries and the test project. However, now, when I start Visual Studio without even opening my solution and try to open Test > Windows > Test Results it throws the error.