Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

debugging VS 2005 prompts an "Operation not supported"

I've been debbugging VS 2005 and set the 'Start external program' to C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe

But after hitting F5 I got this error:

Error while trying to run project: Unable to start program 'C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe

Operation not supported. Unknown error: 0x8013134b.

I can debug successfully if I set it to C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe

Thanks!

like image 413
little_gurl Avatar asked Feb 27 '23 03:02

little_gurl


2 Answers

This error occurs when there is a CLR version mismatch between what the debugger is expecting and what is actually running in the debuggee process. Visual Studio 2010 is using CLR 4.0 which is likely causing the problem.

Here are a couple of articles that will help you resolve the problem

  • http://blogs.msdn.com/b/jmstall/archive/2005/01/15/353717.aspx
  • http://blogs.msdn.com/b/jmstall/archive/2005/11/30/everett-cant-debug-whidbey.aspx
like image 164
JaredPar Avatar answered Mar 07 '23 12:03

JaredPar


Probably because a mix of managed / unmanaged code. Try to set 'Native Only' at

project -> properties -> Debugging -> Debugger Type -> 

For me it helped.

like image 38
orenga Avatar answered Mar 07 '23 13:03

orenga