ASP: Altering web.config to allow MySQL outside of GAC


/ Published in: ASP
Save to your folder(s)

Add the System.Data config settings for MySql. Update the version to number referenced.


Copy this code and paste it in your HTML
  1. <system.data>
  2. <DbProviderFactories>
  3. <remove invariant="MySql.Data.MySqlClient"/>
  4. <clear/>
  5. <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"/>
  6. </DbProviderFactories>
  7. </system.data>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.