Infralution Support Forum Index Infralution Support
Support groups for Infralution products
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Installing Custom Generator

 
Post new topic   Reply to topic    Infralution Support Forum Index -> Licensing Support
View previous topic :: View next topic  
Author Message
KSoft



Joined: 26 Sep 2006
Posts: 19

PostPosted: Tue Jan 30, 2007 2:26 pm    Post subject: Installing Custom Generator Reply with quote

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
View user's profile Send private message Visit poster's website
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Tue Jan 30, 2007 10:45 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
KSoft



Joined: 26 Sep 2006
Posts: 19

PostPosted: Tue Jan 30, 2007 11:02 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Tue Jan 30, 2007 11:11 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
KSoft



Joined: 26 Sep 2006
Posts: 19

PostPosted: Tue Jan 30, 2007 11:53 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
KSoft



Joined: 26 Sep 2006
Posts: 19

PostPosted: Tue Jan 30, 2007 11:54 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
KSoft



Joined: 26 Sep 2006
Posts: 19

PostPosted: Tue Jan 30, 2007 11:59 pm    Post subject: Reply with quote

I'm happy to email over a copy of the custom generator..
_________________
--
- Mitchell
Back to top
View user's profile Send private message Visit poster's website
KSoft



Joined: 26 Sep 2006
Posts: 19

PostPosted: Wed Jan 31, 2007 12:00 am    Post subject: Reply with quote

Odd, a close and restart of the License Tracker a couple of times did the trick. It recognized the DLL..
_________________
--
- Mitchell
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Infralution Support Forum Index -> Licensing Support All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group