Compilation error “Could not load type 'System.Web.Mvc.ViewPage<System.Web.Mvc.HandleErrorInfo>'” in web deploy project. Asp.net mvc rc2

China☆狼群 提交于 2020-01-03 16:35:30

问题


i'm getting the below error, When compiling the Asp.Net web deploy project

Could not load type 'System.Web.Mvc.ViewPage<System.Web.Mvc.HandleErrorInfo>'. /Shared/Error.aspx

But when I compile the web project, It is not showing any error.


回答1:


Make sure that there is appropriate dll files in your bin folder on deployment server.

System.Web.Abstractions.dll

System.Web.Mvc.dll

System.Web.Routing.dll

Also, make sure that web.config contains proper configuration for those dlls in compilation/assemblies section:

<add assembly="System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

Here is example for 1.0 version of MVC, you should insert yours (for RC2)



来源:https://stackoverflow.com/questions/2566297/compilation-error-could-not-load-type-system-web-mvc-viewpagesystem-web-mvc-h

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!