Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Disable Strong Name Verification for All .Net assembly?

How to Disable .Net Strong Name Verification for All .Net assembly in system by config .net framework or IIS or project's config?

http://nvea.host56.com/up/726daf2c9ee0.png (click for larger image)

like image 613
user3307548 Avatar asked Feb 13 '14 19:02

user3307548


Video Answer


2 Answers

Try add it in regestry:

OS x32:

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

OS x64:

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

and add it to your Web.config:

<system.web>
   <hostingEnvironment shadowCopyBinAssemblies="false" />
</system.web>
like image 89
user1376723 Avatar answered Oct 03 '22 15:10

user1376723


To disable strong name validation for all assemblies on your machine you can run:

sn.exe -Vr *

from a Developer Command Prompt for VS201*

like image 26
JoshVarty Avatar answered Oct 03 '22 15:10

JoshVarty