When debugging all watches return MissingMethodException
Answered
This issue has been on-going for a while now and is very annoying. Whenever I try to add a watch into anything, or inspect things from the tool-tip while paused on a breakpoint it throws a "MissingMethodException" and I can't view or inspect the variable.
Strangely enough, the pre-populated watches tend to work fine (variables in scope).
This is in an ASP.NET MVC app on .NET 4.8 in the latest 2022.2 version of Rider. Has anyone else experienced this behavior? Is there anything I can do?
Please sign in to leave a comment.
Hello, is it reproduced for you on a template MVC project or does it only happen on your solution? Could you please add a screenshot so I better understand the case?
I haven't tried other solutions, just this one. But to give more context I think I have isolated it down to the following -
I have hot reload disabled (because it always asks to apply changes and fails most of the time making it practically worthless). So I make a change, recompile, and then reload the page.
Breakpoints seem to work fine the first time I start the application. Once I make a change, rebuild, and reload for the first time however I get the above issue. It's almost like it can no longer resolve the symbols in this case or something. the error is -
"Failed to read field: Value does not fall within the expected range. The error code is E_INVALIDARG, orCOR_E_ARGUMENT, orWIN32_ERROR_INVALID_PARAMETER, or0x80070057."
Unfortunately, it looks like you have faced a known issue. We would appreciate it if you would upvote it in order to bring increased awareness to the issue. Also please click to Watch it for monitoring the status. Please let me know if there is anything else I could help you with.
Perfect, thank you for the help!