Tuesday, May 29, 2012

WebsitePanel MySQL error

While setting up WebsitePanel, the MySQL setup page always gives the following error.

Could not load file or assembly 'MySql.Data, Version=6.3.7.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies

By adding the following to the web.config of C:\WebsitePanel\Server, the problem is resolved.

<runtime>
  <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
    <dependentAssembly>
      <assemblyIdentity name="MySql.Data" publicKeyToken="c5687fc88969c44d" culture="neutral" />
      <bindingRedirect oldVersion="6.3.7.0-6.5.4.0" newVersion="6.5.4.0" />
    </dependentAssembly>
  </assemblyBinding>
</runtime>

No comments: