SharpShooter.Reports Silverlight licensing

Our components use standard Visual Studio licensing mechanism. It’s based on licenses.licx file. For more info, please take a look at the following article:

The idea is that licenses.licx contains list of components for which we want to embed license into assembly during compilation process. When you compile your project Visual Studio compiler looks into licenses.licx file and with help of reflection finds license provider for each line. If the license is valid then it’s embedded into the assembly. You can deploy your project and licensing mechanism will find license if it’s embedded into the assembly.

Speaking about SharpShooter.Report Silverlight two components are licensed and both of them are on the server side. To license the component the following steps should be done:

1. If you do not have a licenses.licx file you need to create it. This file is usually located in the Properties folder in case it is a Web Application or it is located in the root folder if it is a Web Site. Besides, Visual Studio does not allow creating files in the Properties folder. So, you can create a simple text file and rename it to licenses.licx.

2. licenses.licx file should contains the following text:

PerpetuumSoft.Reporting.Components.ReportManager, PerpetuumSoft.Reporting, Culture=neutral, PublicKeyToken=8a6ae0a3e67829b5

PerpetuumSoft.Reporting.Silverlight.Server.ReportServiceBase, PerpetuumSoft.Reporting.Silverlight.Server, Culture=neutral, PublicKeyToken=8a6ae0a3e67829b5

3. Rebuild the project.

After that, the licenses should be embedded into the assembly.

You can check it in the reflector tool:

Since all the components' licenses are embedded into assembly we can deploy them.

If license is not embedded into assembly, please see the following article:

Add Feedback