Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

    If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

    Cannot form a valid licenses.licx - original seems to beignored

    Scheduled Pinned Locked Moved Support
    2 Posts 1 Posters 21 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ? This user is from outside of this forum
      Guest
      last edited by

      I am having problems compiling a vs2010 project.

      It is a large project with some legacy components that have been installed on the server. When I run the Build action 'solution from default directory to the \bin{config} subdirectory of each project in the solution' I get the following message:

      licenses.licx(1,0): error LC0004: Exception occurred creating type 'Syncfusion.Core.Licensing.LicensedComponent, Syncfusion.Core, Version=5.202.0.25, Culture=neutral, PublicKeyToken=632609b4d040f6b4' System.InvalidOperationException: Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.

      Although it appears the component in question is trying to invoke some license screen, I am fairly certain this is a Build Master issue. For if I cut and paste the MsBuild command that is output in the log (Framework64\v4.0.30319\msbuild.exe" "...\wrk\MySolution.sln" "/p:Configuration=Debug") running it against the wrk directory, I can compile it cleanly- as there is a license file in the Project as an embedded resource directory. (I can also open the project in visual studio and compile.)

      So it seems that Buildmaster is not using that license file but doing something else.

      I have tried a number of things such as:

      • using the add 'Add Licenses' action with both the name of the component (Syncfusion.Core.Licensing.LicensedComponent) and the full assembly identity (Syncfusion.Core.Licensing.LicensedComponent, Syncfusion.Core, Version=5.202.0.25, Culture=neutral, PublicKeyToken=632609b4d040f6b4')

      • not using the 'Add Licenses' action - which still gives me the above InvalidOperationException error.

      • I have tried deleting the original license file before the Add Licenses action - which causes MsBuild to raise "Could not find file message '..SRC\Momentus.WindowsApp\licenses.licx"

      So given that from the command list msbuild compiles the solution without exception, what is causing the issue?

      Is there a way to see the contents of the SRC directory when the build fails - it seems to be removed?

      1 Reply Last reply Reply Quote 0
      • ? This user is from outside of this forum
        Guest
        last edited by

        This is almost certainly a user account issue. Can you invoke MSBuild manually as the same account used to host the BuildMaster service? That should give you the same error. If you install the licenses as the same user hosting the BuildMaster service it should work.

        The SRC directory becomes the WRK directory when there are target directories involved (in this case the build output).

        1 Reply Last reply Reply Quote 0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • 1 / 1
        • First post
          Last post
        Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation