# Debug Error:LisenceException

**URL:** <https://tech-community.robotics.abb.com/t/debug-error-lisenceexception/1259>\
**Category:** Developer Tools\
**Created:** [June 12, 2007, 4:48am UTC](https://tech-community.robotics.abb.com/t/debug-error-lisenceexception/1259 "2007-06-12T04:48:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![cookie](https://avatars.discourse-cdn.com/v4/letter/c/d26b3c/32.png) [@cookie](https://tech-community.robotics.abb.com/u/cookie)\
**Post date:** [June 12, 2007, 4:48am UTC](https://tech-community.robotics.abb.com/t/debug-error-lisenceexception/1259/1 "2007-06-12T04:48:04Z")

</div>

I debug program under VC#2005,When debugging the codes:

“this.controller=ControllerFactory.CreateFrom(controllerInfo );”

there is an error :

“LicenseException was unhandled”,

it is not a syntax error,i can’t figure out why.please help me handle this problem.

---

<div class="post-metadata">

**Author:** ![RussD](https://avatars.discourse-cdn.com/v4/letter/r/dec6dc/32.png) [@RussD](https://tech-community.robotics.abb.com/u/RussD)\
**Post date:** [June 12, 2007, 3:21pm UTC](https://tech-community.robotics.abb.com/t/debug-error-lisenceexception/1259/2 "2007-06-12T15:21:50Z")

</div>

You must add a file called licenses.licx to your Visual Studio project that provides references to several namespaces. This is described in the RAB help files and elsewhere here in the forum.

---

<div class="post-metadata">

**Author:** ![cookie](https://avatars.discourse-cdn.com/v4/letter/c/d26b3c/32.png) [@cookie](https://tech-community.robotics.abb.com/u/cookie)\
**Post date:** [June 13, 2007, 9:52am UTC](https://tech-community.robotics.abb.com/t/debug-error-lisenceexception/1259/3 "2007-06-13T09:52:37Z")

</div>

But how to add a file called “licenses.licx”

I write in a text “ABB.Robotics.Controller.Licenses.PCSdk,ABB.Robotics.Control lers” and name the file Licenses.licx then import the file to my project,but it doesn’t work

---

<div class="post-metadata">

**Author:** ![PerSvensson](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/persvensson/32/1040_2.png) [@PerSvensson](https://tech-community.robotics.abb.com/u/PerSvensson)\
**Post date:** [June 13, 2007, 10:04am UTC](https://tech-community.robotics.abb.com/t/debug-error-lisenceexception/1259/4 "2007-06-13T10:04:43Z")

</div>

Hi  
In VS just right click on the class library node and select add new item and then select text file and rename it to Licenses.licx and after that add the information to the file

---

<div class="post-metadata">

**Author:** ![cookie](https://avatars.discourse-cdn.com/v4/letter/c/d26b3c/32.png) [@cookie](https://tech-community.robotics.abb.com/u/cookie)\
**Post date:** [June 13, 2007, 10:29am UTC](https://tech-community.robotics.abb.com/t/debug-error-lisenceexception/1259/5 "2007-06-13T10:29:34Z")

</div>

It works,thank u for instruction
