Ok so admittedly I am new to working with asp or Connector/net.
I created a page that runs locally, but when I upload it and try and view it on my domain I get the following error:
Could not load file or assembly ‘MySql.Data.dll, Version=22.214.171.124, Culture=neutral, PublicKeyToken=c5687fc88969c44d’ or one of its dependencies. The system cannot find the file specified.
I have scoured the web to see how to get around this problem and have found nothing of any help. Hopefully someone here can help me. Here is some more information
I am using VS2010.
I copied the MySql.Data.dll to the same directory of my .aspx.
I am using GoDaddy windows hosting.
My web.config is simple and looks like this
For more information on how to configure your ASP.NET application, please visit
<add assembly=”MySql.Data.dll, Version=126.96.36.199, Culture=neutral, PublicKeyToken=C5687FC88969C44D”/>
<customErrors mode=”Off” />
I have tried to redirect the assemblies using the <runtime><assemblyBinding><dependantAsembly> method. It didn’t work (i think mainly because I don’t know what version to redirect from. I tried using a range, that didn’t work)
I’m really rather baffled. Any help would be great.
Some things I am curious about
1) does GoDaddy install Connector/Net into the GAC? If so what version of the .dll is in the GAC.
2) is it possible that the version of the .dll doesn’t work because my hosting account only supports up to .net 3.5? If so what version do i need to use to have it work with 3.5?
3) How do I fix this error I have a feeling it’s going to be something simple. A rookie mistake