View previous topic :: View next topic |
Author |
Message |
KSoft
Joined: 26 Sep 2006 Posts: 19
|
Posted: Tue Jan 30, 2007 2:26 pm Post subject: Installing Custom Generator |
|
|
I've compiled a custom generator DLL but no matter where I stash it I can never see it in the generator drop-down on my product page. All I see there is "Infralution.LicenseTracker.NameChecksumGenerator, LicenseTracker" - which was there to start with.
I installed Infralution into C:\Program Files\Infralution\ - which directory should I stash the new DLL in? _________________ --
- Mitchell |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Tue Jan 30, 2007 10:45 pm Post subject: |
|
|
The combo box is a bit misleading - it only shows the pre-installed customer generators (only one at the moment). You can however type in the box the assembly qualified typename of your custom generator eg
MyNamespace.MyGenerator, MyGeneratorAssembly
The DLL should be placed in the same directory as the LicenseTracker.exe _________________ Infralution Support |
|
Back to top |
|
|
KSoft
Joined: 26 Sep 2006 Posts: 19
|
Posted: Tue Jan 30, 2007 11:02 pm Post subject: |
|
|
Ok, another stupid question.
I can't get it to recognize the DLL I created using the custom generator sample.
CustomGenerator.MyCustomGenerator, CustomGenerator
The DLL is named CustomGenerator.dll in the same dir as the licekse tracker.exe
MyCustomGenerator is defined like :
Public Class MyCustomGenerator
Inherits Infralution.LicenseTracker.CustomGenerator
Am I just screwing it up? _________________ --
- Mitchell |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Tue Jan 30, 2007 11:11 pm Post subject: |
|
|
Are you getting an error message when you enter the CustomGenerator data in and click OK? If so what is the error message.
I've just double checked and compiled the sample custom generator sample and installed it without any problems in License Tracker _________________ Infralution Support |
|
Back to top |
|
|
KSoft
Joined: 26 Sep 2006 Posts: 19
|
Posted: Tue Jan 30, 2007 11:53 pm Post subject: |
|
|
Yes, the error message is :
---------------------------
Error
---------------------------
The type name (CustomGenerator.MyCustomGenerator, CustomGenerator) could not be resolved to a valid type. Ensure that the DLL contain the type is placed in the same directory as the License Tracker executable.
---------------------------
OK
--------------------------- _________________ --
- Mitchell |
|
Back to top |
|
|
KSoft
Joined: 26 Sep 2006 Posts: 19
|
Posted: Tue Jan 30, 2007 11:54 pm Post subject: |
|
|
I want to make sure I have the namespace and assembly names correct. I'm not entirely sure I do. I used the file name as the "assembly name" and the name of the class is "MyCustomGenerator"...
Is that correct? _________________ --
- Mitchell |
|
Back to top |
|
|
KSoft
Joined: 26 Sep 2006 Posts: 19
|
Posted: Tue Jan 30, 2007 11:59 pm Post subject: |
|
|
I'm happy to email over a copy of the custom generator.. _________________ --
- Mitchell |
|
Back to top |
|
|
KSoft
Joined: 26 Sep 2006 Posts: 19
|
Posted: Wed Jan 31, 2007 12:00 am Post subject: |
|
|
Odd, a close and restart of the License Tracker a couple of times did the trick. It recognized the DLL.. _________________ --
- Mitchell |
|
Back to top |
|
|
|