Azure.CognitiveServices only working on console app, not on dot.net framework

Vishal Pandey 21 Reputation points
2020-09-14T07:37:34.457+00:00

Trying to use Azure cognitive services.

Microsoft.Azure.CognitiveServices.Vision.ComputerVision.

are these services only for console app?

The function runs when try it on console app (tried both C# & VB), however when trying to run it on windows app get errors. Basically I want to return value after calling an azure service, and use it in windows app.

Same code running on console app, but not returning any value on windows framework app.

gets stuck at below lines. the thread is processed asynchronously with no response

Dim results As DetectResult = Await client.DetectObjectsInStreamAsync(stream)

Dim textHeaders = Await client.ReadInStreamAsync(File.OpenRead(localFile), language:="en"

I don't think there should be any limitation of Azure use only on windows app

API Name Microsoft.Azure.CognitiveServices.Vision.ComputerVision
Working only on console app, not on windows app

Azure Cognitive Services
Azure Cognitive Services
A group of Azure artificial intelligence services and cognitive APIs that help build intelligent apps.
944 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Vishal Pandey 21 Reputation points
    2020-09-20T06:20:48.547+00:00

    Hi!

    Do create a support ticket if possible.
    thanks for your help. I have designed console app in VB.Net and is working fine. Will upload its code on Github to assist others.

    it would be extremely useful for many developers if Azure cognitive services start on framework also.
    We have an engineering college & many students are interested to learn the same http://vitk.vision.org.in/


  2. Vishal Pandey 21 Reputation points
    2020-09-21T06:50:30.077+00:00

    Hi!

    My Subscriber ID:1203964752


  3. Vishal Pandey 21 Reputation points
    2020-09-23T06:34:05.44+00:00

    Hi!
    Subscriptionid 225f052b-cc29-467d-bfd0-8595e2279c6d