C
Carmine [www.thetotalsite.it]
Hi,
I am using ASP.Net 2.0 with the MySQL Connector .Net 5.1.2.2.
I added these lines to the web.config to make the connector.net able to
handle the SqlConnection object (and so to bind it to a grinview/formview
etc.):
<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.2.2, Culture=neutral, PublicKeyToken=C5687FC88969C44D"/>
</DbProviderFactories>
The application works perfectly in local when I test it through Visual
Studio 2005.
But, on the web site, I get this error:
Column 'InvariantName' is constrained to be unique. Value
'MySql.Data.MySqlClient' is already present.
It's probably due to the fact that a previous version of the MySql
Connector.net is installed in the GAC of the web server... but I want to use
the binary located in the /Bin directory of my application.
How can I solve this problem?
Thanks in advance,
Carmine
I am using ASP.Net 2.0 with the MySQL Connector .Net 5.1.2.2.
I added these lines to the web.config to make the connector.net able to
handle the SqlConnection object (and so to bind it to a grinview/formview
etc.):
<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.2.2, Culture=neutral, PublicKeyToken=C5687FC88969C44D"/>
</DbProviderFactories>
The application works perfectly in local when I test it through Visual
Studio 2005.
But, on the web site, I get this error:
Column 'InvariantName' is constrained to be unique. Value
'MySql.Data.MySqlClient' is already present.
It's probably due to the fact that a previous version of the MySql
Connector.net is installed in the GAC of the web server... but I want to use
the binary located in the /Bin directory of my application.
How can I solve this problem?
Thanks in advance,
Carmine