dotConnect for MySQL has two types of license:
1. The license for using dotConnect for MySQL. This license type is related to purchasing the licensed version and is not related to the described issue. For more information, please refer to
http://www.devart.com/dotconnect/mysql/ ... ering.html
2. The technical license of Microsoft .NET Framework. Regardless of the used version - trial or licensed, when you create an application that uses Devart assemblies, it must have a license resource. License information is a specially formed embedded resource. It is checked when a connection is opened. For more information, please refer to
http://www.devart.com/dotconnect/mysql/ ... nsing.html
dotConnect for MySQL Mobile edition adds the license resource automatically every time the project is compiled, and usually you don't need to worry about adding it. If the license resource is not automatically added - it can be caused by the following reasons:
1) Visual Studio version is not supported by dotConnect for MySQL. dotConnect for MySQL Mobile supports Visual Studio 2008;
2) You have installed dotConnect for MySQL without the Visual Studio integration setting. Please make sure that the Visual Studio integration check box is selected when installing dotConnenct for MySQL Mobile.
If the license resource is not added automatically to the project, you can compile it with .NET Compact Framework Compiler.
We will send you .NET Compact Framework Compiler via email.
Instructions how to use the license compiler:
1) run this command (replace MyApp.exe with the name of your application)
CrLc.exe /target:MyApp.exe
The output file is Devart.Data.MySql.licenses . Now it can be used only with a particular assembly (MyApp.exe in our sample).
2) put Devart.Data.MySql.licenses to the root folder of your project, add it to the project and set its "Build action" property to EmbeddedResource. Rebuild your project. Now MyApp.exe can be deployed on your mobile device (with Devart.Data.MySql.dll).
Also, there is a known problem with the .NET Compact Framework. A "License not found" exception can be thrown by MySqlDataAdapter.Fill method in case when MySqlConnection had never been opened. To avoid the problem just open (or open and close) any connection before calling the MySqlDataAdapter.Fill method.