“Cannot evaluate expression because the code of the current method is optimized” in Visual Studio 2010

后端 未结 22 697
耶瑟儿~
耶瑟儿~ 2020-12-23 08:59

I am using Visual Studio 2010 in debug mode and I have \"optimize code\" unchecked. I can\'t quick watch (or hover on) any variable in the debugger. I get this error \"Canno

22条回答
  •  我在风中等你
    2020-12-23 09:07

    Apart from @Kragen mentioned, If you are debugging a web project

    close the visual studio and try deleting the temporary files at C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files

提交回复
热议问题