Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / August 2005

Tip: Looking for answers? Try searching our database.

Looking for a better licensing technology

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Stephen Walch - 14 Aug 2005 14:11 GMT
We have a .NET class library with a built-in license-control system that
checks for the presence of a digitally signed license file AT RUNTIME.  This
is a fairly standard technique that distinguishes between "trial" licenses
(which only allows only limited functionality) and "full" licenses.

We have not, however, figured out an effective way to apply licensing
techniques AT DESIGN TIME.  I have evaluated a few different licensing
technologies and products and I have not figured out a way to achieve any
control, record or react to what kind of license is present when code that
is referencing our class licrary is bein compiled.

I have explored the facilities for licensing in System.ComponentModel and
(as far as I can tell) that only impacts what happens when a "component" is
being visually manipulated by designer tools such as a Visual Studio forms
designer.  It does not seem to prevent anyone from compiling code that
simply instantiates my classes and calls my methods, not does it record any
licensing information when such code is being compiled.

At a high level, what I want to achieve is that developers can use a trial
license of my class library to compile and execute their own test programs,
but they should not be able to "go live" until developers have obtained a
"full" license, recompiled the app, and deployed to a machine that has a
"full" license.
Christian Benien - 14 Aug 2005 20:47 GMT
Have you looked at the license compiler lc.exe? You still check
licenses at runtime, but you have to embed them into the assembly at
design-time.

You can, for example, display a "This is a Trial version" form at
runtime if you don't find a valid embedded license.
Stephen Walch - 15 Aug 2005 12:14 GMT
Interesting.  Is there a way to make sure that this happens everytime an
application that references my assembly is compiled?

> Have you looked at the license compiler lc.exe? You still check
> licenses at runtime, but you have to embed them into the assembly at
> design-time.
>
> You can, for example, display a "This is a Trial version" form at
> runtime if you don't find a valid embedded license.
"Peter Huang" [MSFT] - 16 Aug 2005 03:21 GMT
Hi

I think the license check occurred at the designtime or runtime when the
code is executed but not the compiling time.

Here are some links for your reference.
Licensing Your Components
Creating Designable Components for Microsoft Visual Studio .NET Designers
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/ht
ml/pdc_vsdescmp.asp

Licensing Components and Controls
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/htm
l/cpconlicensingcomponentscontrols.asp

LicensedControl Sample
.NET Samples - Windows Forms: Control Authoring
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpqstart/ht
ml/cpsmpNETSamples-WindowsFormsControlAuthoring.asp

Licensed Applications using the .NET Framework
http://www.codeguru.com/columns/Experts/article.php/c5469/

Best regards,

Peter Huang
Microsoft Online Partner Support

Signature

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.