Install VS2010 beta2 on windows server 2008 SP2 64bit
Create a project and right click to select run code analysis
This is caused by the process runs as STA instead of MTA thread mode.
The issue does not happen without typemock integrated.
An easy test is to run the following code in a console app by pressing control+F5, the result is STA.
If you press F5, it shows MTA.
static void Main(string args)