Strong name signature could not be verified - strongname

I am deploying ASP.Net MVC 3 application on Windows 2008 R2 server. I published the application from Visual Studio 2010 using File System. I have two assemblies that have delay signed and have valid snk file. The deployment was done using xcopy as it is internal application.
But there were some solution related changes after some time. I renamed the two assemblies but have not changed snk files. Now after deployment, I am getting following error -
Could not load file or assembly MyApplication or one of its dependencies. Strong name signature could not be verified. The assembly may have been tampered with, or it was delay signed but not fully signed with the correct private key. (Exception from HRESULT: 0x80131045)
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IO.FileLoadException: Could not load file or assembly My doneApplication' or one of its dependencies. Strong name signature could not be verified. The assembly may have been tampered with, or it was delay signed but not fully signed with the correct private key. (Exception from HRESULT: 0x80131045)
Can somebody help me to sort this issue?

I am basically a Winforms guy and learning Web in my office. Recently I ran into same problem but got it resolved. I noticed, in my case I did not have Windows SDK for Windows 7 and .NET Framework 4 installed on my machine. Try installing this and restart system.
You need to verify your assembly using sn.exe. Open command prompt in admin mode
sn.exe -Vr publicTokenNumber
The above will verify the delay signed assembly. Sn.exe can be found in C:\Program Files\Microsoft SDKs\Windows\v6.1\bin and C:\Program Files\Microsoft SDKs\Windows\v6.1\bin\x64 path. Try to run both the exe files and verify your assembly. I have given a similar answer here. You can also refer that.
Hope it helps.

Related

Publish Devexpress dll

error
"Could not load file or assembly 'DevExpress.Data.v19.1' or one of its dependencies. Strong name signature could not be verified. The assembly may have been tampered with, or it was delay signed but not fully signed with the correct private key. (Exception from HRESULT: 0x80131045)"
when publish my project on ftp server in vs2019
Good ol' DX-dependency hell... Key-takeaway from your error-message is "...OR one of its dependencies". Somehow certain DX-assemblies have implict references to other DX-assemblies. Result is the exact situation you encounter: in your dev-environment everything runs fine until you deploy your app to a machine where DevExpress is NOT installed and sh** hits the fan. Check out the Devexpress Assembly Deployment Tool that comes with the Installer - it should solve your problem.
are you sure, you also published the DevExpress dlls to the ftp server and no file is missing.

Security Exception with SelectPdf .net

I have unloaded the version free Community Edition from
http://selectpdf.com/html-to-pdf/demo/
Because I wanted to use the example that turned a page html into pdf.
In visual studio I have succeeded in using the file asp.net but when I put it online I receive this error:
Security Exception
Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.
Exception Details: System.Security.SecurityException: That assembly does not allow partially trusted callers.
I have loaded the files on three different servers.
Azure, Aruba and Godaddy, but do I always receive the same error, as I can resolve?
http://pdf.cyberkings.fr/html-to-pdf-converter.aspx
http://www.numero-telefono.it/html-to-pdf-converter.aspx
Thanks
Conversion failure. Could not find 'Select.Html.dep'.
Description: An unhandled exception occurred during the execution of the current web request
When installing Select.HtmlToPdf from NuGET, the installation copies the dependancy file Select.Html.dep to the bin. When you build, a copy gets placed in the /bin beside Select.HtmlToPdf.dll.
However, when deploying your application, the dependency file does not get copied automatically.
You need to copy Select.Html.dep manually.
See the SelectPdf Html To Pdf Converter for .NET deployment documentation.

ASP.NET Website is not longer working after the latest Windows Updates

Our ASP.NET website uses some external assemblies like AjaxControlToolkit.dll, AjaxMin.dll, DocumentFormat.OpenXml.dll and some more.
They are registered in the References-Node. All worked fine, but after the latest windows Update, I got the following error:
Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. Strong name signature could not be verified. The assembly may have been tampered with, or it was delay signed but not fully signed with the correct private key. (Exception from HRESULT: 0x80131045)
If I check the AjaxControlToolkit.dll with the tool sn.exe, it shows, the dll is valid. I have also tried to compile the AjaxControlToolkit with the source code. I have signed it with a strong name and the sn.exe has shown valid. I have tried to install ist to the global assembly cache with the gacutil.exe, but this fail although with the same problem, it has a problem with the strong name, also i have self compiled and signed and so on.
But it is not the problem, because, if i remove the AjaxControlToolkit.dll from the bin folder of the website, running in iis, then, the next dll creates the same error, the AjaxMin.dll could not be loaded.
If I remove the AjaxMin.dll, the DocumentFormatOpenXml.dll created the same error.
We are using Visual Studo 2010 and we have hosted our website in Windows Server 2008 R2.
Kind regards
I was able to resolve this by redownloading the binaries from CodePlex.
http://ajaxcontroltoolkit.codeplex.com/downloads/get/116533

Could not load file or assembly 'Telerik.Web.UI' or one of its dependencies. Strong name signature could not be verified

Today, when I opened my ASP.net project in Visual Studio 2010 with Telerik ASP.net Ajax 2013 Q2 installed on it, I realized that when running, it gives a server error, with this error info:
Could not load file or assembly 'Telerik.Web.UI' or one of its
dependencies. Strong name signature could not be verified. The
assembly may have been tampered with, or it was delay signed but not
fully signed with the correct private key. (Exception from HRESULT:
0x80131045)
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.
Exception Details: System.IO.FileLoadException: Could not load file or
assembly 'Telerik.Web.UI' or one of its dependencies. Strong name
signature could not be verified. The assembly may have been tampered
with, or it was delay signed but not fully signed with the correct
private key. (Exception from HRESULT: 0x80131045)
I tried deleting ASP.net temporary files in Windows folder but it didn't help. Can you please tell me how can I resolve this issue?
The solution as I found is to remove all references to that assembly and adding it again to the project.

Facebook C# SDK installation from Nuget not working

Coding Platform: ASP.NET WebForms4.0 VB
Installed Facebook and FacebookWeb and when I run the application. I get this error
Could not load file or assembly
'Facebook.Contracts, Version=5.0.25.0,
Culture=neutral,
PublicKeyToken=58cb4f2111d1e6de' or
one of its dependencies. Strong name
signature could not be verified. The
assembly may have been tampered with,
or it was delay signed but not fully
signed with the correct private key.
(Exception from HRESULT: 0x80131045)
What could be wrong?
Removed the Facebook.Contracts.dll and Facebook.Web.Contracts.dll.
Working fine now.

Resources