onizet / html2openxml

Html2OpenXml is a small .Net library that convert simple or advanced HTML to plain OpenXml components. This program has started in 2009, initially to convert user's comments from SharePoint to Word.
MIT License
297 stars 106 forks source link

Could not load file or assembly 'HtmlToOpenXml, Version=2.4.0.0, Culture=neutral, PublicKeyToken=6ad79d83e2b60e63' 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) #138

Closed tomas-net closed 5 months ago

tomas-net commented 5 months ago

When installing the latest nuget package into ASP.NET WebForms project (targeting .NET Framework 4.8) I am getting this error:

Could not load file or assembly 'HtmlToOpenXml, Version=2.4.0.0, Culture=neutral, PublicKeyToken=6ad79d83e2b60e63' 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)

NickHodgeBB commented 5 months ago

Had the same error when building a ASP.NET MVC Solution.

IanMacro commented 5 months ago

I've also got the same issue, and had to downgrade to v2.3.0.

onizet commented 5 months ago

I'm working on MacOS and it seems building .Net Framework 4.x DLL doesn't work well. I will remove the support for that framework as you could reference the NetStandard 2.0 version.

tomas-net commented 5 months ago

@onizet Thank you for fast response, but problem still exists

Could not load file or assembly 'HtmlToOpenXml, Version=2.4.1.0, Culture=neutral, PublicKeyToken=6ad79d83e2b60e63' 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)