I had created my custom solution which is set custom master page on feature activation and remove custom master page and set default master page as it is on feature deactivation.

I have developed this solution. the problem is that I want to allow this facility for trial version for any user.

Ex. If I have deploy this solution for any site then it will expire in 30 days. after that it will ask for license key to user.

I have installed web part of "Random Quote of the Day" Sharepoint Web Part. It will installed for 30 days only. There is no timer job installed in my server. So, how they are managing the licensing for the web part. I've deploy only wsp of this web part for my server. I also need same functionality for my wsp.

How should I do this?

1 Answer 1


They probably have an external webservice that the webpart calls, and in those methods they store in for example SQL table when you first started using the webpart (maybee with IP or URL), and then just return an error if (first start + 30 > Today && NotPaid)

  • If there is no internet connection in my server. In this case what happen? How web service is call? Commented May 6, 2014 at 12:53
  • If you do the call to the webservice with javascript (ajax) instead of in the code behind, it will be the users browser that will be used and not the server. But I guess that is the same problem with "Random Quote of the day", it will not be able to retrieve the quote of you have no internet access Commented May 6, 2014 at 12:57
  • Do you know any other way to do licensing in sharepoint instead of web service? Commented May 7, 2014 at 5:51
  • SharePoint apps in the store (pay once), etc. But not any easy one Commented May 7, 2014 at 6:43
  • I'm thinking about to use Registry or file to store webpart deploy date time. Is it right way to do licensing? Commented May 7, 2014 at 12:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.