1

I have a working web site using Linq to Entities, on a MySQL database. Last night I installed the MySQL connector 6.0 for .NET, and all was good on my local machine. I assume I now have some GAC to Bin migration to do on the host. Does anybody know what files I must transfer and what I must do to my web.config?

asked Oct 19, 2009 at 15:35

2 Answers 2

1

1) .NET Framework 3.5 SP1 should be installed on the host machine.
2) Your application should have access to MySql.Data.dll and MySql.Data.Entity.dll (for example, put them into the Bin folder of your application).
3) ADO.NET provider should be registered in the application configuration file, like this:

<system.data>
 <DbProviderFactories>
 <remove invariant="MySql.Data.MySqlClient" />
 <add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient"
 description=".Net Framework Data Provider for MySQL" 
type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, 
Version=6.0.4.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" />
 </DbProviderFactories>
</system.data> 
answered Oct 20, 2009 at 12:26
1
  • Thanks, I'll check it out later on a VPC. Commented Oct 20, 2009 at 13:34
0

Install .NET Framework 3.5 on the host.

answered Oct 19, 2009 at 15:50
1
  • It is installed on the host. All the other 3.5 goodness works. Commented Oct 19, 2009 at 16:07

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.