i created a dataaccess dll with subsonic. now i am using it with my app but i keep getting exceptions when i access it. {"Failed to find or load the registered .Net Framework Data Provider."}
当它 this着这一法典编块时,它不断打上这一例外。
public dbTorontoTraderDB()
{
if (DefaultDataProvider == null) {
DataProvider = ProviderFactory.GetProvider("dbTorontoTrader");
}
我的评议有 d。 i 确切知道如何确定。
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<connectionStrings>
<add name="dbTorontoTrader"
connectionString="server=localhost;database=dbtorontotrader;user id=root; password=password"
providerName="MySql.Data.MySqlClient"/>
<!-- For MySQL -->
</connectionStrings>
<system.data>
<DbProviderFactories>
<add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient" description=".Net Framework Data Provider for MySQL" type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, Version=5.1.5.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" />
</DbProviderFactories>
</system.data>
</configuration>