Click here to Skip to main content
11,713,845 members (85,015 online)
Rate this: bad
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
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.

1 solution

Rate this: bad
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.......

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[^]
CIDev at 2-Sep-12 11:12am
Lots of good links; +5
Sandeep Mewara at 2-Sep-12 13:26pm
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 370
1 CHill60 250
2 Maciej Los 229
3 Richard MacCutchan 210
4 OriginalGriff 175
0 Sergey Alexandrovich Kryukov 365
1 CHill60 335
2 OriginalGriff 245
3 Andy Lanng 173
4 Richard MacCutchan 150

Advertise | Privacy | Mobile
Web01 | 2.8.150819.1 | Last Updated 2 Sep 2012
Copyright © CodeProject, 1999-2015
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