[英]How to Create ASP.Net Chart Control from Database using C#
我正在使用Web應用程序(Asp.Net),需要繪制一個使用數據庫中數據的圖表。 在調試模式下,我可以從數據庫中檢索數據,但是當嘗試添加圖表時
圖表比例-> dataSourceId-> SqlDataSource .. connectionstring正常
然后我得到這個
在系統配置中找不到提供“ FirebirdSql.Data.Firebird.Client”的數據。 找不到請求的.NetFramework數據提供程序。 它可能沒有安裝。
為什么我得到這個以及如何解決? 謝謝。
這很可能與Firebird的版本有關。 檢查您的machine.config文件中的以下行:
錯誤:
<configSections>
<section name="FirebirdSql.Data.FirebirdClient" type="System.Data.Common.DbProviderConfigurationHandler, System.Data, Version=2.6.5.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</configSections>
應該是什么:
<configSections>
<section name="firebirdsql.data.firebirdclient" type="System.Data.Common.DbProviderConfigurationHandler, System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</configSections>
您的machine.config文件位於以下位置(x86或x64):
32位
x:\Windows\Microsoft.NET\Framework\[version]\config\machine.config
64位
x:\Windows\Microsoft.NET\Framework64\[version]\config\machine.config
我認為您只需要編輯machine.config文件的32位版本,因為我相信VS 2010僅是32位。
首先嘗試這些事情,希望您會找到解決方法!
編輯; 嘗試重新安裝Firebird,下載最新版本並事先從計算機上卸載Firebird的所有實例
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.