Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FileLoadException: . . . Strong name signature could not be verified. #516

Closed
CNBoland opened this issue Nov 3, 2019 · 6 comments
Closed
Labels
bug Something isn't working

Comments

@CNBoland
Copy link

CNBoland commented Nov 3, 2019

I'm getting the following exception after upgrading from v2.3.2 to v2.4.0:

[FileLoadException: Could not load file or assembly 'MimeKit' 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)]

Comparing the two version assemblies in ILSpy, the only difference I see is version number, which doesn't explain the exception.

Any ideas?

  • OS: Windows
  • .NET Runtime: .NET CLR 4.0
  • .NET Framework: .NET Framework 4.7.2
  • MimeKit Version: 2.4.0
@jstedfast
Copy link
Owner

Apparently I had <PublicSign Condition=" '$(OS)' != 'Windows_NT' ">true</PublicSign> in the .csproj for the multi-target csproj (which is what is used for net46, net47, net48, netstandard1.3, netstandard1.6, and netstandard2.0).

If you use the net45 version, it will be signed.

@jstedfast jstedfast added the bug Something isn't working label Nov 3, 2019
@jstedfast
Copy link
Owner

In case it wasn't obvious, I didn't use my Windows 10 machine to build these packages.

@swoga
Copy link
Contributor

swoga commented Nov 4, 2019

Is it possible to release a fixed version?
We use net46 and need a fix which shipped in 2.4.0, but our automated build currently fails.

@jstedfast
Copy link
Owner

Yes, I'll try to make a new release tonight.

@swoga
Copy link
Contributor

swoga commented Nov 4, 2019

Same problem could occur in MailKit, when building on non-Windows machine?
https://github.com/jstedfast/MailKit/blob/3c9be505242961dcaf6aafe9cb1cea2df6b02c4c/MailKit/MailKit.NetStandard.csproj#L29

@jstedfast
Copy link
Owner

Yep, I know. I'm planning to make a release of MailKit as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants