I'm facing issue An unhandled exception of type 'System.IO.FileLoadException' occurred in Unknown Module. Could not load file or assembly 'ServiceName, Version=0.0.0.0, Culture=neutral, PublicKeyToken=5bfb54a682cb6e6d' or one of its dependencies. Strong name validation failed. (Exception from HRESULT: 0x8013141A)
. I've tried many ways like below
"C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8.1 Tools\x64\sn.exe" -Vr C:\Code\cfc\bin\ServiceName.dll
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\StrongName\Verification\ServiceName,5bfb54a682cb6e6d]
Sn -Vr * in VS Commandprompt
All these tries were failed. Kindkly help me to solve this issue. struggling since 2 days. Thanks in Advance!!
Thanks! @wenbingeng-MSFET
to find sn.exe
just ran c:\Program Files(x86)>dir /s sn.exe
. It will gives list sn
's. And went to the respective directories then executed sn -Vr *,5bfb54a682cb6e6d
. In my case I've two sn.exe
's. It fixed my issue.