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. <>
  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=, Culture=neutral, PublicKeyToken=c5687fc88969c44d"/>
  6. </DbProviderFactories>
  7. </>

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.