I would like to learn how ASP.NET MVC's model binder works by placing breakpoints in some methods which execute before my action method executes. For example placing them in DefaultModelBinder class. I went through the route of adding some of MVC's projects sources into my solution (like System.Web.MVC, System.Web.Razor, System.Web.WebPages,System.Web.Helpers...) so I can run my versions of them and place breakpoints where I like but I got an error "Could not load file or assembly 'System.Web.Mvc' or one of its dependencies. Strong name signature could not be verified"
. I am using a third party signed component which references System.Web.MVC and I think that's what's causing the error.
Are there other ways to trace into System.Web.MVC code before my code runs? I am aware of setting up Visual Studio to get the relevant symbols from the symbols servers but I don't know how to place breakpoints in .NET's code before my own code runs.
I was able to set breakpoints and they would get hit.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With