Skip to content

Could not load file or assembly 'AutoMapper' or one of its dependencies. Strong name signature could not be verified. #4545

@arex388

Description

@arex388

Since I saw that you're targeting .NET Standard 2.0 again, I thought I could finally upgrade from v10.1.1 on my ASP.NET MVC 5 project on .NET Framework 4.8. While the project does build without any complaints, when I try to run the app locally via IIS, I get the following exception:

Warning

Could not load file or assembly 'AutoMapper' 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 thought it was the binding redirects, but they should be fine:

<dependentAssembly>
	<assemblyIdentity name="AutoMapper" publicKeyToken="be96cd2c38ef1005" culture="neutral" />
	<bindingRedirect oldVersion="0.0.0.0-15.0.0.0" newVersion="15.0.0.0" />
</dependentAssembly>

The IIS AppPool does target .NET v4.0. Is there something else I need to be doing or is this an issue with how the NuGet package was deployed?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions