Posted 13 February 2018, 10:33 am EST
(1) How can I deactivate a license on a VSTS (Microsoft hosted) server?
This is not an on-premise machine and I * “do not”
have access to c:\Program Files (x86)\Common Files.…
I added the C1LicenseActivation.exe to my source code and run it on the Microsoft server. These seems to run in my scripts above but is problematic - A “5”, or License Activated is non-zero and a build error!!
I have it on my local dev machine and builds just fine. I do * "not "
want to setup an on premise build server.
(2) Deleted licenses.licx file. Opened each form to regenerate the file (local build fails without it). Checked file into source control and launched VSTS build with the same results:
2018-02-13T23:05:07.0233634Z ##[error]railRM\Properties\licenses.licx(4,0): Error LC0004: Exception occurred creating type ‘C1.C1PrintDocument.C1PrintDocument, C1.C1PrintDocument, Version=1.0.20023.101, Culture=neutral, PublicKeyToken=1a6f4158ebe6d3b8’ 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.
2018-02-13T23:05:07.0234269Z Properties\licenses.licx(4): error LC0004: Exception occurred creating type ‘C1.C1PrintDocument.C1PrintDocument, C1.C1PrintDocument, Version=1.0.20023.101, Culture=neutral, PublicKeyToken=1a6f4158ebe6d3b8’ 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. [D:\a\1\s\railRM\railRM.csproj]
2018-02-13T23:05:07.1568172Z ##[error]railRM\Properties\licenses.licx(6,0): Error LC0004: Exception occurred creating type ‘C1.Win.C1PrintPreview.C1PrintPreview, C1.Win.C1PrintPreview, Version=1.0.20023.101, Culture=neutral, PublicKeyToken=3af768410ba0a64f’ 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.
2018-02-13T23:05:07.1568884Z Properties\licenses.licx(6): error LC0004: Exception occurred creating type ‘C1.Win.C1PrintPreview.C1PrintPreview, C1.Win.C1PrintPreview, Version=1.0.20023.101, Culture=neutral, PublicKeyToken=3af768410ba0a64f’ 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. [D:\a\1\s\railRM\railRM.csproj]