Closed andystroz closed 5 years ago
Hmm. This is likely due to that needing to be an explicit reference in .Net Core. Try adding that nuget reference to your project.
https://www.nuget.org/packages/System.Configuration.ConfigurationManager/
Do let me know if you get this working on .Net core. I'd love to see if IKVM works for your application.
Hello Kevin, I really wish this worked on dotnet core!
I have azure function project on core 3.1 and hit the same issue, basically this inner exception when trying to call any of the Extract() methods. And yes I tried them all :)
The type initializer for 'java.lang.Props' threw an exception.
" at java.lang.System.get_props()\r\n at java.lang.System.getProperty(String key)\r\n at org.apache.tika.config.TikaConfig..ctor()\r\n at org.apache.tika.config.TikaConfig.getDefaultConfig()\r\n at org.apache.tika.parser.AutoDetectParser..ctor()\r\n at TikaOnDotNet.TextExtraction.Stream.StreamTextExtractor.Extract(Func`2 streamFactory, Stream outputStream)"
Tried adding System.Configuration.ConfigurationManager as per your advice but no change.
it's a great project, and as a 20 years java developer with 5 recent years in c# i can see the benefit of this project. tika is great and comprehensive.
Anything I can do to help?
Happy to contribute to this wonderful project and keep it alive.
Andy
Using this code
I am getting the following errors:
and
I am using .NET Core 2.1 in C#.