Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
165
"Unable to locate license assembly" error during MsBuild in LC.exe
posted

During MsBuild of TFS2010 the license file is compiled using the lc.exe

Properties\licenses.licx(1): error LC0004: Exception occurred creating type 'Infragistics.Windows.DataPresenter.XamDataGrid, Infragistics3.Wpf.DataPresenter.v9.2, Version=9.2.20092.2078, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb' System.ComponentModel.LicenseException: Unable to locate license assembly.

---

I was able to reproduce the error by taking the following steps:

Create new WPF Application in VS2010 (no changes)
Check in into TFS2010
Start build ...
Build Successfull

Added Solution Folder "Libs" to the solution and added the dlls DataPresenter, Editors and WPF to this solution Folder - those dlls are located in the physical path "Libs" in the solution path.

Added those 3 dlls as reference to the project and then added a XamGrid in the MainWindow.xaml

Check in into TFS2010
Start build ...
Build failed, with the exception above

(I attached a part from the build.log file)

Parents
No Data
Reply
  • 5
    posted

    We had the same error message, trying to build on TFS2010 on Server2008R2.

    Solved after installing the components under the credentials of the Build user.

    The "Install for all Users" doesn't work as expected.

     

Children
No Data