Licenses Problems only @ other PCs

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for MySQL
Post Reply
GerDelta
Posts: 1
Joined: Tue 03 Jan 2012 23:04
Location: Germany
Contact:

Licenses Problems only @ other PCs

Post by GerDelta » Tue 03 Jan 2012 23:17

Hey,

I have Problems wen my Programm try to Connect to my Database ONLY if then @ other PCs ... @ my own pc it work fully...
  • Speak : C++
    Compiler : VisualC++ 2010
    System compiled : Win7
    System Failed : Every other than my
I try to make the thinks, There have been described here:

http://www.devart.com/forums/viewtopic.php?t=9041

1. I added the File licenses.licx and Fill it with:
Devart.Data.MySql.MySqlConnection, Devart.Data.MySql, Version=6.60.268.0, Culture=neutral, PublicKeyToken=09af7300eec23701
2. I have NO option in my Solution Explorer like choose Build Runtime Licenses

3. MySqlDataAdapter.Fill i do not use and @ my pc Work its ... allso not important

4. I do not use use VC++ in Visual Studio .NET 2002 or 2003.

The Error code if the Programm use @ some other PC:

Code: Select all


See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
License not found. Please view "Licensing" topic in dotConnect for MySQL documentation for details or contact Devart technical support.


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.225 (RTMGDR.030319-2200)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
ElektrotechnikUmrechner(J.P.Bachmann)
    Assembly Version: 1.3.1.0
    Win32 Version: 
    CodeBase: file:///C:/Users/Venson/Desktop/ElektrotechnikUmrechner(J.P.Bachmann).exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.225 built by: RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
Devart.Data.MySql
    Assembly Version: 6.60.268.0
    Win32 Version: 6.60.268.0
    CodeBase: file:///C:/Users/Venson/Desktop/Devart.Data.MySql.DLL
----------------------------------------
Devart.Data
    Assembly Version: 5.0.367.0
    Win32 Version: 5.0.367.0
    CodeBase: file:///C:/Users/Venson/Desktop/Devart.Data.DLL
----------------------------------------
System.Data
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.225 built by: RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Transactions
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Transactions/v4.0_4.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.225 built by: RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:


    


When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.


Thx 4 help i needed[/quote]



UPDATE*

I create some New programm with only the Connector ... and this works but the "Main" Programm still not working

Pinturiccio
Devart Team
Posts: 2420
Joined: Wed 02 Nov 2011 09:44

Post by Pinturiccio » Tue 10 Jan 2012 15:11

In your case, for a C++ application, you should build and compile licenses.licx manually. For this perform the following:

1. Create the file licenses.licx;
2. Open the file with a text editor and add the following line to it:
Devart.Data.MySql.MySqlConnection, Devart.Data.MySql
3. Generate licensing resource file using following command line:
"%Compiler Path%\lc.exe" /target:MyApplication.exe /complist:licenses.licx /i:"%Assembly Path%\Devart.Data.MySql.dll"
Where:
a) %Compiler Path% is a path to the appropriate lc.exe file (for example, C:\Program Files\Microsoft.NET\SDK\v2.0\Bin);
b) MyApplication.exe is the name of your target executable file;
C) licenses.licx is a text file described earlier in this topic;
d) %Assembly Path% is the location of the Devart.Data.MySql.dll assembly.

4. The 'MyApplication.exe.licenses' resource file will be generated. You should add this file to your project as an embedded resource.
5. Rebuild your application and it should work on other computers.

for more details please refer to (Compiling License Manually topic): http://www.devart.com/dotconnect/mysql/ ... nsing.html

Post Reply