# License Error

**URL:** <https://tech-community.robotics.abb.com/t/license-error/1569>\
**Category:** Developer Tools\
**Created:** [December 5, 2007, 11:33am UTC](https://tech-community.robotics.abb.com/t/license-error/1569 "2007-12-05T11:33:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![neil](https://avatars.discourse-cdn.com/v4/letter/n/839c29/32.png) [@neil](https://tech-community.robotics.abb.com/u/neil)\
**Post date:** [December 5, 2007, 11:33am UTC](https://tech-community.robotics.abb.com/t/license-error/1569/1 "2007-12-05T11:33:09Z")

</div>

I have included the license file (Licenses.licx) into my project, with the text, “ABB.Robotics.Controllers.Licenses.PCSdk, ABB.Robotics.Controllers”

However I get a build error with the following description:

Error 1 Exception occurred creating type ‘ABB.Robotics.Controllers.Licenses.PCSdk, ABB.Robotics.Controllers, Version=5.9.167.0, Culture=neutral, PublicKeyToken=1da709b7d1f14b7b’ System.ComponentModel.LicenseException: A valid license cannot be granted for the type ABB.Robotics.Controllers.Licenses.PCSdk. Contact the manufacturer of the component for more information.

File: Licenses.licx  
Line: 1  
Project: IELaunchTestApp

The license expires in September 2008.

Does anybody know why I’m getting this exception?

Thanks in advance,  
Neil

---

<div class="post-metadata">

**Author:** ![neil](https://avatars.discourse-cdn.com/v4/letter/n/839c29/32.png) [@neil](https://tech-community.robotics.abb.com/u/neil)\
**Post date:** [December 12, 2007, 10:13am UTC](https://tech-community.robotics.abb.com/t/license-error/1569/2 "2007-12-12T10:13:15Z")

</div>

This error occurs when the license file is included in the project and I try to build the program (using VS2005).

If I exclude the license file from the project, it builds with no problem. Running the exe, I get the exact same error as described in this forum:

[ABB Robotics Community - Maintenance](http://forums.robotstudio.com/forum_posts.asp?T) ID=1639&KW=license

Can anybody help? Any help appreciated…

Neil

---

<div class="post-metadata">

**Author:** ![John\_Wiberg](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/john_wiberg/32/1485_2.png) [@John\_Wiberg](https://tech-community.robotics.abb.com/u/John_Wiberg)\
**Post date:** [December 12, 2007, 3:29pm UTC](https://tech-community.robotics.abb.com/t/license-error/1569/3 "2007-12-12T15:29:58Z")

</div>

Hi Neil,

1st check  
Did you do “Add Existing Item” and selected  
C:Program FilesABB Industrial ITRobotics ITRobot Application BuilderPC SDKLicenses.licx  
or did you include the file in another way?

2nd check  
In the project, on the Licenses.licx, check that the “Build Action” property is correct. In my working system its set to “Embedded Resource”.

---

<div class="post-metadata">

**Author:** ![neil](https://avatars.discourse-cdn.com/v4/letter/n/839c29/32.png) [@neil](https://tech-community.robotics.abb.com/u/neil)\
**Post date:** [December 12, 2007, 7:33pm UTC](https://tech-community.robotics.abb.com/t/license-error/1569/4 "2007-12-12T19:33:55Z")

</div>

Hi John,

1st check:  
I have added the license file to the project in the way you suggested. I also tried copying the license file over to the project folder and then “Add Existing Item”. Both methods give the build error as shown in the original post.

2nd check:  
The “license.licx” “Build Action” is set to “Embedded Resource” as you suggest (and has been all along).

I have read through other license related errors posted on the forum and issues addressed in the RAB manual but I can’t see anything relating to this problem.

I have found a similar error on the Microsoft Support website. I don’t know if I have 32bit or 64bit OS though…

[http://support.microsoft.com/kb/913961](http://support.microsoft.com/kb/913961)

Any help appreciated,  
Neil

---

<div class="post-metadata">

**Author:** ![Ingela](https://avatars.discourse-cdn.com/v4/letter/i/53a042/32.png) [@Ingela](https://tech-community.robotics.abb.com/u/Ingela)\
**Post date:** [December 17, 2007, 11:08pm UTC](https://tech-community.robotics.abb.com/t/license-error/1569/5 "2007-12-17T23:08:05Z")

</div>

Hi Neil,

One reason for the error could be that the ABB.Robotics.Controllers.dll that you reference in your project does not belong to the PC SDK but to the FP SDK.

Right-click the reference in the Solution Explorer and select _Properties_. Check that the reference path is C:Program FilesABB Industrial ITRobotics ITRobot Application Builder **PC SDK.**

(If you want to you can download RAB 5.10, which does not have any licensing check.)
