views:

709

answers:

4

When running the MSBuild scripts for a project, I'm getting the following errors:

Properties\licenses.licx(1): error LC0004: Exception occurred creating type 'Infragistics.Win.UltraWinEditors.UltraNumericEditor, Infragistics.Win.UltraWinEditors.v5.2, Version=5.2.20052.1028, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb' System.ComponentModel.LicenseException: Unable to locate license assembly.
Properties\licenses.licx(2): error LC0004: Exception occurred creating type 'Infragistics.Win.Misc.UltraGridBagLayoutManager, Infragistics.Win.Misc.v5.2, Version=5.2.20052.1028, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb' System.ComponentModel.LicenseException: Unable to locate license assembly.
Properties\licenses.licx(3): error LC0004: Exception occurred creating type 'Infragistics.Win.UltraWinEditors.UltraCheckEditor, Infragistics.Win.UltraWinEditors.v5.2, Version=5.2.20052.1028, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb' System.ComponentModel.LicenseException: Unable to locate license assembly.

It appears that there's a problem with my machine's Infragistics license.

I have valid license files in my solution, so what's causing this issue?

A: 

Make sure the license compiler (lc.exe) can find the location of your Infragistics assemblies. Also, if you've updated your components anytime recently make sure there aren't multiple copies with different version numbers lying around. Finally make sure that the version your are trying to use is the same version in the licenses.licx file.

An easy way to refresh the licenses.licx is it open the form designer, add an Infragistics component and remove it.

If for some reason the licenses.licx file doesn't refresh you can try removing the offending entries first then refresh it.

codeelegance
A: 
jonathanconway
A: 

From a user comment in Infragistics forum archive

install as the Sysadmin for "All Users" and then the user will develop and compile their app.

Here is a workaround but unfortunately, this does not explain the root cause.

Here is a blog post from Infragistics to deal with automated builds but I don't think it is your case. And a further reference to that same post adding more info here.

I guess you had already looked at those links but they might be helpful to somebody else with a similar problem.

Marcel Gosselin
+2  A: 

There is a much easier solution: Set the build action on your license.licx to None.

ehnmark