JavaShuo
栏目
标签
Visual Studio 2019升级MVC5提示The name 'ViewBag' does not exist in the current context错误信息的解决办吧
时间 2021-01-06
标签
C#
MVC4
WEB前端
栏目
Visual Studio
繁體版
原文
原文链接
原来的项目是MVC4的,我就升级到MVC5但是可以编译,就是会提示ViewBag的错误信息如下图 在网上查找了一下,觉得应该是升级引起的,那么修改Web.config就应该没有问题了 首先是项目目录下的web.config中的版本号红色箭头处 下图中的版本是4.0.0.0 把这里修改为5.2.7.0 然后重新打开项目就ok了 下图是正常后的效果
>>阅读原文<<
相关文章
1.
unity build 报错 The name 'XXX' does not exist in the current context
2.
error CS0103: The name ‘print‘ does not exist in the current context(Print/Debug.log)异常
3.
error CS0103: The name `Advertisement' does not exist in the current context
4.
关于unity中使用Mapbox 报错:error CS0103: The name heading does not exist in the current context 的解决方法
5.
CS0234 The type or namespace name 'Mvc' does not exist in the namespace 'Microsoft.AspNe...
6.
unity 3D error CS0234: The type or namespace name `***' does not exist in the namespace `***' 解决办法
7.
Unity 3D The type or namespace name 'xxx' does not exist in the namespace 'xxx'
8.
com.jfinal.plugin.activerecord.ActiveRecordException: The attribute name does not exist: XXX
9.
The SDK directory 'XXXXXX' does not exist
10.
The tag 'DataGridTextColumn' does not exist in XML namespace ....
更多相关文章...
•
XML DOM 解析器错误
-
XML DOM 教程
•
PHP PDO 错误与错误处理
-
PHP参考手册
•
SpringBoot中properties文件不能自动提示解决方法
•
IntelliJ IDEA中SpringBoot properties文件不能自动提示问题解决
相关标签/搜索
错误解决
mysql..the
the&nbs
mysql....the
The One!
5.the
mysql...the
Visual Studio
python 错误解决
Python 解决错误
C#
Visual Studio
HTML
浏览器信息
MyBatis教程
Spring教程
0
分享到微博
分享到微信
分享到QQ
每日一句
每一个你不满意的现在,都有一个你没有努力的曾经。
最新文章
1.
网络层协议以及Ping
2.
ping检测
3.
为开发者总结了Android ADB 的常用十种命令
4.
3·15 CDN维权——看懂第三方性能测试指标
5.
基于 Dawn 进行多工程管理
6.
缺陷的分类
7.
阿里P8内部绝密分享:运维真经K8S+Docker指南”,越啃越香啊,宝贝
8.
本地iis部署mvc项目,问题与总结
9.
InterService+粘性服务+音乐播放器
10.
把tomcat服务器配置为windows服务的方法
本站公众号
欢迎关注本站公众号,获取更多信息
相关文章
1.
unity build 报错 The name 'XXX' does not exist in the current context
2.
error CS0103: The name ‘print‘ does not exist in the current context(Print/Debug.log)异常
3.
error CS0103: The name `Advertisement' does not exist in the current context
4.
关于unity中使用Mapbox 报错:error CS0103: The name heading does not exist in the current context 的解决方法
5.
CS0234 The type or namespace name 'Mvc' does not exist in the namespace 'Microsoft.AspNe...
6.
unity 3D error CS0234: The type or namespace name `***' does not exist in the namespace `***' 解决办法
7.
Unity 3D The type or namespace name 'xxx' does not exist in the namespace 'xxx'
8.
com.jfinal.plugin.activerecord.ActiveRecordException: The attribute name does not exist: XXX
9.
The SDK directory 'XXXXXX' does not exist
10.
The tag 'DataGridTextColumn' does not exist in XML namespace ....
>>更多相关文章<<