Click here to Skip to main content
12,891,744 members (51,690 online)
Rate this:
Please Sign up or sign in to vote.
See more: C#3.0 .NET3.5 C# .NET Silverlight , +
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 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 2-Sep-12 11:12am
Lots of good links; +5
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.
Sandeep Mewara 2-Sep-12 13:26pm

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

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170424.1 | Last Updated 2 Sep 2012
Copyright © CodeProject, 1999-2017
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