I have a licensed version of a ComponentOne product but I still get the splash screen when I run my project.
In This Topic
If this happens, there may be a problem with the licenses.licx file in the project. It either doesn't exist, contains wrong information, or is not configured correctly.
First, try a full rebuild (Rebuild All from the Visual Studio Build menu). This will usually rebuild the correct licensing resources.
If that fails follow these steps:
-
Open the affected project.
-
Select an instance of the updated component.
-
In the Visual Studio Properties window, change any property. It does not matter which property you change; you can change it back to the previous value.
-
Rebuild the project using the Rebuild All option (not just Rebuild) and run the solution.
Alternative 1: Follow these steps:
-
Open a new Visual Studio.NET project.
-
Add the updated component to the form.
-
Compile and run the new project.
-
Open the licenses.licx file in the new project.
-
Copy the line that starts with the namespace of the updated component (for example, C1.Win.C1Report) and ends with a public key token.
-
Open the existing, incorrectly licensed project.
-
Open the licenses.licx file in the new project.
-
Paste the line from step 5 into this file (replace the old licensing information with the new).
-
Rebuild the project using the Rebuild All option (not just Rebuild) and run the solution.
Alternative 2: Follow these steps:
-
Open the affected project.
-
Delete the licenses.licx file from the project.
-
Add a new instance of the updated component to the form.
-
Rebuild and run the solution. The nag screen should not appear.
-
Remove the newly added component from the form.
Try each of these options multiple times, if necessary. If that still does not help, are you creating any of the controls in code rather than design-time? If so, you must add an entry for the control in the licenses.licx file. Also if this is a Web site, as opposed to an ASP.NET Web application, please try right-clicking the licenses.licx file and selecting "Build Runtime Licenses" from the context menu.