Click here to Skip to main content
15,893,588 members
Articles / Programming Languages / Visual Basic

Creating Secure Trial Versions for .NET Applications - A Tutorial

Rate me:
Please Sign up or sign in to vote.
4.88/5 (65 votes)
16 Oct 2012CPOL7 min read 177.8K   22K   243  
Implement trial licensing model for your .NET applications with minimal costs
Installing and running the samples
==================================

Make sure you have Visual Studio 2010, SQL Express 2005 or higher and SoftActivate Licensing SDK (from www.softactivate.com) installed on the development machine

Copy the LicensingService folder from the bin\ folder of the SoftActivate Licensing SDK into the Tools subfolder of this folder

First and foremost, you must start the licensing service by running the RunLicensingService.bat file from the Tools folder. 

Make sure that the paths in the .bat (to Visual Studio and to the sample folder) are set correctly ! 

Go to the \bin\Release folder and run the SampleAppCS.exe or SampleAppVB file. 

Click the "Start 30-day Trial" button to start the trial. 

The application will then connect to the licensing service and request a trial license. 

Please note that if you try to click it again, it will not work since a trial license has already 
been issued for your computer. In order to try again, you must connect to the licensing service database 
(found in the Tools\LicensingService\App_Data folder) and delete the record from the Activations table.  

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions