Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive.
調試網站時,異常出現:Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive.
Server Error in '/' Application.
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive.
Source Error:
| Line 15: </connectionStrings> Line 16: <system.web> Line 17: <compilation targetFramework="4.5" /> Line 18: </system.web> Line 19: <runtime> |
Source File: D:\Sites\xxxxxx\web.config ?? Line: 17
Version Information:?Microsoft .NET Framework Version:2.0.50727.5420; ASP.NET Version:2.0.50727.5420
?
檢查上面的異常信息,Insus.NET發現開發的項目是ASP.NET MVC是在.NET Framework 4.0的環境下運行的。但在最后一個即顯示的是.NET 2.0
?
解決方法:
?
總結
以上是生活随笔為你收集整理的Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive.的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Activity的常用方法和生命周期
- 下一篇: CentOS7 iso封装语句