Click here to Skip to main content
15,887,596 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

How to make licence file for our software application, and for each particular system using c# .net?

Licence file should be expire on after 30 days or one year, Please help me.

Thanks in Advance.

Ankit Agarwal
Software Engineer
Posted
Comments
[no name] 7-Apr-14 8:11am    
Why do you waste your time posting this same question over and over when you could have at least conducted a simple search for this asked over and over and over and over question and gotten your answer long before now?

Create an application which takes the bios serial number as input. Encode and create a license file with expiry date also mentioned in it.

Your software while starting up should check with a time server on regular basis to check the expiry time. You cant trust the system time as users can modify it. But this requires an internet connection.

In system level also few validations you can add like

1. The system date should not be less than the license file date at any point of time.
2. Every time when you log in update a last accessed date field and increase it everytime.
You can check if this date is less than the previous last accessed date. If yoiur login time is less than your last accessed date, this means the system time is changed.
 
Share this answer
 
 
Share this answer
 
Comments
[no name] 7-Apr-14 7:15am    
I have to develop application in c# for licence created file and it should be accessible for specific time period.

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