Tuesday, March 31, 2009

Strong Name Verification on Windows 2k8 x64

I recently was trying to disable strong name verification on a Windows Server 2008 x64 machine. I ran the standard:
sn.exe -Vr *

which didn't seem to work. It turns out, and I have no idea why. You need set the regkey directly to make this work.

To disable strong name verification for all dlls on a machine (which is a terrible idea in most cases) add:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\StrongName\Verification\*,*]


to the registry.

2 comments:

Khang Yeen said...

Cool. Nice hack. Thank you so much. It worked for me. :)

adam said...

hey brian, it works for me via sn -Vr *, but you need to make sure you run from both the 32 and 64 bit sdk directories. same thing for caspol settings