views:

737

answers:

3
+2  A: 

I guess the obvious thing would be to check whether the MySql.Data exist in the GAC (or the web service's bin folder) on the server and is of the correct version and public key?

Yossi Dahan
It was the wrong version of the dll on the webserver
CruelIO
+1  A: 

Basically, you are missing this DLL. You should look at putting it in the bin directory of your webservice.

Pete OHanlon
A: 

There could also be a versioning conflict between the MySql client you want and what is installed on the server. You can add the following section to your web.config file and specify the proper version/public key you need:

<compilation debug="false">
   <assemblies>       
      <add assembly="MySql.Data, Version=5.0.9.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d"/>
    </assemblies>
</compilation>
Dillie-O