Click here to Skip to main content
15,881,248 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
How can I make the dll from my project to expire in 7 days?I means after 7 days the dll can not be used!
Posted
Comments
Akinmade Bond 2-Sep-12 9:49am    
I don't know why you would want to do that but this article might give you some ideas.

http://www.codeproject.com/Articles/15496/Application-Trial-Maker

1 solution

There is nothing like expiration of a dll. DLL is just an assembly and does not have capability of 'expiring'.

Sounds like you are in need of licensing. If so, There are different ways to achieve this:
1) encrypted license files that contains the expiry dates etc.
2) encrypted license keys held in the registry
3) challenge/response mechanism which require an internet connection
4) probably others.......

Try:
License Key Generation[^]
How can I create a Product Key for my C# App[^]
c# Licensing[^]


Also, look at these:
Cryptography 101 for the .NET Framework[^]
Application Trial Maker[^]
Windows application deployment adding registry entries[^]
 
Share this answer
 
Comments
BillW33 2-Sep-12 11:12am    
Lots of good links; +5
Sandeep Mewara 2-Sep-12 13:26pm    
Thanks.
PEIYANGXINQU 2-Sep-12 12:47pm    
Thank you ! But I really see my teacher's software file called calculat.exe which built by c# language.At first the software runs well,but after 7 days it can not run because my teacher say that he has set the operation and make it can run only 7 days.How to do that ,please?
Sandeep Mewara 2-Sep-12 13:22pm    
Go through my answer... it explains the behavior.

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