Problem in MySQL Connector

1

I'm using MVC 3, EntityFrameWork 4 and MySQL database. I hosted my application on Locaweb. Unfortunately I can not do the same connect to the database. Running the application on my local machine and connecting to the bank hosted on Locaweb works perfectly. What to do?

    
asked by anonymous 14.07.2015 / 19:12

1 answer

1

Add this tag in web.config.

<system.data> <DbProviderFactories> <clear /> <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.2.3.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" /> </DbProviderFactories> </system.data>

    
17.07.2015 / 05:18