Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#3.0 .NET3.5 C# Silverlight C#4.0 , +
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 2-Sep-12 2:49am
Comments
geekbond at 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

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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[^]
  Permalink  
Comments
CIDev at 2-Sep-12 11:12am
   
Lots of good links; +5
Sandeep Mewara at 2-Sep-12 13:26pm
   
Thanks.
PEIYANGXINQU at 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 at 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)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 595
1 OriginalGriff 295
2 CPallini 210
3 PIEBALDconsult 150
4 Fredrik Bornander 140
0 OriginalGriff 5,835
1 Sergey Alexandrovich Kryukov 5,263
2 CPallini 4,750
3 George Jonsson 3,227
4 Gihan Liyanage 2,487


Advertise | Privacy | Mobile
Web01 | 2.8.140916.1 | Last Updated 2 Sep 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100