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.
gitlab新建分支後,android studio拿不到
2.
Android Wi-Fi 連接/斷開時間
3.
今日頭條面試題+答案,花點時間看看!
4.
小程序時間組件的開發
5.
小程序學習系列一
6.
[微信小程序] 微信小程序學習(一)——起步
7.
硬件
8.
C3盒模型以及他出現的必要性和圓角邊框/前端三
9.
DELL戴爾筆記本關閉觸摸板觸控板WIN10
10.
Java的long和double類型的賦值操作爲什麼不是原子性的?
本站公眾號
歡迎關注本站公眾號,獲取更多信息
相關文章
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 ....
>>更多相關文章<<