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.
No provider available from registry 127.0.0.1:2181 for service com.ddbuy.ser 解決方法
2.
Qt5.7以上調用虛擬鍵盤(支持中文),以及源碼修改(可拖動,水平縮放)
3.
軟件測試面試- 購物車功能測試用例設計
4.
ElasticSearch(概念篇):你知道的, 爲了搜索…
5.
redux理解
6.
gitee創建第一個項目
7.
支持向量機之硬間隔(一步步推導,通俗易懂)
8.
Mysql 異步複製延遲的原因及解決方案
9.
如何在運行SEPM配置嚮導時將不可認的複雜數據庫密碼改爲簡單密碼
10.
windows系統下tftp服務器使用
本站公眾號
歡迎關注本站公眾號,獲取更多信息
相關文章
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 ....
>>更多相關文章<<