I’ve found a couple of posts suggesting proprietary solutions that do what I’m looking for. I’m hoping someone has a tutorial they can pass along.. Anyways – here’s what I need:
I have a server control that is built for Sitefinity. It’s compiled into a DLL. When someone purchases the control, I’d like to generate a license file (.txt / .lic) that contains a key specific to their site URL / hostname. The license file should support multiple URLs/hostnames – in case they need it to work on their dev and production sites.
When someone tries to load up the control without having the proper license file – it will just spit out a “Not licensed” message.
Any thoughts? I’ve looked at Microsoft’s page on Server Control Licensing – and it was way over my head. It also licensed by Machine. I’d like to license by URL/hostname.
I cannot provide you an answer based on an existing framework. Here my solution
Additional you need a tool to create the licenses using the private key (which is not part of the distributed assembly but just this tool.
Update: As I see you biggest concern is the creation of the license key:
Hope that helps!