iT邦幫忙

0

C# 命名空間 'System.Web.UI' 中沒有類型或命名空間名稱 'ScriptManager' (是否遺漏了組件參考?)

請問有人知道這個錯誤嗎?
我參考有加入
System.Web
System.Web.DataVisualization
System.Web.DynamicData
System.Web.Extensions
System.Web.Services

https://ithelp.ithome.com.tw/upload/images/20190114/201094253T9l7hNiTh.jpg

https://ithelp.ithome.com.tw/upload/images/20190114/20109425zftZcCtnrO.jpg

圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

1 個回答

0
暐翰
iT邦大師 1 級 ‧ 2019-01-14 11:23:01

可以參考這篇asp.net - System.Web.UI.ScriptManager' is defined in an assembly that is not referenced. But it is in the assembly? - Stack Overflow

看到你有參考 System.Web.Extensions 應該不是沒有添加參考問題
可以嘗試添加targetFramework="4.0"到compilation tag

<compilation debug="true" **targetFramework="4.0"**>

我要發表回答

立即登入回答