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?

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,288 questions
Azure AI Document Intelligence
Azure AI Document Intelligence
An Azure service that turns documents into usable data. Previously known as Azure Form Recognizer.
1,405 questions
{count} 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.