X10 Community Forum

🖥️ActiveHome Pro => SDK => Topic started by: Tomm on November 16, 2010, 05:41:43 PM

Title: Error building the sample c# program
Post by: Tomm on November 16, 2010, 05:41:43 PM
I get the following error when I try to build the sample c# application.

Error   1   The "ResolveKeySource" task failed unexpectedly.
System.Security.Cryptography.CryptographicException: Cannot find the requested object.

   at System.Security.Cryptography.X509Certificates.X509Certificate2.QueryCertFileType(String fileName)
   at System.Security.Cryptography.X509Certificates.X509Certificate2.GetCertContentType(String fileName)
   at Microsoft.Build.Tasks.ResolveKeySource.ResolveManifestKey()
   at Microsoft.Build.Tasks.ResolveKeySource.Execute()
   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
   at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask, Boolean& taskResult)   ActiveScript

I have a Windows 7 64 bit computer.
Visual Studio 2010.
ActiveHome Pro version 3.285 is installed and registered.
AH SDK is installed.
I updated the reference for ActiveHomeScriptLib so it's correct.

Has anyone else run into this issue?  Is there a solution?  Thanks in advance for your help.
Title: Re: Error building the sample c# program
Post by: JefferyS on November 16, 2010, 11:05:35 PM
From what I've found on the web it has to do with the ClickOnce. If you go into the ActiveScript properties, on the Signing tab, uncheck "Sign the ClickOnce manifests".

Do a ctrl-s to save then try to build it.

That stopped the errors for me.

Jeff
Title: Re: Error building the sample c# program
Post by: Tomm on November 17, 2010, 09:00:49 AM
That was it!  Thanks.