0

I have a asp.net web project, and i want to make the solution file to work only for some duration. I have implemented the expiration check on my Dal layer's constructor so that the it will not create the instance of my Entity EDMX (as i am giving only dll to the user so that it will not able to alter the check).

But I want that my solution will not open in Visual Studio if the specific date is passed.

Bhupendra Shukla
  • 3,814
  • 6
  • 39
  • 62
  • I highly doubt this is a feature. Why would you want to do that? – Timothy Shields Mar 05 '14 at 05:50
  • I don't see why you would want that. If you are working in team and trying to restrict people to access the source after a certain duration, remove their access from whatever source control you are using. – danish Mar 05 '14 at 05:52
  • @TimothyShields i want to give my solution to user for only limited time. – Bhupendra Shukla Mar 05 '14 at 05:53
  • 1
    *giving only dll*, there are other ways to manipulate and [get it changed](http://stackoverflow.com/questions/4304086/obfuscation-of-net-exe-dll) – V4Vendetta Mar 05 '14 at 05:56
  • Solution and project files are plain text. Even if you could do this somehow, developers could still access all the data and, presumably, override your expiration date. – Jonathan Wood Mar 05 '14 at 05:58
  • @JonathanWood then what is the alternatives... – Bhupendra Shukla Mar 05 '14 at 06:00
  • 2
    @RazoR: If you want to distribute an executable this way, then just compile it. Of course, skilled enough developers will *still* be able to work around the expiration. But there's no way to prevent use of plain text. If Visual Studio wouldn't load it, they could always just load it in NotePad and fix the expiration. I don't think you can send someone plain text source code and expect them to only be able to use it for a limited time. – Jonathan Wood Mar 05 '14 at 06:03

2 Answers2

0

I think you should be looking to other means for this.... Digital Rights Management, permissions, or something along those lines.

Visual Studio isn't the sort of program to restrict data, it relies on operating system functions to do that.

Mike Christiansen
  • 1,104
  • 2
  • 13
  • 30
0

You are looking for a time based licensing!

Try to check this, this question has been answered already.

http://social.msdn.microsoft.com/Forums/vstudio/en-US/a51405b6-cd23-475e-afe6-0b9c3ff2a0e8/c-application-for-time-based-licensing?forum=csharpgeneral

Nagaraj S
  • 13,316
  • 6
  • 32
  • 53
Oscar Bralo
  • 1,912
  • 13
  • 12