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

Notification

Icon
Error

Unable to find sn.exe for signing an instrumented assembly
sferencik
#1 Posted : Thursday, April 4, 2013 1:53:57 PM(UTC)
Rank: Member

Groups: Registered
Joined: 4/4/2013(UTC)
Posts: 16
Location: Czech Republic

Thanks: 4 times
Was thanked: 1 time(s) in 1 post(s)
Some of my projects are strong-signed and I'm getting the following error:

NCrunch: If you are experiencing problems in getting this project to build, have a look at http://www.ncrunch.net/d..._project-build-issues#0
System.ApplicationException: Unable to find sn.exe for signing an instrumented assembly. Please ensure you have the Windows SDK installed - otherwise turn off signing or instrumentation
at #=q1ngaUkxJTok1Yt1TVJRpJM_yN$pNtGNAoW$i9vpYU7H3YJIbHABMmmzKpNImKEci.#=qJRi_sOB$EOzf7LJZXkrwQZ33OSlyozGP9IlCd2NSV5g=()
at #=q1ngaUkxJTok1Yt1TVJRpJM_yN$pNtGNAoW$i9vpYU7H3YJIbHABMmmzKpNImKEci.#=qWnSQpUNnG43OTW6ovDtCuWNoGmIQO8vQtOHn55sQN4I=(String #=q3LVsfxUwtMDhUz8aOT92vqHKCxIexpG4flKijiAymWg=, String #=qPUGN2z5qlC8wc9Qm2K1WKg==)
at nCrunch.Compiler.RemoteBuildRunner.#=qc19uOgHz4bbS00fHoJcJ86FdDfZxNpBz6hs6SLcoDgg=(ComponentBuildParameters #=qmVSC1mocuqkeMyG6RiWA7A==, String #=q6HotKBtAzAJ5NhAIJpJMWErw8$oIjiUT0yL0fTvBG1s=, BuildOutput #=qeo8ShH4FE1FNzdVk_FG0_g==, String #=qRmPlD1GldENhQyyoQ5tYKKyaUsmzaLiSqv0FdoKZIHA=, String[] #=qftBQ99WoQMP8nKBadgDENHqcE_v2YLLk_k2_mOUUIoM=)
at nCrunch.Compiler.RemoteBuildRunner.Build(ComponentBuildParameters parameters)

I do have the SDK installed, and I have C:\Program Files (x86)\Microsoft Visual Studio 8\SDK\v2.0\Bin\sn.exe. Both VS and MSBuild manage to produce the strong-signed assemblies. What must I do to make NCrunch find the SDK?

EDIT: I've added C:\Program Files (x86)\Microsoft Visual Studio 8\SDK\v2.0\Bin to %PATH% (and restarted both VS and nCrunch.BuildHost.x86.exe) but the issue persists.

Thanks,
Sam
Remco
#2 Posted : Thursday, April 4, 2013 10:10:32 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,976

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
Hi Sam,

It looks as though there's a hole in NCrunch's sn.exe resolution that doesn't cater for the configuration on your dev machine. Right now NCrunch looks in the following registry locations, checking for an 'InstallationFolder' value at:

HKEY_LOCAL_MACHINE\Software\Microsoft\Microsoft SDKs\Windows\v8.0
HKEY_LOCAL_MACHINE\Software\Microsoft\Microsoft SDKs\Windows\v8.0A
HKEY_LOCAL_MACHINE\Software\Microsoft\Microsoft SDKs\Windows\v7.1
HKEY_LOCAL_MACHINE\Software\Microsoft\Microsoft SDKs\Windows\v7.0A
HKEY_LOCAL_MACHINE\Software\Microsoft\Microsoft SDKs\Windows\v6.0A

.. Which points to a directory under where sn.exe can be found under the 'bin' subdirectory.

Is it possible that you have a different version of the SDK installed that NCrunch isn't aware of? If you can find a reg key similar to the above and provide me with the name, I'll add it to the resolution list for the next version of NCrunch. A workaround to the problem could be to manually add a registry key under one of the above paths that will point to your "C:\Program Files (x86)\Microsoft Visual Studio 8\SDK\v2.0" directory.
1 user thanked Remco for this useful post.
sferencik on 4/10/2013(UTC)
sferencik
#3 Posted : Wednesday, April 10, 2013 1:22:05 PM(UTC)
Rank: Member

Groups: Registered
Joined: 4/4/2013(UTC)
Posts: 16
Location: Czech Republic

Thanks: 4 times
Was thanked: 1 time(s) in 1 post(s)
Hi Remco,

Thanks for the reply. It did help.

I have the following registry keys:
A) HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v7.0
B) HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\Windows\v7.0
C) HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\Windows\v6.0A

A and B have the same contents but are not checked by NCrunch. Perhaps you should add v7.0 to your list.

C contains the path to a stale SDK installation - which would explain why it's not helping NCrunch.

Also, I wonder if NCrunch handles the Wow6432 hive (where B, C are). Probably so; just checking.

Thanks a lot.

Sam
Remco
#4 Posted : Thursday, April 11, 2013 11:11:54 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,976

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
Thanks Sam. I'll make sure the v7.0 is added to the list. NCrunch does also check for Wow6432Node, so I'm fairly certain the problem is just caused by the missed support for this particular version. Did adding one of the other registry keys allow you to work around the problem?
sferencik
#5 Posted : Friday, April 12, 2013 1:56:25 PM(UTC)
Rank: Member

Groups: Registered
Joined: 4/4/2013(UTC)
Posts: 16
Location: Czech Republic

Thanks: 4 times
Was thanked: 1 time(s) in 1 post(s)
Yes, it did help.

I copied HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\Windows\v7.0\InstallationFolder (which contains the correct path to the SDK but is being ignored by NCrunch) to HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\Windows\v7.0A\InstallationFolder. That did the trick.

That also confirms that Wow6432Node is used properly.

Thanks,
Sam

(BTW: does this forum send email notifications? I don't seem to be receiving them though I'm watching this topic.)
Remco
#6 Posted : Saturday, April 13, 2013 9:09:16 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,976

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
Hi Sam,

That's great to hear. I'll see that the fix goes in with the next minor release.

Normally this forum should send notifications from forum@ncrunch.net, although you aren't the first to mention this problem - I wonder if the feature or infrastructure is having issues of some kind.


Cheers,

Remco
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.043 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download