繁体   English   中英

如何使用C#从数据库创建ASP.Net图表控件

[英]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的所有实例

http://www.firebirdsql.org/en/net-provider/

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM