如何进入system.web.mvc [英] how to step into system.web.mvc

查看:206
本文介绍了如何进入system.web.mvc的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请不要专注于示例,我有一个不好的习惯,使用示例来澄清我的问题,导致人们回答我的例子不是我的问题。

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.

问题:
有没有人知道我如何进入system.web.mvc?

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

背景(你可以跳过这个来避免混淆):
几周前,我遇到了一个MVC抛出一个YSOD的问题,但我无法进入代码来找到问题,因为问题是我在做错了事情,直到它被在这个框架中(在这种情况下,通过一天盲目地捶打一下,我发现这是我的viewmodel中的一个类没有默认的空构造函数)。现在我收到一个与System.Web.Mvc.DefaultModelBinder.CreateModel方法相同的错误(不能创建一个抽象类),但我不知道我的代码在框架中导致错误的哪一部分。

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.

我想进入代码,找出来。我被告知我可以从codeplex下载源代码(实际上是microsoft.com/downloads,因为我使用1.0),构建在Debug中,然后逐步完成。我尝试,不幸的是system.web.mvc安装在GAC中,从而导致一个模糊的调用,gacutil不允许我卸载,所以尝试从注册表中手动删除(HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\\ \\ Global\system.web.mvc)。当我运行我的程序,它仍然报告一个模糊的电话。

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.

推荐答案

有一点涉及,但可以做到。 史蒂夫桑德森有分步说明

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

这篇关于如何进入system.web.mvc的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆