英文:
Error: Strong name validation failed for application
问题
我面临的问题是System.IO.FileLoadException
类型的未处理异常发生在未知模块中。无法加载文件或程序集ServiceName, Version=0.0.0.0, Culture=neutral, PublicKeyToken=5bfb54a682cb6e6d
或其依赖项之一。强名称验证失败(HRESULT: 0x8013141A异常)。我尝试了许多方法,如下所示:
"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]
- 在VS命令提示符中运行
Sn -Vr *
所有这些尝试都失败了。请帮助我解决这个问题。我已经挣扎了两天。提前感谢!
英文:
I'm facing issue An unhandled exception of type 'System.IO.FileLoadException' occurred in Unknown Module.
. I've tried many ways like below
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)
"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!!
答案1
得分: 0
感谢!@wenbingeng-MSFET
要找到 sn.exe
,只需运行 c:\Program Files(x86)>dir /s sn.exe
。它将提供 sn
的列表。然后转到相应的目录,然后执行 sn -Vr *,5bfb54a682cb6e6d
。在我的情况下,我有两个 sn.exe
。这解决了我的问题。
英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论