Please login or register.

Login with username, password and session length

Author Topic: Error building the sample c# program  (Read 9616 times)

Tomm

  • Newbie
  • Helpful Post Rating: 0
  • Posts: 5
Error building the sample c# program
« 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.
Logged

JefferyS

  • Newbie
  • Helpful Post Rating: 0
  • Posts: 4
Re: Error building the sample c# program
« Reply #1 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
Logged

Tomm

  • Newbie
  • Helpful Post Rating: 0
  • Posts: 5
Re: Error building the sample c# program
« Reply #2 on: November 17, 2010, 09:00:49 AM »

That was it!  Thanks.
Logged
 

X10.com | About X10 | X10 Security Systems | Cameras| Package Deals
© Copyright 2014-2016 X10.com All rights reserved.