Could not load file or assembly 'CoreLab.MySql.Web'

Could not load file or assembly 'CoreLab.MySql.Web'

Postby geoffHome » Thu 07 Dec 2006 02:34

This has got me beat.
I've referenced it. I've loaded it to the bin (I've put all the .dll's just in case ).
This application used to work and now can't figure why I can't successfully deploy it!

Help Please!!!!

Error message:

Parser Error Message: Could not load file or assembly 'CoreLab.MySql.Web, Version=3.50.14.0, Culture=neutral, PublicKeyToken=09af7300eec23701' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Source Error:


Line 41:
Line 42:
Line 43:
Line 44:

Line 45:


Assembly Load Trace: The following information can be helpful to determine why the assembly 'CoreLab.MySql.Web, Version=3.50.14.0, Culture=neutral, PublicKeyToken=09af7300eec23701' could not be loaded.

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].


*****************

Part of web.config





name="MySQLDirect .NET Data Provider"
invariant="CoreLab.MySql"
description="CoreLab MySQLDirect .NET Data Provider"
type="CoreLab.MySql.MySqlDirectFactory, CoreLab.MySql, Version=3.50.14.0, Culture=neutral, PublicKeyToken=09AF7300EEC23701"
/>






















































geoffHome
 
Posts: 28
Joined: Tue 09 May 2006 23:55

Postby Alexey » Thu 07 Dec 2006 07:45

Does your application work locally?
Alexey
 
Posts: 2756
Joined: Mon 13 Mar 2006 07:43

Postby geoffHome » Fri 08 Dec 2006 07:43

Yes. Works without fault on my PC.
If it didn't I'd hardly be surprised that it failed on deployment!

Thanks,

Geoff
geoffHome
 
Posts: 28
Joined: Tue 09 May 2006 23:55

I've uploaded a complete working application based on version 3.50.15.0 an same type error

Postby geoffHome » Fri 08 Dec 2006 07:47

Of course now it refers to failing to find 3.50.15.0
geoffHome
 
Posts: 28
Joined: Tue 09 May 2006 23:55

Postby Alexey » Fri 08 Dec 2006 10:58

Wasn't MySQLDirect .NET installed on the machine where you deploy your application?
Alexey
 
Posts: 2756
Joined: Mon 13 Mar 2006 07:43

It works on my development machine but not when deployed to a remote server

Postby geoffHome » Fri 08 Dec 2006 11:16

I have mySQLDirect installed on my development machine and it works.

I deploy it to remote server with the mySQLDirect .dll's in the /bin folder as I always have but now it fails to work.
geoffHome
 
Posts: 28
Joined: Tue 09 May 2006 23:55

Postby Alexey » Fri 08 Dec 2006 12:16

Please send us small test project to reproduce the problem.
Use e-mail address provided in the Readme file.
Do not use third party components.
Alexey
 
Posts: 2756
Joined: Mon 13 Mar 2006 07:43

Slowly developed a test project and tested often and it worked

Postby geoffHome » Sun 10 Dec 2006 09:55

Think I'm picking up remnants of earlier versions from somewhere occasionally.
geoffHome
 
Posts: 28
Joined: Tue 09 May 2006 23:55

Postby Alexey » Mon 11 Dec 2006 07:32

Check the GAC.
Alexey
 
Posts: 2756
Joined: Mon 13 Mar 2006 07:43

How do I check the GAC?

Postby geoffHome » Tue 12 Dec 2006 05:15

Alexey,

I'm getting errors that refer to 3.50.10.0 and I've long since moved on to 3.50.15.0
*****************
Could not load file or assembly 'CoreLab.MySql, Version=3.50.10.0, Culture=neutral, PublicKeyToken=09af7300eec23701' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
*****************
How do I check and remove references to the earlier version please.

Geoff
geoffHome
 
Posts: 28
Joined: Tue 09 May 2006 23:55

Postby Alexey » Tue 12 Dec 2006 07:41

Remove all CoreLab.* assemblies from GAC.
In your application change all occurances of 3.50.10.0 to 3.50.15.0.
Alexey
 
Posts: 2756
Joined: Mon 13 Mar 2006 07:43


Return to dotConnect for MySQL