Failed to create CruiseControl.NET service due to MSBuild ResolveKeySource error despite importing certificate

We have just added the XBAP / WBA project to our build server. It uses a PFX file for signing. I imported the PFX file into the CruiseControl.NET service certificate store and see it in the certificate store for the service. However, we still see the exception thrown by ResoveKeySource :

c: \ WINDOWS \ Microsoft.NET \ Framework \ v3.5 \ Microsoft.Common.targets (1805.7): errorMSB4018: ResolveKeySource task completed unexpectedly. System.InvalidOperationException: displaying a modal dialog box or form when the application is not working in UserInteractive mode is not a valid operation. Specify a ServiceNotification or DefaultDesktopOnly style to display a notification from a service application. in System.Windows.Forms.Form.ShowDialog (owner of IWin32Window)

I also included (in the hope of more than knowledge) a desktop interaction service.

Has anyone seen this behavior or can recommend a different approach? I know that I can run CruiseControl.NET as a user (the solution is compiled from the command line), but I would like to avoid it if possible, since all permissions are configured on the service account and prefer to work as a service.

+3
source share
1 answer

Thanks to the Preet proposal , I managed to get it to work using the following process:

  • Created a user for the CruiseControl.NET service.
  • The user registered as a service right and changed the CruiseControl.NET service to run as this user.
  • XBAP .
  • PFX ResoveKeySource.
  • CruiseControl.NET, , !

, 3. PFX MSBuild . , , , CruiseControl.NET.

, Preet!

+2

Source: https://habr.com/ru/post/1720428/


All Articles