Here problem is that I have install Mysql 6.9.5
on my local machine and it is working fine on local machine but after hosting on live server I am getting error as below.
Error Message
Could not load file or assembly 'MySql.Data, Version=6.9.5.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies. The system cannot find the file specified.
Web.config
<?xml version="1.0"?>
<configuration>
<system.web>
<compilation debug="true" targetFramework="4.0">
<assemblies>
<add assembly="MySql.Data, Version=6.9.5.0, Culture=neutral, PublicKeyToken=C5687FC88969C44D"/>
<add assembly="MySql.Web, Version=6.9.5.0, Culture=neutral, PublicKeyToken=C5687FC88969C44D"/>
</assemblies>
</compilation>
<httpRuntime/>
</system.web>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="MySql.Data" publicKeyToken="C5687FC88969C44D" culture="neutral" />
<bindingRedirect oldVersion="5.5.32" newVersion="6.9.5.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
<appSettings>
<add key="karmadbeConnection" value="server=*.*.*.*;User ID=*;Password=*;database=*;persist security info=False"/>
</appSettings>
</configuration>
Server Description
There is mysql 5.5.32
version is installed on easycgi
server. I hope there is version problem with server hosting. but not getting any solution.
if somebody have any solution or suggestion then it will be aceptable Thanks in advance.