When loading a C# / .NET 4 project into VS 2010 Ultimate on my main machine (Win 7 ultimate 64 bits), I am getting the error message
Attaching the ProteusDeb
Recently I encountered this problem too, but in addition to it I also faced with another error message box showing up in SQL Server Management Studio when I tried to connect to a server, which says:
Unable to cast COM object of type 'System.__ComObject' to interface type 'Microsoft.VisualStudio.OLE.Interop.IServiceProvider' ...
so this time I googled for this error and found a solution which I found at below urls:
Martin Poon - Microsoft MVP blog - Unable to cast COM object of type ...
Stack Overflow - Unable to cast COM object of type 'System.__ComObject' to ...
So it seems those problems happen when you have installed new version of Internet Explorer on your windows manually or using windows update. in my case it's related to installing the IE9 using windows update on my Windows 7 x64 which has been resolved by following the instruction at above urls.
or in short:
open Command Prompt as Administrator and execute below command(s):
regsvr32 "C:\Program Files\Internet Explorer\ieproxy.dll"
for 64 bit windows, also try this:
regsvr32 "C:\Program Files (x86)\Internet Explorer\ieproxy.dll"
and voila both problems just faded away :-)
In my case this helped:
1. Open preferences of the project
2. Unchecked "Prefer 32 bit" in Platform targets section from a build tab.
Running the following in the Visual Studio Command Prompt (2010) solved this for me.
devenv /resetskippkgs
Had the same message popping up after I installed Visual Studio Ultimate 2010 on a new system. I had pulled the source from tfs and everything compiled. The configuration had been set to Any CPU for each project, however the setting up top was "Mixed", once I set the overall type to AnyCPU and cleaned the solution, it started fine in the debugger.