Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.NET-MVC4 Code Not Running

I have a simple MVC4 solution that works just fine until I set a breakpoint in the controller. If I do that, the breakpoint does not hit, and I get a pop-up window titled, "Source Not Available" that goes on to say "Code not running", then "The current thread is not currently running code or the call stack could not be obtained."

The application will run as long as I do not want to debug. Any clues?

like image 435
Kelly Cline Avatar asked Oct 16 '13 22:10

Kelly Cline


2 Answers

Full disclosure: I work at Telerik.

Thanks for the report and I'm sorry for the caused inconvenience. Actually there is an easier workaround. You can just disable the JustMock profiler from its Visual Studio extension menu: http://screencast.com/t/mPALFVJnuXm. Then you don't need to uninstall it. And when you run your unit tests which include mocked tests, just enable JustMock from the same menu again.

This is a known issue which we've already fixed. The fix will be publicly available in our Service Pack which is scheduled to be released next week. Please update your JM installation once the SP is live.

like image 54
Vladi Avatar answered Sep 21 '22 10:09

Vladi


If you are using Telerik JustMock as a mocking framework and have recently updated it to the 2013 Q3 version, it causes this exact problem. I was able to resolve this issue by uninstalling the mocking framework and installing the 2013 Q2 version.

like image 34
erahm Avatar answered Sep 18 '22 10:09

erahm