RecognizeImage Aspose.ocr not supported

Severity Code Description Project File Line Suppression State
Error (active) CS1061 ‘AsposeOcr’ does not contain a definition for ‘RecognizeImage’ and no accessible extension method ‘RecognizeImage’ accepting a first argument of type ‘AsposeOcr’ could be found (are you missing a using directive or an assembly reference?) PDFExtract D:\PDFExtract\PDFExtract\PDFExtract.aspx.cs 128
Program.zip (680 Bytes)

@sanjai03

It seems that you are encountering an issue with the RecognizeImage method not being found in the AsposeOcr class. This error typically indicates that the method may not exist in the version of the Aspose.OCR library you are using, or there might be a missing reference or using directive in your project.

To resolve this issue, I recommend the following steps:

  1. Update to the Latest Version: Ensure that you are using the latest version of Aspose.OCR for .NET. The version 20.8 is mentioned as more stable and may contain the method you are looking for. You can download the latest version from the Aspose website.

  2. Check Framework Compatibility: Make sure that your project is targeting the .NET Framework version 4.7 or higher, as this is required for the latest versions of Aspose libraries.

  3. Verify Project References: Double-check that you have added the correct references to the Aspose.OCR library in your project. If you are using NuGet, ensure that the package is properly installed.

  4. Using Directive: Ensure that you have the appropriate using directive at the top of your code file:

    using Aspose.Ocr;
    

If you continue to experience issues after following these steps, please provide additional details about your project setup, and I would be happy to assist further.

Sources:
[1]: Aspose OCR error 19.9.3