KevM / tikaondotnet

Use the Java Tika text extraction library on the .NET platform
http://kevm.github.io/tikaondotnet/
Apache License 2.0
195 stars 73 forks source link

Could not load type 'System.Reflection.Emit.MethodToken' from assembly mscorlib #156

Open Michael21011 opened 1 year ago

Michael21011 commented 1 year ago

Is it possible to use it in Azure Function project? My project file: `

net6.0 v4

` image

Exception: TikaOnDotNet.TextExtraction: Extraction failed. IKVM.OpenJDK.Util: The type initializer for 'java.nio.charset.StandardCharsets' threw an exception. IKVM.Runtime: Could not load type 'System.Reflection.Emit.MethodToken' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.

Arextion commented 12 months ago

I have the same problem, trying to use TikaOnDotNet in a NET 6 project. I suspect the error is caused by the System.Reflection.Emit.MethodToken type does not exist in NET 6 og .Net Core, only in .Net Framework.