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
5368
Visual Studio Team Services deploy
posted

We are migrating from on-prem TFS to Microsoft's hosted Visual Studio Team Services (visualstudio.com).  Since MSFT manages the agent instances, there is no ability for us to install Infragistics Ultimate onto the VM.  I don't know how their pipeline is architected.  There might not even be a VM.

Of course the builds are failing with the error:

district\My Project\licenses.licx (6, 0)

district\My Project\licenses.licx(6,0): Error LC0004: Exception occurred creating type 'Infragistics.Web.UI.NavigationControls.WebExplorerBar, Infragistics45.Web.v14.1, Version=14.1.20141.2283, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb' System.ComponentModel.LicenseException: Unable to locate license assembly.

What is the recommended method for building and deploying using VSTS?

Parents
No Data
Reply
  • 5368
    Verified Answer
    Offline posted

    For anyone else who has this issue, here is the cause, and how to solve it.

    When MSBuild runs against the solution, it checks a file called licenses.licx.  This is a text file that contains all design time controls that require license validation.  It looks on the machine for license assemblies, validates that the user owns a license, etc.

    Since a build server has no concept of a "user" or a "design experience", this is an entirely unnecessary build step.

    The problem can be alleviated as follows:

    1)  In Solution Explorer, show hidden files
    2)  Expand "My Project" so that you can see the file "licenses.licx".  Select the file.
    3)  In the properties window, change the Build Action from "Embedded Resource" to "Content"
    4)  Check in your project file

    Now, the build server should skip design-time license validation.

Children
No Data