Compiler Error Message: CS0234: The type or namespace name 'Html' does not exist

问题描述

项目是MVC设计模式,在本地编译好好的,也能预览;但是发布后部署到服务器上一预览就报错:ServerErrorin'/'Application.--------------------------------------------------------------------------------CompilationErrorDescription:Anerroroccurredduringthecompilationofaresourcerequiredtoservicethisrequest.Pleasereviewthefollowingspecificerrordetailsandmodifyyoursourcecodeappropriately.CompilerErrorMessage:CS0234:Thetypeornamespacename'Html'doesnotexistinthenamespace'System.Web.Mvc'(areyoumissinganassemblyreference?)SourceError:Line63:<addnamespace="System.Web.Mvc"/>Line64:<addnamespace="System.Web.Mvc.Ajax"/>Line65:<addnamespace="System.Web.Mvc.Html"/>Line66:<addnamespace="System.Web.Optimization"/>Line67:<addnamespace="System.Web.Routing"/>SourceFile:d:Web_OfficialEDU_AdminWeb.configLine:65

在网上找了好多地方,都说吧System.web.mvc.dll重新引用,然后修改本地复制,重新编译发布部署;可是我都做了,还是报错依旧!十万火急!求大神!!

解决方案

解决方案二:
顶。。。。。
解决方案三:
.net版本太低了吧
解决方案四:
我看了下Html这个是4才有的
解决方案五:
我用的就是mvc4
解决方案六:
vs调试环境下没问题,部署到IIS环境中就报错:
解决方案七:
那你项目本身用的是什么版本的框架

时间: 2024-07-29 15:51:04

Compiler Error Message: CS0234: The type or namespace name &amp;#x27;Html&amp;#x27; does not exist的相关文章

Compiler Error Message: CS0016: Could not write to output file 回绝访问

  Compiler Error Message: CS0016: Could not write to output file 'c:\Windows...dll' 拒绝访问 C:\Windows\Temp"文件夹加上 IIS_IUSRS的完全控制权限

ASP.NET Parser Error Message: Could not load type &#039;Web.Global&#039;.

Server Error in '/myapp' Application. Parser Error Description:An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Pa

Lua error message and traceback

Lua执行遇到错误时, 如果错误信息输出为字符串类型, 那么还会附加两个内容,  1. 输出来源, 例如文件或标准输入 2. 错误位置, 行号.  例如 :  > function foo(str) >> if type(str) ~= 'string' then >> print("line 1\n") >> error("string expected") >> end >> print(&quo

compiler-AspectJ Internal Compiler Error

问题描述 AspectJ Internal Compiler Error 有哪位大神知道这是什么原因不???跪求啊!!!! 解决方案 at org.aspectj.weaver.patterns.AndPointcut.matchInternal(AndPointcut.java:55) at org.aspectj.weaver.patte ... ABLE$t$test$TankWar$Dir [I 解决方案二: aspectj织入你的代码的时候出错,但是信息有限. 你点details显示什

调用 Ant api 出现Compile failed; see the compiler error output for details异常

问题描述 [color=red][color=red]该方法是把d:/generator-output/hibernate/code/这个文件夹下的多个.java编译为.class文件[/color][/color]但是出现Compile failed; see the compiler error output for details异常,希望大家帮忙解决,谢了public boolean sourceConvertClass() {boolean flag = false;File f =

SAP Basis Error Message - Output device LP01 is locked in the SAP system

[绝对原创] SAP Basis SP01 Error Message - Output device LP01 is locked in the SAP system SP01,   Double click the record of 238863, we tried to print for this request, got below error message, 'Output device LP01 is locked in the SAP system',     How to

caffe: fuck compile error again : error: a value of type &quot;const float *&quot; cannot be used to initialize an entity of type &quot;float *&quot;

wangxiao@wangxiao-GTX980:~/Downloads/caffe-master$ make -j8find: `wangxiao/bvlc_alexnet/spl': No such file or directoryfind: `caffemodel': No such file or directoryfind: `wangxiao/bvlc_alexnet/0.77': No such file or directoryfind: `caffemodel': No su

Error Message &amp;amp;#x27;There were build errors. Would you like to continue and run the l

问题描述 我不小心将visualC#的ErrorMessage'Therewerebuilderrors.Wouldyouliketocontinueandrunthelastsuccessfulbuild?提醒对话框改成不在提醒了,每次程序运行都是上次成功运行的结果.很是无语,现在怎么改回来啊,求大神帮助... 解决方案 解决方案二:Tool--ImportandExportSetting--Resatallsettingnext....然后你就乐了解决方案三:每次F5之前,先F6,不就得了,

解决The type or namespace name \&amp;#39;XXXX\&amp;#39; does not exist in the namespace \&amp;#39;XXXXXXXXX\&amp;#39; 的错误

点击打开链接