今天在本地安裝iis,搭建網站,應用程式的時候報錯下面的錯誤:
運作環境先檢查下:
1.已經安裝.net 4.0運作庫
2.設定網站基于.net4.0
3.修改“托管管道模式”,set the manage pipeline mode from integrated to classic (由內建到經典)
然并軟,問題還是沒有解決。
this is because config section hasn't declared. in 4.0 webconfig you have to add it manually.
如上添加後,在iis7的管理介面不再報錯!