Strong Name Validation Failed

2020-02-04 06:41发布

Two machines. Both with .NET 3.5 and the VS 2008 VC++ SP1 redistributables

A single exe which uses two signed DLLs, one in C++/CLI and one in C#

The exe loads and runs fine on one machine.

On the other, I get "Strong Name Validation Failed" on the C++ executable (HRESULT 0x8013141A)

Any ideas?

12条回答
Evening l夕情丶
2楼-- · 2020-02-04 07:15

Right-click on Project → Properties → Build tab → Platform Target → Select "x64"

查看更多
狗以群分
3楼-- · 2020-02-04 07:17

You might be able to bypass this on development by going into the project settings -> Signing -> and unchecking "Sign the assembly".

I ran into this today while debugging against a source code copy of the Entity Framework.

查看更多
家丑人穷心不美
4楼-- · 2020-02-04 07:18

I fixed this by going to the Build menu (top pane) and say "Rebuild xxxProject.plugin" for that specific project only, contrary to building the entire solution.

查看更多
我只想做你的唯一
5楼-- · 2020-02-04 07:23

I am working with VS.Net Ultimate 2012

and this solution helped me:

Right click on Project-> properties-> Build Tab-> switch Generate serialization assembly to off-> done

查看更多
再贱就再见
6楼-- · 2020-02-04 07:24

You must use the 64-bit version of sn.exe on a 64-bit machine. (C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin\x64\sn.exe)

查看更多
一夜七次
7楼-- · 2020-02-04 07:25

Open the command prompt as administrator and enter following commands:

reg DELETE "HKLM\Software\Microsoft\StrongName\Verification" /f
reg ADD "HKLM\Software\Microsoft\StrongName\Verification\*,*" /f
reg DELETE "HKLM\Software\Wow6432Node\Microsoft\StrongName\Verification" /f
reg ADD "HKLM\Software\Wow6432Node\Microsoft\StrongName\Verification\*,*" /f
查看更多
登录 后发表回答