MethodNotFound exception after installing SixLaborsImageSharp

0
a3koopman posted this 12 May 2020

I have a working .NET Core 3.1 Webservice, but recently I added a reference to SixLabors.ImageSharp in order to do some image processing.
This results in a System.MethodNotFound exception when the method DoCentric.Documents.Reporting.DocumentGenerator.GenerateDocument is called Exception message is "Method not found: 'SixLabors.ImageSharp.MetaData.ImageMetaData SixLabors.ImageSharp.Image`1.get_MetaData()'"
It appears that Docentric.Documents.dll (version 6.0.28.1481) has a reference to SixLabors.ImageSharp.dll (version 1.0.0-beta0006) whereas SixLabors.ImageSharp.dll, as installed by NuGet is version 1.0.0-rc0001

2 Posts
2 Points
1 Comments
Order By: Standard | Newest | Votes
0
jles posted this 13 May 2020

Hi,

The version you are using is still a pre-release version. You will need to reference the same ImageSharp version (1.0.0-beta0006) that Docentric Toolkit uses in order for everything work correctly. Can you do this?

All public/final releases have ImageSharp assembly (version 1.0.0-beta0006) embedded, but the same rule applies.

Regards, Jure

155 Posts
295 Points

Our 229040 members have posted 345 times in 102 discussions