How to use form recognizer in asp.net MVC (.net frame work 4.6.2)

建瑋 潘 11 Reputation points
2022-02-14T09:47:03.273+00:00

Code:
FormPageCollection formPages = await recognizerClient
.StartRecognizeContentAsync(stream)
.WaitForCompletionAsync();

Question:
When I use this piece of code from console application(.net frame work 4.6.2), it successfully responded.
But if I use this piece of code from .net MVC, it doesn't respond.
Does form recognizer not support web version?

Azure Form Recognizer
Azure Form Recognizer
An Azure service that applies machine learning to extract text, key/value pairs, tables, and structures from documents.
695 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
743 questions
1 vote

1 answer

Sort by: Most helpful
  1. 建瑋 潘 11 Reputation points
    2022-02-15T06:41:12.54+00:00

    In fact my controller forgot to use async Task<ActionResult>, the problem is solved

    1 person found this answer helpful.