Wrox Programmer Forums
|
VS.NET 2002/2003 Discussions about the Visual Studio.NET programming environment, the 2002 (1.0) and 2003 (1.1). ** Please don't post code questions here ** For issues specific to a particular language in .NET, please see the other forum categories.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VS.NET 2002/2003 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 4th, 2003, 12:47 AM
Registered User
 
Join Date: Jun 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Licensing problem

Hi,
I was wondering if anyone knew how to implement runtime licensing in .net. I seem to be having a problem with the lc.exe and embedding it into the exe. Does anyone have an example of how to do it?
 
Old June 5th, 2003, 11:13 PM
mhc mhc is offline
Registered User
 
Join Date: Jun 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Most of the people will call Validate() of the LicenseManager in the constructor of the component.
A LicenseException will be throw if the license is invalid.

When the validate is called, GetLicense() of the LicenseProvider class will be called. All design time and run time license checking can be handled here. Most of the people will override the LicenseProvider class in order to have their own license checking. You will return NULL for a invalid license. Return a License object for a valid license(you can also override this License class, in order for providing more information for the component).

mhc





Similar Threads
Thread Thread Starter Forum Replies Last Post
Licensing SQLScott SQL Server 2005 2 October 12th, 2006 12:03 PM
web app licensing gnubar Classic ASP Basics 0 January 20th, 2005 10:19 AM
MSDE 1.0 licensing confusion Ddeckard SQL Server 2000 2 January 18th, 2005 01:53 AM
Licensing Issues lucid Oracle 3 April 20th, 2004 08:25 PM
Licensing problem Nicky C# 0 June 4th, 2003 12:51 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.