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 

Customizing License Tracker

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



Joined: 07 Dec 2006
Posts: 1

PostPosted: Thu Dec 07, 2006 10:00 am    Post subject: Customizing License Tracker Reply with quote

Hi

I need to have license code that are valid only on one machine, so I want to add the machine ID the license ProductInfo

I created this code bellow and compiled it into a dll, copied the DLL to the
E:\Program Files\Infralution\Infralution Licensing System\LicenseTracker

directory but LicenseTracker does not seem to pick it, when I create a new product and specify my class name in the custom generation field "LicenseGenerator.MachineIDLock"

I get an error that type could not be resolved, I double check and the dll is in place

Any idea?

see my code

Code:
using System;
using System.Collections.Generic;
using System.Text;
using Infralution.Licensing;
using Infralution.LicenseTracker;

namespace LicenseGenerator
{
    public class MachineIDLock : Infralution.LicenseTracker.CustomGenerator
    {
        /// <summary>
        /// Get the ProductInfo and comments to include for the license key
        /// </summary>
        /// <param name="data"></param>
        /// <param name="customer"></param>
        /// <param name="sale"></param>
        public override void GetLicenseKeyData(LicenseKeyData data, ICustomer customer, ISale sale)
        {
            // display a form to get the details from the user
            //
            LicenseDataForm form = new LicenseDataForm();

            // default to the company name
            //
            form.ShowDialog();
            string machineID = form.lblMachineID.Text;
            machineID = machineID.Trim();
            data.ProductInfo = EncryptedLicense.Checksum(machineID);
            data.Comments = string.Format("MachineID: {0}", machineID);
        }

    }
}
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Fri Dec 08, 2006 12:49 am    Post subject: Reply with quote

The type name you enter into License Tracker must be qualified by the assembly name eg if your dll was called LicenseGenerator.dll then you would enter the type name as:

LicenseGenerator.MachineIDLock, LicenseGenerator
_________________
Infralution Support
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