Friday, October 4, 2013

Disable strong name validation in registry or skipping registered assemblies for verification

Tried to install a assembly .exe file as a windows service through installUtil.exe tool then I got the following error:



Then I tried to verify the assembly and it shows the assembly is delay-signed which figured out the reason of previous error:
sn -v assemblyName.exe

To drop the assembly from verification I could run the following command: sn -Vr *,c3692091f38d16a2

Alternative solution is to disable strong name validation by changing registry by adding a new key as "*,*" under the following one:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\StrongName\Verification



Caution: (Check here) "Use this option only during development. Adding an assembly to the skip verification list creates a security vulnerability. A malicious assembly could use the fully specified assembly name (assembly name, version, culture, and public key token) of the assembly added to the skip verification list to fake its identity. This would allow the malicious assembly to also skip verification."

Share/Bookmark