Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do completely disable signed assemblies?

I have a VS.NET 2010 solution with several projects. I just added a new library project (the.library.assembly). The startup project is a website. When I run the website, I get this error:

Could not load file or assembly 'the.library.assembly' 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)

Where does this come from? I haven't been using signed assemblies with other projects and they work fine.

--- EDIT ---

Actually, I did find that the.library.assembly was signed. This was related to trouble shooting the signed issue. I have unchecked that in project properties and gone through all projects in the solution. None are signed. I get the build error now:

Assembly generation failed -- Referenced assembly 'the.library.assembly' does not have a strong name.

I thought maybe this was related to a WCF service the.library.assembly was referencing. I removed the service and related code. Everything built fine. I added the service back. Another good build. I added service related code back to the.library.assembly. Still builds. Then I added the.library.assembly calls into the web app. That's when I get the above build failure.

like image 281
4thSpace Avatar asked Feb 17 '26 03:02

4thSpace


1 Answers

I found entries referencing signing in the web app's AssemblyInfo.cs. Commenting those out allowed the solution to build.

like image 132
4thSpace Avatar answered Feb 19 '26 17:02

4thSpace



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!