编译错误&QUOT;未能加载类型'System.Web.Mvc.ViewPage&LT; System.Web.Mvc.HandleErrorInfo&GT;'&QUOT;在网络部署项目。 Asp.net MVC RC2 [英] Compilation error "Could not load type 'System.Web.Mvc.ViewPage<System.Web.Mvc.HandleErrorInfo>'" in web deploy project. Asp.net mvc rc2
问题描述
我得到下面的错误,当编译Asp.Net Web部署项目
i'm getting the below error, When compiling the Asp.Net web deploy project
未能加载类型'System.Web.Mvc.ViewPage&LT; System.Web.Mvc.HandleErrorInfo&GT;'。 /Shared/Error.aspx
Could not load type 'System.Web.Mvc.ViewPage<System.Web.Mvc.HandleErrorInfo>'. /Shared/Error.aspx
但是,当我编译Web项目,它没有显示任何错误。
But when I compile the web project, It is not showing any error.
推荐答案
请确保有你的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)
这篇关于编译错误&QUOT;未能加载类型'System.Web.Mvc.ViewPage&LT; System.Web.Mvc.HandleErrorInfo&GT;'&QUOT;在网络部署项目。 Asp.net MVC RC2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!