Facing an issue while processing OCR in .net Core


#1


HResult=0x80131500
Message=Resource file is not correct.
Source=Aspose.OCR
StackTrace:
at ​ .(Stream )
at Aspose.OCR.LanguageFactory.Load(Stream stream)
at Aspose.OCR.LanguageContainer.()
at Aspose.OCR.LanguageContainer…ctor()
at Aspose.OCR.OcrEngine…ctor()
at OCRDemoWeb.PerformingandManagingOCR.ExtractingText.Run() in \PerformingandManagingOCR\ExtractingText.cs:line 230
at Microsoft.Extensions.Internal.ObjectMethodExecutor.Execute(Object target, Object[] parameters)
at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.d__12.MoveNext()

Inner Exception 1:
TypeInitializationException: The type initializer for ' ’ threw an exception.

Inner Exception 2:
ArgumentException: ‘IBM437’ is not a supported encoding name. For information on defining a custom encoding, see the documentation for the Encoding.RegisterProvider method.


#2

@cunaik,

.NET Core is not supported by Aspose.OCR for .NET. We recommend migrating to Aspose.OCR for Cloud which supports almost all languages and platforms including .NET Core. Please visit https://www.aspose.cloud/ for more details.