ActiveReports Developers 7 Now Available in Beta!! (click for details)

ActiveReports 6 Support

Started by LeeOttaway at 08-19-2009 12:14 PM. Topic has 35 replies.

Print Search Rate
Sort Posts:    
   08-19-2009, 12:14 PM
LeeOttaway is not online. Last active: 4/2/2012 8:57:20 PM LeeOttaway

Top 500 Posts
Joined on 11-13-2008
Posts 27
Licensing After Upgrading
Hi

I've just upgraded my solution to AR6, however I noticed that the licenses.licx did not get updated even though I removed all references to AR3 and entered all AR6 references.  Even when I replaced the viewer control with the AR6 version it still did not replace the licenses entry with the AR6 one it just referred to the old one.  I have therefore manually removed the line for AR3 from the file however do I need to manually enter a line for AR6 now?  I noticed someone referred to:

DataDynamics.ActiveReports.ActiveReport, ActiveReports6, Version=6.0.1797.0, Culture=neutral, PublicKeyToken=cc4967777c49a3ff

Is this what I should manually enter?  I know you said you had changed the licensing method so I wasn't sure I needed this?

Thanks


Lee Ottaway
Fusion Software (UK) Ltd

   Report 
   08-19-2009, 12:23 PM
wweicker is not online. Last active: 1/28/2011 11:01:14 PM wweicker

Top 500 Posts
Joined on 08-28-2004
Canada
Posts 33
Re: Licensing After Upgrading
I'm interested in this topic as well since I will have to license my reports soon as well after I upgrade from version 3. When I installed the AR6 trial version I needed to remove the licences.licx like you did. When I did, I noticed this in the documentation notes that the "SetLicense() Method has been deprecated and can no longer be used for licensing ActiveReports."

Perhaps this will help you. In the trial version I can not build runtime licenses, so I'm wondering if you can run the Build Runtime Licenses after you install the full version, and whether you run into any bumps in the process.

Cheers,
Warren

   Report 
   08-19-2009, 12:28 PM
raji is not online. Last active: 5/16/2012 11:22:43 PM raji

Top 50 Posts
Joined on 08-28-2004
Dublin, OH
Posts 549

DDStaff
Re: Licensing After Upgrading
LeeOttaway.

Current release (1797) does not automatically update the license.licx if the converter tool is used. We have case 134355 to get that resolved. 

Manually changing the reference will not update the licx file.  However there are few ways of doing it if the converter utility is not used.

1. Manually update the licx file just like you did, or
2. After you update the reference manually, delete the existing licx and add a new ActiveReport file to the project.  This will create the licx with current version of AR.  Then you can delete that new ActiveReport file that you just added.

Your current entry for licx looks fine.

raji



   Report 
   08-19-2009, 12:38 PM
raji is not online. Last active: 5/16/2012 11:22:43 PM raji

Top 50 Posts
Joined on 08-28-2004
Dublin, OH
Posts 549

DDStaff
Re: Licensing After Upgrading
wweicker,

Do you use SetLicense() in ARN3?
You mention "Build Runtime Licenses".  what are you referring to?

ActiveReports 6 licensing, we believe, is  lot easier and simpler than how we did it in previous versions.  All the scenarios are covered in the documentation link that you provided other than "offline" licensing, where you will need to email us and we provide you with some executables to run on your machine to get your machine licensed.  (We will update documentation with this info shortly)

Can you describe your scenario on how you deploy your application to your end user?  I want to make sure that we cover all the scenarios and will also help us to effectively document and communicate these.

One of the very common complaints that we get from our customers about licensing is that "it works fine on my development machine, but when I deploy on a production environment, the red evaluation banner is showing up".  I want to make sure we have all the cases covered..

raji


   Report 
   08-19-2009, 1:25 PM
LeeOttaway is not online. Last active: 4/2/2012 8:57:20 PM LeeOttaway

Top 500 Posts
Joined on 11-13-2008
Posts 27
Re: Licensing After Upgrading
That's great Raji, thanks very much for your reply.

   Report 
   08-19-2009, 3:37 PM
wweicker is not online. Last active: 1/28/2011 11:01:14 PM wweicker

Top 500 Posts
Joined on 08-28-2004
Canada
Posts 33
Re: Licensing After Upgrading
Hi raji,

Yes, we use SetLicense() in our web application using ARN3. We store the key in the web.config file. We distribute our application onto a client's server where they host their own web and database servers. When I referred to "Build Runtime Licenses" I was referring to the documentation link where you click on "To license Web Forms projects made with the trial version " which expands a section that says:

"Note: For licensing Web Site applications, open the Visual Studio Build menu and select Build Runtime Licenses to create the App_Licenses.dll file."

I hope after upgrading to AR6 that this method will allow me to deploy our application to client servers. This option does not appear in the Build menu of Visual Studio with the trial version installed so I can not confirm this.

Thanks,
Warren

   Report 
   08-21-2009, 11:45 AM
raji is not online. Last active: 5/16/2012 11:22:43 PM raji

Top 50 Posts
Joined on 08-28-2004
Dublin, OH
Posts 549

DDStaff
Re: Licensing After Upgrading
wweicker,

Yes it will work just fine.

   Report 
   08-21-2009, 2:55 PM
samtran0331 is not online. Last active: 7/5/2011 3:52:20 PM samtran0331

Not Ranked
Joined on 11-21-2006
Posts 12
Re: Licensing After Upgrading
What will work just fine?
I have a fully licensed copy of ActiveReports 6 installed.

I do NOT have the option to:
Visual Studio Build menu and select Build Runtime Licenses to create the App_Licenses.dll file

Right clicking on the license.licx file does not give me any options
How do I build the App_Licenses.dll file?

   Report 
   08-21-2009, 3:01 PM
raji is not online. Last active: 5/16/2012 11:22:43 PM raji

Top 50 Posts
Joined on 08-28-2004
Dublin, OH
Posts 549

DDStaff
Re: Licensing After Upgrading
samtran0331,

So, do you see a "Build Runtime Licenses" option through context menu or not? (Right click on license.licx)

   Report 
   08-22-2009, 2:14 PM
raji is not online. Last active: 5/16/2012 11:22:43 PM raji

Top 50 Posts
Joined on 08-28-2004
Dublin, OH
Posts 549

DDStaff
Re: Licensing After Upgrading
samtrano331,

You are right.  I have not been able to consistently see that "Build Runtime Licenses" option when right clicking on license.licx.  I have seen it once.  Never seen it through the build menu in vs2008.

In a website project, I created a new project, added an ActiveReports6 file that goes into App_Code folder.  license.licx is not generated.  Then I added WebViewer control from the toolbox and the licx file is generated and App_Licenses.dll gets generated in bin folder.  Now I see   "Build Runtime Licenses" option when I right click on licx file but not through the Build menu.

Very interesting indeed.  I have licensed version of Activereports 6 on my machine and have VS2008 sp1 installed.

Am still trying to find out what is going on.  Will keep this post updated with my findings.  If anybody has any insights, please feel free to share.

   Report 
   08-23-2009, 6:52 PM
raji is not online. Last active: 5/16/2012 11:22:43 PM raji

Top 50 Posts
Joined on 08-28-2004
Dublin, OH
Posts 549

DDStaff
Re: Licensing After Upgrading
Found out some more stuff about this:  I will list whatever I could figure out:  Please let me know if any of this information is incorrect/confusing/etc.

1. license.licx file is generated in IDE when a licensed component is added through "Add New Item" or dragged from the toolbox.  Licensed component in ActiveReports 6 are:
  • ActiveReports 6 report file when added through template (Add New Item),
  • Dragging WebViewer control on an aspx page (Professional Edition only),
  • Dragging Designer control  on a winform (Professional Edition only).
2. In winform projects, re-building the solution will generate .licenses resource in the application executable, which can then be deployed on production machines.  "Build Action" property on the license.licx file has to be set to "Embedded Resource" .  Use reflector to make sure the license is correctly embedded.

3. In website project, when ActiveReports template file is added, it goes into the App_Code folder, although you can choose to add it in any folder/subfolder you want.  However, "View Designer" option is available only when it is in the App_Code folder.  Just adding it wont generate the license.licx file.  It has to open in design view first.  So, after you add the ActiveReports template, right click on that file and click on "View Designer".  You will notice that license.licx gets generated in root folder and context menu(right click on licx file in  solution explorer) will have a "Build Runtime Licenses" option to choose.  App_Licenses.dll is also created at the same time in the bin folder.  I also noticed that licx file has to be in the root folder of website, if not, then "Build Runtime Licenses" option is not available.

4.  Important point to note from item 2 and 3 to make sure license.licx is generated.
  • When report is added the first time, report has to open in design view.  In winform it happens by default, in websites you need to do couple of steps.( see item 3). 
  • license.licx file for websites has to be in the root folder of website.

5.  If above does not work, manually intervention may be required.  Use Textpad/notepad to create license.licx, add the correct info: type, assembly, version, PublicKeyToken (in that order and comma separated) and there can only be one component listed per line.  Include this file in the Visual Studio project and you can go from there.  If no visual studio is involved,  lc.exe needs to be run.

I used VS2008 SP1 and a licensed version of ActiveReports 6 while testing all of this.

Does this cover any/all of your questions?

raji


   Report 
   08-26-2009, 11:54 AM
samtran0331 is not online. Last active: 7/5/2011 3:52:20 PM samtran0331

Not Ranked
Joined on 11-21-2006
Posts 12
Re: Licensing After Upgrading
raji,

Thanks for the info, I will let you know how it goes.
Just to let you know the structure of our app.
We have one solution in Visual Studio 2008 sp1.
In this solution is
1.  A Winform Project called "ActiveReportsAssembly".  I deleted the old ActiveReports3 license.licx file and a new license.licx file was generated for ActiveReports6.  All our reports are designed and contained in this project.
2. Also in this solution is a Web Application project.  This web project has a reference to the ActiveReportsAssembly project...so when I build and deploy the Web Project, in the bin folder, there is an ActiveReportsAssembly.dll in my web project.

From what you're saying...it sounds like I can take the license.licx file from my ActiveReportsAssembly project and simply copy it to the root of my web project....
I'm going to try this and let you know.

Thanks again for the info.
Sam

   Report 
   08-26-2009, 1:11 PM
samtran0331 is not online. Last active: 7/5/2011 3:52:20 PM samtran0331

Not Ranked
Joined on 11-21-2006
Posts 12
Re: Licensing After Upgrading
Still can't seem to get this to license properly.
As I mentioned in last post,
I have one Visual Studio Solution.
In this solution are 2 projects.

One project is called: "ActiveReportsAssembly"
In this project are all the ActiveReport.vb files.
There are no forms or anything, just only *.vb files that are ActiveReports.

Another project in the same solution is a Web Application project (not web site project).
This project has all the references to the various ActiveReports6 dll's as well as a reference to the ActiveReportsAssembly project.

BOTH project have a license.licx file in the 'My Project' folder that is automatically created by Visual Studio.
Both license.licx files are set to be embedded resources and "copy local = false"
When I right-click on either license.licx file, I do not have the option to "build runtime licenses.

Help!

   Report 
   08-26-2009, 1:28 PM
raji is not online. Last active: 5/16/2012 11:22:43 PM raji

Top 50 Posts
Joined on 08-28-2004
Dublin, OH
Posts 549

DDStaff
Re: Licensing After Upgrading
"Build Runtime Licenses" option is available in WebSite projects and NOT WebApplication projects.

For winform and webapplication projects, the license is compiled into the executable.

   Report 
   08-27-2009, 6:09 AM
samtran0331 is not online. Last active: 7/5/2011 3:52:20 PM samtran0331

Not Ranked
Joined on 11-21-2006
Posts 12
Re: Licensing After Upgrading
Putting a WebViewer control on a page and re-compiling did the trick.

   Report 
  Page 1 of 3 (36 items) 1 2 3 >
GrapeCity » Product Support » ActiveReports 6... » Re: Licensing After Upgrading

Privacy Policy | Copyright © 1997-2012 — GrapeCity, inc.
All trademarks mentioned are the property of their respective owners.