License mechanism in PC SDK apps
I am writting a PC SDK application in VS2005 for Robotware 5.07. I am able to successfully scan the network for available controllers. However I get a license error when attempting to get a reference to a controller using ControllerFactory.
The manual gives a very brief explanation of how to handle licensing, but not enough for me to figure it out. Can someone fill in the gaps in this document? What should the text in the license.licx file look like?
|
|
The license key should be placed in a "Licenses.licx" file and this file should be added to the application project as an embedded resource. The key for the RAB-PC SDK in VS 2003 is: |
ABB.Robotics.Controllers.Licenses.PCSdk |
In VS 2005 the key should be: |
ABB.Robotics.Controllers.Licenses.PCSdk, ABB.Robotics.Controllers |
Thanks!
Bryan
bryan.johnson@wolfrobotics.com
Wolf Robotics
4600 Innovation Dr.
Fort Collins, CO 80525
USA
Comments
-
I tried to compile the licenses manually using lc.exe at the command line. I'm not an expert in this area, but it looks like the licensing mechanism can't find the assembly information for the ABB stuff. Here is copy of what dumps out on the command line...
C:VisualStudioC#RABTestsNetworkScanAppNetworkScanApp&g t;lc.exe /target:Networ
kScanApp.exe /complist:licenses.licx /i:ABB.Robotics.Controllers
Microsoft (R) .NET License Compiler
[Microsoft .Net Framework, Version 2.0.50727.42]
Copyright (c) Microsoft Corporation. All rights reserved.
Processing complist 'licenses.licx'...
licenses.licx (1) : error LC0003 : Unable to resolve type 'ABB.Robotics.Controllers.Licenses.PCSdk'
licenses.licx (2) : error LC0003 : Unable to resolve type 'ABB.Robotics.Controllers 'C:VisualStudioC#RABTestsNetworkScanAppNetworkScanApp&g t;
Bryan Johnson
bryan.johnson@wolfrobotics.com
Wolf Robotics
4600 Innovation Dr.
Fort Collins, CO 80525
USA0 -
Hi Bryan
The license.licx is just a text file to which you add the line
ABB.Robotics.Controllers.Licenses.PCSdk, ABB.Robotics.Controllers
Per Svensson
Company Specialist
ABB Automation Technology Products0 -
The problem is solved now. For some reason when I added the license file to my project using "add existing item" visual studio failed to "include" the file in the build. I had to right-click on the file in the solutions brower and select the "Include in Project" setting. I guess vs2005 does not do that automatically when the file is added to the project.
Thanks for your feedback, folks.
Bryan Johnson
bryan.johnson@wolfrobotics.com
Wolf Robotics
4600 Innovation Dr.
Fort Collins, CO 80525
USA0
Categories
- All Categories
- 5.5K RobotStudio
- 395 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 249 ScreenMaker
- 2.7K Robot Controller
- 310 IRC5
- 59 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 785 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 4 Job listings