Page 1 of 1

License was not compiled...

Posted: Tue 11 Mar 2008 14:02
by jammerjam
License was not compiled with Standard edition of MyDirect .NET. Reinstall MyDirect .NET, clear all temporary files, and recompile the application.
I've Reinstalled, cleared temp files, and recompiled - but still get the same error.

Suggestions?

32-bit XP, VS 2008, IIS 5.1

Posted: Tue 11 Mar 2008 14:24
by Alexey.mdr
To remove Trial MyDirect .NET manually try following these steps, please:
- Uninstall MyDirect .NET;
- Delete the following keys in the registry
  • HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products that corresponds to MyDirect .NET;
  • HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Assemblies that corresponds to CoreLab.MySql.dll;
- Remove all CoreLab.* assemblies from GAC and from %ProgramFiles%\Common Files\CoreLab\Data Providers\ folder;
- Stop IIS service if you install Web demos virtual directories;
- Remove \Program Files\CoreLab\MyDirect.NET folder.
After that you can install MyDirect .NET again.
Reset references in your current project to the new one in GAC.

Posted: Tue 11 Mar 2008 16:23
by jammerjam
I do this, and when I go to reference it has 2 dlls - one in \Program Files\MyDirect and the other in \Program Files\Common Files.

No matter which one I choose, both say the type is 'GAC'...but I still have the same issue.

Posted: Tue 11 Mar 2008 17:02
by Alexey.mdr
Which edition of MyDirect .NET do you use?
If it is Mobile Standard edition please follow the guideline below.

Probably there is a trial "CoreLab.CF.MySql.Vs.dll" assembly loaded.
Perform the following steps to clean the system:
1. Close all opened Visual Studio 2008 instances.
2. Open Visual Studio 2008 and create a new windows application project.
3. Add MySqlConnection.
4. Open another Visual Studio instance. Choose "Tools" -> "Attach to Process..."
5. Click on "devenv.exe" in "Available Processes" panel.
6. Choose "Debug" -> "Windows" -> "Modules"
7. In the appeared window try to find "CoreLab.CF.MySql.Vs.dll"
8. Remember the path to this assembly.

Now close all IDE's and uninstall the Core Lab MyDirect .NET mobile version.
Check your GAC for CoreLab*.dll and delete them (if they are still there).
Check the path you've got in the step 7 and delete the assembly.
Reinstall the product.

In your project make these steps:
a.. Create a file named licenses.licx, if this file does not exist yet.
b.. Open the file with a text editor and place this line inside:
CoreLab.MySql.MySqlConnection, CoreLab.MySql
c.. Save the file and add it to your project.
d.. Make sure it is embedded as a resource.

Recompile the project.

Posted: Tue 11 Mar 2008 19:12
by jammerjam
MyDirect for .NET2. Not mobile, just standard.

Posted: Wed 12 Mar 2008 09:35
by Alexey.mdr
There were such problems in previous builds.
Could you confirm that you are using MyDirect .NET version 4.50.25.0?
Do you have any other Core Lab product installed?

Posted: Wed 12 Mar 2008 12:40
by jammerjam
No, we aren't ready to upgrade our production server to 4.50 yet, so I'm still on 4.30.20.0. Is that the issue, and if so, is upgrading the only fix?

Posted: Wed 12 Mar 2008 15:30
by Alexey.mdr
Moving to the new version might not solve the problem.
Try removing files related to MyDirect .NET from obj and bin folders,
then recompile the project.