views:

122

answers:

2

Hi,

Please don't focus on the examples, I have a bad habit of using examples to clarify my questions resulting in people answering my examples not my questions.

The Question: Does anyone have know how I can step into system.web.mvc?

The Background (you can skip this to avoid confusion): A couple of weeks ago I had a problem where MVC was throwing up a YSOD, but I could not step into the code to find the problem because the issue was I was doing something wrong, that was not being picked up until it was in the framework (in this case, by thrashing around blindly for a day I found it was that I didn't have a default empty constructor on one of the classes within my viewmodel). Now I am getting a different error (Cannot create an abstract class) that is buried in the System.Web.Mvc.DefaultModelBinder.CreateModel method, but I don't know what part of my code is causing the error in the framework.

I would like to step into the code, to find out. I was advised that I could download the sourcecode from codeplex, (actually microsoft.com/downloads as I am using 1.0), build in Debug and then step through. I tried, unfortunately the system.web.mvc was installed in GAC, thus causing an ambiguous call, and gacutil would not allow me to uninstall, so tried by hand removing from the registry (HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Global\system.web.mvc). when I ran my program it was still reporting an ambiguous call.

+1  A: 

If you have the source code then you can recompile the code using a different assembily name and reference that.

Paul Creasey
i tried that, changing all references to System.Web.Mvcx, tried to re-run got the error: Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "System.Web.Mvcx.Resources.MvcResources.resources" was correctly embedded or linked into assembly "System.Web.Mvc" at compile time, or that all the satellite assemblies required are loadable and fully signed.any ideas what I can do to fix that?
Paul Spencer
+2  A: 

It's a little involved, but you can do it. Steve Sanderson has step-by-step instructions.

Craig Stuntz
Perfect, Thank you! ... This solved my issue, now stepping into the framework ... now all that is left to do is find that darn bug.
Paul Spencer