Bug #36650 fatal error C1107: could not find assembly 'MySql.Data.dll'
Submitted: 11 May 2008 9:10 Modified: 14 May 2008 19:34
Reporter: Victor Svetogor Email Updates:
Status: Not a Bug Impact on me:
None 
Category:Connector / NET Severity:S1 (Critical)
Version:5.2.2 OS:Windows (XP SP2)
Assigned to: CPU Architecture:Any
Tags: Visual C++ .NET

[11 May 2008 9:10] Victor Svetogor
Description:
I'm using Visual C++.net (VS2005 Version 8.0.50727) with Connector/NET 5.2.2. When I create a dataset, I get the following error:

fatal error C1107: could not find assembly 'MySql.Data.dll': please specify the assembly search path using /AI or by setting the LIBPATH environment variable ....

I've checked that MySql.Data is listed in my project's references; I've tried updating both the /AI and LIBPATH settings, but I still get the error.

Does anyone have an idea why my project is not picking up the MySql reference?

How to repeat:
Simple insert DataGridView control into the form , then add new project data source from database connection
[11 May 2008 9:13] Victor Svetogor
This bug only with Visual C++ .NET project. In C# all is OK
[12 May 2008 7:23] Tonci Grgin
--

Attachment: Bug36650.JPG (image/jpeg, text), 12.57 KiB.

[12 May 2008 7:27] Tonci Grgin
Hi Victor and thanks for your report.

Verified as described with c/NET 5.2.1GA.
Now, as you can see on attached picture, true problem seems to be inability to create dataset. If I throw datagrid to this problem, my VS crashes, otherwise only reported error shows.
[12 May 2008 8:11] Victor Svetogor
Hi Tonci

I can create dataset, but I can not compile the project. Here ftp://ftp.mysql.com/pub/mysql/upload/Bug36650.zip the my test project with this bug.

Tnank you

SY, Victor
[14 May 2008 19:34] Reggie Burnett
First I want to clarify that 5.2.1 and 5.2.2 are neither GA.  5.2.1 is a alpha while 5.2.2 is beta.

Second, I am marking this as !bug since I tried the reproduce steps using other products and they fail in exactly the same way.  Also, if I add a #using <MySql.Data.dll> to other parts of the project then it works fine.  It seems to only fail when being included in the header file generated for the data set.  Also, when I tried it in VS 2008 I didn't even see an option for hooking a datagridview to a datasource.  The only option given in the new data connection dialog was an object data source which makes me think this is a problem with VS 2005 and was removed from VS 2008.

Pending further information I am marking it as !bug (meaning not a bug in _our_ code).
[25 Jul 2008 20:39] Артем Сулейманов
I have Visual Studio 2005 \ MS WinXP x86 SP3. I'm working with Visual C++ .NET.

And now I have the same problem (the code cannot be compiled and my VS is crashed with the tempting offer to send technical information to the Microsoft Corporation... and I cannot find a solution...

I havn't understood yet, what solution have you offered.

Thank you!
[25 Jul 2008 20:46] Артем Сулейманов
in accomplishment, I have MySQL Connector/.NET version 5.1.6