Just trying to get OCR set up, and am receiving an error when running AsposeOcr.RecognizeImage() using a MemoryStream.
Exception:System.TypeInitializationException: 'The type initializer for ‘ ’ threw an exception.’
Inner Exception 1: TypeInitializationException: The type initializer for ‘Microsoft.ML.OnnxRuntime.NativeMethods’ threw an exception.
Inner Exception 2: EntryPointNotFoundException: Unable to find an entry point named ‘OrtGetApiBase’ in DLL ‘onnxruntime’.
App is .Net 4.7.2, and I installed the Microsoft.ML.onnxRuntime NuGet package, but that made no difference.
Image with code and exception
image.png (16.9 KB)