MVC中的Razor页面在System.Web.Helpers找不到时发出编译错误
我的剃刀视图无法编译,出现以下错误:
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: CS0234: The type or namespace name 'Helpers' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)
我添加了System.Web.Helpers作为对我的项目的引用,所以我不确定我还需要做什么。 我在添加引用后也尝试了一个干净的重建,没有任何改变。
我错过了什么?
啊哈想出来了。 我需要补充一下
到web.config的
部分!
Web.config行应该在这里: