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.
source
share