Ruslan-B / FFmpeg.AutoGen

FFmpeg auto generated unsafe bindings for C#/.NET and Core (Linux, MacOS and Mono).
GNU Lesser General Public License v3.0
1.37k stars 323 forks source link

Strong name validation failed #296

Closed ispysoftware closed 8 months ago

ispysoftware commented 8 months ago

Note: for support questions, please use stackoverflow or special repository on [github.com](in special repository github.com). This repository's issues are reserved for feature requests and bug reports.

run sn -v FFmpeg.AutoGen.dll

against the nuget dll.

ffmpeg.autogen\6.1.0\lib\netstandard2.0>sn -v FFmpeg.AutoGen.dll

Microsoft (R) .NET Framework Strong Name Utility Version 4.0.30319.0 Copyright (c) Microsoft Corporation. All rights reserved.

Failed to verify assembly -- Strong name validation failed.

Error:Unhandled Exception: System.TypeInitializationException: The type initializer for 'CoreLogic.Statics' threw an exception. ---> System.IO.FileLoadException: Could not load file or assembly 'FFmpeg.AutoGen, Version=6.0.0.2,

Culture=neutral, PublicKeyToken=9b7632533a381715' or one of its dependencies. Strong name validation failed. (Exception from HRESULT: 0x8013141A) ---> System.Security.SecurityException: Strong name validation failed.

(Exception from HRESULT: 0x8013141A)

windows 64

c72578 commented 8 months ago

Duplicate of #279

ispysoftware commented 8 months ago

It's not really a duplicate as strong naming needs to be either working or removed. As it is it's breaking applications.

ispysoftware commented 8 months ago

We're getting reports of this happening several times a day now - any ETA on a fix for it? I think all that needs to happen is remove the delay-sign check on the build.

Ruslan-B commented 8 months ago

If I drop it will it fix the problem? I'll update packages today without strong name.

ispysoftware commented 8 months ago

I think it'll fix my problem - i built from source and removed the strong naming and it passes validation

Ruslan-B commented 8 months ago

Strange it started to occur in first place.

Ruslan-B commented 8 months ago

Okay 6.1.0.1 is on nuget.org

Ruslan-B commented 8 months ago

@ispysoftware can we close it? I think others can use 3rd party nuget packages to re sign to add strong name if needed.