Active7 years, 9 months ago
To license a machine with ActiveReports during installation or to license a trial without reinstalling From the Start menu, go to All Programs GrapeCity License Manager, or during installation, select Activate now and the dialog will appear automatically.
In a VS2010 solution I have a license.licx file that contains:
- Forums for all versions of ActiveReports and ActiveReports Server. General Discussion; ActiveReportsJS; ActiveReports v7+ ActiveReports Server; ActiveReports v3-6; ActiveReports v2; Spread. Forums for all current versions of Spread.NET spreadsheets, SpreadJS JavaScript spreadsheets, and SpreadCOM spreadsheets.
- To license ActiveReports on installation or license a trial without reinstalling. From the Start menu, go to the All Programs ComponentOne License Manager. In the GrapeCity License Manager window that appears, under Action click Activate. On the Activate Active Reports 9 screen that appears, click the Next button.
If I build the solution on a machine that HAS a license for ActiveReport then everything is fine. If I build the solution on a machine that DOESN'T have a license for ActiveReport I get:
Error 1 'Could not load file or assembly 'ActiveReports6, Version=6.1.2814.0, Culture=neutral, PublicKeyToken=cc4967777c49a3ff' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)' LC
On the machine that DOESN'T have a license for ActiveReport if I remove the above lines from the license.licx file then everything builds fine. I always thought that if the license couldn't be found then the unlicensed version will be used but it wouldn't kill the build. How do I get this solution to build on any machine whether it has a license or doesn't?
Uwe Keim28.4k3333 gold badges142142 silver badges228228 bronze badges
![Activereports 6 License Activereports 6 License](/uploads/1/3/3/2/133278054/513751876.jpg)
6,2181010 gold badges6161 silver badges122122 bronze badges
4 Answers
Activereports 6 Documentation
It actually seems like this machine doesn't have that specific version of ActiveReports installed.
Activereports 11 Download
Steelseries rival 100 software mac. We resolve issues like this by storing external assemblies in a path relative to the project (i.e. .Assemblies) and modifying all of the projects to include a HintPath, for example: Pc usb driver download.
https://rietiquad.hatenablog.com/entry/2020/11/23/115342. This way, you don't have to worry about every developer having the exact same version installed. You should be able to debug with this configuration, but not build for release.
![Activereports Activereports](https://image.evget.com/images/article/2018/ActiveReports_install_5.png)
Update
I forgot to mention another practice that we implement: unless the component absolutely requires it (we only have one that I can think of off the top of my head), we never store versions in the license.licx file. Our licenses.licx entry for the above example is:
You have to keep on top of the licenses.licx file if you do this, but it definitely resolves various versioning issues.
competent_techcompetent_tech40.8k1010 gold badges7070 silver badges101101 bronze badges
Contacted ActiveReports and they told me that a license file can be maintained for each user whether they have a paid license or not. The trick is that the users who will not be generating reports need to install a trial license (which ActiveReports provides free of charge) and the users that paid for the license will have their own license. The trial license, just like the real paid license, will deal with the license.licx file and will provide the proper actions when it sees an entry it recognizes in the .licx file.
DenisDenis6,2181010 gold badges6161 silver badges122122 bronze badges
If I build the solution on a machine that DOESN'T have a license for ActiveReport I get
This is part of the problem. Typically, licensing requires every developer to have a license. Trying to license only part of your development team is likely in violation of your ActiveReports license.
Reed CopseyReed Copsey484k6060 gold badges10131013 silver badges12981298 bronze badges
It should be perfectly fine to use a trial version of ActiveReports the way you are describing. I've seen a number of problems with Visual Studio's licensing with various components. Usually they can be solved using the following steps:
- Clean the solution using Build > Clean
- Delete the licx file (Visual Studio will generate this file as needed).
- Add an ARViewer control to a form in your project (you can delete it again later). This needs done on a machine with a valid ActiveReports license. And this is what should trigger the licx file to be regenerated with the correct information.
- Rebuild (make sure you do a real rebuild, I know that is supposed to be a clean+build, but rebuild seems to be important sometimes).
Other than that, just verify your references are all correct. For example, make sure you don't have multiple versions of DLLs referenced in different projects within the solution and make sure 'Copy Local' and 'Use Specific Version' are as you expect.
If you still have problems create a new project, add ActiveReports (or whatever component you're having problems with) and do a quick 'hello world' style app to make sure it works correctly and then compare the two projects (references, files, etc.).
Scott WillekeScott Willeke6,76411 gold badge2727 silver badges4545 bronze badges