且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

编译错误"未能加载类型'System.Web.Mvc.ViewPage< System.Web.Mvc.HandleErrorInfo>'"在网络部署项目。 Asp.net MVC RC2

更新时间:2023-02-17 09:29:10

请确保有你的bin文件夹适当的dll文件部署服务器。

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

System.Web.Abstractions.dll

System.Web.Abstractions.dll

System.Web.Mvc.dll程序

System.Web.Mvc.dll

System.Web.Routing.dll

System.Web.Routing.dll

此外,确保web.config中包含了在编译/组件部分的这些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"/>

下面的例子是1.0版本的MVC,你应该插入你(RC2为)

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