Click here to Skip to main content
13,097,230 members (63,086 online)
Rate this:
Please Sign up or sign in to vote.
See more:
I want to host my Asp Dot NET web application project in to my client’s server. The web application project should have a License key that will be valid for certain years. After that particular year ends the application should expire if not renewed before the expired date…could you please tell me how to achieve this…I am feared that he may crack the DLL with dot net reflector or any de complier to find the logic If I have that in CS file. So could you please help me to find the best way to achieve this and how to achieve this in detail?

.....Am sorry i forgot to state that in my client server they have internet available only for that server not for other computer i.e connected to that server through LAN.they use the application through intranet...i mean they upload to their local server and within their office they access the application through LAN connection....So in this scenario will the Service which requires Internet connection WORK?
Posted 6-Mar-13 18:51pm
Updated 7-Mar-13 18:14pm
aspnet_regiis -i 8-Mar-13 1:57am
Use webservice for authentication and host it on your server. In this webservice you can control who can log into the application

1 solution

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

Solution 1

There are many ways to implement licensing and to enforce your licensing scheme efficiently. Doing so without a guaranteed internet connection makes it even harder, and easier for crackers to bypass.

When you deploy your product to your customer's server, you deploy, among other files, also some binary files, such as DLLs. One of these DLLs can encapsulates your licensing engine, and this engine should read an encrypted data file where the details of the license will be stored. You should ensure that if this data file is missing, the product won't work, so if the encryption is strong enough, it will be very hard to change the terms of the license.

Internet connection is important for many reasons. For example, if your licensing scheme involves date/time, i.e. limiting your product to run for X months, you better connect to an ITS (Internet Time Server) such as[^] to query the date/time and avoid manually change of the server's internal clock, to bypass this restriction.

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 |
Web03 | 2.8.170813.1 | Last Updated 8 Mar 2013
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