Evaluation Message Showing
Symptoms: The evaluation banner still appears after running the Standard Edition LicenseStd2.exe or UpgradeStd2.exe (or Professional Edition LicensePro2.exe or UpgradePro2.exe) file and following the steps to license applications.
Causes:
- Running the .exe will license your machine for new Windows Forms projects only. Additional steps are required for ASP.NET projects and for existing Windows Forms projects.
- All licensing in .NET is done at the root EXE level. For example, if you have a report that needs to be licensed within a DLL, the calling EXE to that DLL needs to be licensed.
- The name of your executable has been changed without changing the assembly name in the project's references.
- No licenses.licx file was generated in the project.
- You have LicenseStd2.exe or UpgradeStd2.exe (Standard Edition) rather than LicensPro2.exe or UpgradePro2.exe (Professional Edition) and are using Professional Edition features such as the Http Handlers, the WebViewer control, or the End User Designer control. Although Standard Edition users are welcome to try out the Professional Edition features, the only way to remove the evaluation banner from them is to upgrade to the Professional Edition.
Solutions:
- For existing Windows Forms projects: After licensing the machine, reopen the project, open the Build menu, and choose Rebuild Solution. In most cases, this will update the license information.
- For ASP.NET projects:
- Go to the Start menu, select All Programs, Data Dynamics, ActiveReports for .NET 2.0, and click Create Web.Config key.
- Enter the same information you used in license.exe and click the Create Web.Config button. (If your machine has been properly licensed, the first two fields should already be filled in by default.)
- Copy the generated XML string and paste it in your ASP.NET project's web.config file. If your web.config file already has <configuration> tags, place the XML string inside these tags, and delete the extra <configuration> tags in the XML string.
- Caution: Do not place the XML string inside the <system.web> tags, or the project will error out when you attempt to run it.
- Open the Build menu, and choose Rebuild Solution.
- For End User Report Designer projects:
- Add a new End User Report Designer to your solution. This is temporary, so anywhere on the main form will do.
- From the Build menu, choose Rebuild Solution.
- Open the project's licenses.licx file and verify that it contains the line "DataDynamics.ActiveReports.Designer.Designer, ActiverReports.Design."
- Delete the temporary End User Report Designer.
- For reports contained in a DLL rather than an EXE: After licensing the machine, the root level calling EXE will need to have ActiveReports licensing embedded. To do this, add a temporary ActiveReport to the startup EXE project, open the Build menu, and choose Rebuild Solution. After verifying that licensing has been added in the licenses.licx file, the temporary report may be deleted.
- For run-time licensing:
- Create a Web.Config key as directed in the ASP.NET solution above.
- In the application class, create a report instance and call the SetLicense() method with the key you created above as the parameters. The string value for the generated key should be "[Name], [Company Name], [Serial Number], [Hash Code]."
- Use the Run method to generate the report object.
- For reports in an executable for which the name has been changed: Change the assembly name in the project's references to match the new name of the executable.
If the symptoms persist:
- For existing Windows Forms projects: If simply rebuilding the project doesn't work, you can manually set up the application for licensing.
- In the Solution Explorer for the project, right-click the StartUp project, and choose Set As StartUp Project
- From the Project menu, choose Add New Item...
- In the Templates pane, choose Text File, and name it "licenses.licx"
- Double-click the licenses.licx file to open it
- Add "DataDynamics.ActiveReports.ActiveReport, ActiveReports" to the text file
- From the Build menu, choose Rebuild Solution
- For ASP.NET projects: Since the web key is comma delimited, there can be no commas in the username or company name fields. If there are any commas in the fields, rerun the license.exe or licensepro.exe on your CD or original download without using any commas. Then rerun the web config key generator.
- For End User Report Designer projects:
- Add the line "DataDynamics.ActiveReports.Designer.Designer, ActiverReports.Design" to the licenses.licx file manually.
- From the Build menu, choose Rebuild Solution.
- For reports contained in a DLL rather than an EXE: Another way to embed licensing in the EXE is to copy the licenses.licx file from the DLL into the startup project.
- Copy the file into the project folder.
- Open the project and choose to view all files in the Solution Explorer.
- Right click the file, and choose to include it in the project.
- In the Properties window for the file, set the Build Action to Embedded Resource.
- From the Build menu, choose Rebuild Solution.
Tasks: Licensing ActiveReports
Copyright © 2004-2005 Data Dynamics, Ltd. All rights reserved.