详细错误内容,换了几次SYSTEL.WEB.MVC.DLL都无效!~。天啊。快疯了!
[MissingMethodException: 找不到方法:“System.Collections.ICollection System.Web.Compilation.BuildManager.GetReferencedAssemblies()”。]
System.Web.Mvc.BuildManagerWrapper.System.Web.Mvc.IBuildManager.GetReferencedAssemblies() +0
System.Web.Mvc.ControllerTypeCache.GetAllControllerTypes(IBuildManager buildManager) +59
System.Web.Mvc.ControllerTypeCache.EnsureInitialized(IBuildManager buildManager) +63
System.Web.Mvc.DefaultControllerFactory.GetControllerTypeWithinNamespaces(String controllerName, HashSet`1 namespaces) +75
System.Web.Mvc.DefaultControllerFactory.GetControllerType(String controllerName) +197
System.Web.Mvc.DefaultControllerFactory.CreateController(RequestContext requestContext, String controllerName) +55
System.Web.Mvc.MvcHandler.ProcessRequest(HttpContextBase httpContext) +100
System.Web.Mvc.MvcHandler.ProcessRequest(HttpContext httpContext) +36
System.Web.Mvc.MvcHandler.System.Web.IHttpHandler.ProcessRequest(HttpContext httpContext) +4
System.Web.Mvc.MvcHttpHandler.VerifyAndProcessRequest(IHttpHandler httpHandler, HttpContextBase httpContext) +21
System.Web.Routing.UrlRoutingHandler.ProcessRequest(HttpContextBase httpContext) +103
System.Web.Routing.UrlRoutingHandler.ProcessRequest(HttpContext httpContext) +36
System.Web.Routing.UrlRoutingHandler.System.Web.IHttpHandler.ProcessRequest(HttpContext context) +4
ASP.default_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in d:\freehost\06202fydir\web\Default.aspx:7
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +2065883
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +24
System.Web.UI.Page.Render(HtmlTextWriter writer) +26
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1896
看报错信息说的是找不到:System.Collections.ICollection
拿这个应该就可能和mvc无关,应该是。net framework的问题,你是不是没有装.net 3.5 sp1呢?这个是必须的
引用的版本有问题,版本不一致,检查一下
asp.net 2.0的mvc还真没搞过. 一般都是3.5+sp1的环境.
你sp1补丁打过了吗? 我上网搜了下,你可以参考下
地址:http://fqctyj.blog.163.com/blog/static/70843455201022285445252/
在本地调试的时候有问题吗,在运行环境安装.net framework 3.5+sp1试试。
2.0好像不支持mvc吧。