Greetings,

This is an old problem, but I just ran into the same issue and found
this thread through Google, so am replying here in case someone else
hits the same problem :)

After struggling with it for a day, including importing the cert into
the ccnet service cert store, I was able to find a solution, which you
can find the answer on StackOverflow:

http://stackoverflow.com/questions/1587247/cruisecontrol-net-service-failing-to-build-due-to-msbuild-resolvekeysource-error

In a nutshell, run the service as a user not a system account.

cheers
si

On Wed, Sep 26, 2007 at 1:30 PM, sc...@ebo <[email protected]> wrote:
>
> I am having the same issue, and have tried importing the certificate.
> The certifcate imports, but alas, the build still fails with the same
> error.
>
> Running version 1.2.1.7
> Building from a msbuild nant task.
>
>
> On Jul 31, 9:53 pm, Cobra300 <[email protected]> wrote:
>> Hi, you should import the certificate with which you sign the code
>> into the cc.net service's certificates store. Run MMC, add
>> "Certificates" snap-in, select "Service Account"->"Local 
>> Computer"->"CruiseControl.NET Server", then import the certificate into 
>> Personal
>>
>> folder.
>>
>> On Jul 11, 7:59 pm, Richard <[email protected]> wrote:
>>
>> > I'm trying to build my solution using the msbuild task, with CC.NET
>> > running as a service.  However, I'm getting the following error
>> > message which is making builds fail:
>>
>> > C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets
>> > (1728,7): errorMSB4018: The "ResolveKeySource" task failed
>> > unexpectedly. 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. at
>> > Microsoft.Build.Shared.ExceptionHandling.RethrowUnlessFileIO(Exception
>> > e) at Microsoft.Build.Tasks.ResolveKeySource.ResolveAssemblyKey() at
>> > Microsoft.Build.Tasks.ResolveKeySource.Execute() at
>> > Microsoft.Build.BuildEngine.TaskEngine.ExecuteTask(ExecutionMode
>> > howToExecuteTask, Hashtable projectItemsAvailableToTask,
>> > BuildPropertyGroup projectPropertiesAvailableToTask, Boolean&amp;
>> > taskClassWasFound)
>>
>> > Any idea how to stop this?  I don't actually understand why it's
>> > trying to display a modal box, as if I stop the service and run the
>> > CC.NET server as a program, no boxes are displayed and the solution
>> > builds just fine!
>>
>> > Richard
>
>



-- 
It's a wild world that we live in, you step to the vibe like a new
found religion, take your position, compile your vision, futurism,
algorithm has risen up!                                pfm - the western

Reply via email to