Click here to Skip to main content
14,693,959 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I developed a win application using vs2008 in c# & sql server2005..
now i want to implement a license feature in my project,means i want to give a software to client for 1 year license after 1 year again insert the license for 1 or 2 years...
can anybody help me

if anybody having the code for this then please sare it with me asap
[email removed]
Posted
Updated 9-Aug-11 6:23am
v2
Comments
LittleYellowBird 9-Aug-11 11:24am
   
Hi, there is no need to include your email as you will be notified via the email address that you registered with when there are any answers, and you will get lots of spam! So I have removed it for you. :)

Have you already checked this article: License Key Generation[^]. You could additionally use time stamps somewhere proper place (file dates, registry etc) for expiration check.
   
Comments
BobJanova 9-Aug-11 12:18pm
   
Good link.

The OP should bear in mind that if he is shipping a .Net assembly, it is fairly trivial for someone to decompile it and reverse-engineer the license requirements. So don't rely on such a mechanism to prevent piracy. In addition, expiring licenses are a huge pain if the company that issues them disappears (unless they are trivial to reverse engineer in which case they are pointless.)
Wendelius 9-Aug-11 12:47pm
   
Good points, thanks for the addition!
Ravi Bhavnani 9-Aug-11 15:04pm
   
Actually, it's pretty easy to release an obfuscated assembly, reducing the risk of decompilation. Further, signing the license with a public/private key pair adequately prevents modification of the license (whose content can even be in plaintext).

/ravi
Bing[^]
   
v2

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




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900