Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Michael21011 opened this issue May 16, 2023 · 1 comment

Comments

@Michael21011
Copy link

Is it possible to use it in Azure Function project?
My project file:
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <TargetFramework>net6.0</TargetFramework> <AzureFunctionsVersion>v4</AzureFunctionsVersion> </PropertyGroup>
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
Copy link

Arextion commented Sep 9, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants