0

我刚刚从 beta 产品更新到 RC1 MVC。

我的 Application_start 中有以下代码(在 global.ascx 中)

System.Web.Mvc.ModelBinders.Binders[typeof(Shared.DO.Gig)] = new GigModelBinder();

这导致以下异常....

找不到方法:System.Collections.Generic.IDictionary`2 System.Web.Mvc.ModelBinders.get_Binders()'。

4

1 回答 1

0

您是否重新构建了项目。Binder 是 ModelBinderDictionary,它不是 IDictionary,很可能是在 RC1 之前。

于 2009-03-01T20:52:57.833 回答