Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Issues With Signed Assemblies
Sohnee
#1 Posted : Wednesday, December 7, 2011 3:03:07 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 12/7/2011(UTC)
Posts: 2
Location: UK

Hi,

I have encountered an issue running NCrunch on signed assemblies. I get the following error:

c:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets (1558): The KeyContainer path 'VS_KEY_84FCC2509FDD8EE0' is invalid. KeyContainer must point to an existing file.

I have encountered this problem in the past and have solved it either by creating a dummy file with the correct name or by registering the key using:

"C:\Program Files (x86)\Microsoft Visual Studio 8\SDK\v2.0\Bin\sn" -i C:\Source\AssemblyName\AssemblyName.pfx VS_KEY_84FCC2509FDD8EE0

I have done both of these steps but still get the error.

If anyone has any suggestions I would really appreciate it.

Thanks
Sohnee
#2 Posted : Wednesday, December 7, 2011 3:28:00 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 12/7/2011(UTC)
Posts: 2
Location: UK

SOLUTION

The issue here is that the files aren't copied to the NCrunch build location if they aren't included in the project - so by including the dummy files in the project they get pulled over to the NCrunch build location and this issue is then fixed.
Remco
#3 Posted : Wednesday, December 7, 2011 9:15:13 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,045

Thanks: 941 times
Was thanked: 1265 time(s) in 1177 post(s)
Good find. Sometimes when files get copied the build output can throw some fairly obscure errors. It's often worth right clicking on the failed build in the tests view and browsing through the workspace to ensure it contains all the files needed for your build.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.034 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download