ASP.NET-MVC4 code does not work

I have a simple MVC4 solution that works fine until I set a breakpoint in the controller. If I do this, the breakpoint will not hit, and I get a pop-up under the heading “Source is unavailable,” which says “Code is not working”, then “The current thread is currently not working or the call to the stack cannot be received. "

The application will work until I want to debug. Any clues?

+6
asp.net-mvc-4 justmock
Oct 16 '13 at 22:46
source share
2 answers

Full disclosure: I work at Telerik.

Thanks for the report, and I'm sorry for the inconvenience. Actually there is a lighter workaround. You can simply disable the JustMock profiler from your optional Visual Studio menu: http://screencast.com/t/mPALFVJnuXm . Then you do not need to delete it. And when you run your unit tests, which include mocking tests, just turn on JustMock from the same menu.

This is a known issue that we have already fixed. The fix will be publicly available in our service pack, which is scheduled to be released next week. Update your JM installation after the SP is live.

+7
Oct 24 '13 at 11:26
source share

If you use Telerik JustMock as a fake structure and recently updated it to 2013 Q3 version, it causes this problem. I was able to solve this problem by removing the mocking structure and installing the 2013 Q2 version.

+4
Oct 22 '13 at 21:05
source share



All Articles