MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.25k stars 21.42k forks source link

Prediction Endpoint API throws error when trying it with .NET C# application. #106043

Closed ShitalFunde closed 1 year ago

ShitalFunde commented 1 year ago

Prediction Endpoint API throws error when I am trying it with .NET C# application. [Enter feedback here]


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ShitalFunde commented 1 year ago

C# Code.txt

This code throws below error for prediction Microsoft.Azure.CognitiveServices.Vision.CustomVision.Prediction.Models.CustomVisionErrorException HResult=0x80131500 Message=Operation returned an invalid status code 'NotFound' Source=Microsoft.Azure.CognitiveServices.Vision.CustomVision.Prediction StackTrace: at Microsoft.Azure.CognitiveServices.Vision.CustomVision.Prediction.CustomVisionPredictionClient.d28.MoveNext() at Microsoft.Azure.CognitiveServices.Vision.CustomVision.Prediction.CustomVisionPredictionClientExtensions.d1.MoveNext() at Microsoft.Azure.CognitiveServices.Vision.CustomVision.Prediction.CustomVisionPredictionClientExtensions.ClassifyImage(ICustomVisionPredictionClient operations, Guid projectId, String publishedName, Stream imageData, String application) at InvoiceExtraction.FrmMain.d__30.MoveNext() in D:\FundManagement_Bank Stmt\Image Classification Model Demo\FrmMain.cs:line 842

This exception was originally thrown at this call stack: [External Code] InvoiceExtraction.FrmMain.btn_ImageClassification_Click(object, System.EventArgs) in FrmMain.cs

AjayBathini-MSFT commented 1 year ago

@ShitalFunde Thanks for your feedback! We will investigate and update as appropriate.

ShitalFunde commented 1 year ago

@AjayBathini-MSFT - let me know if we can connect for this issue. I am unable to resolve this issue , I copied a code as is available in Github and check it also throws the same exception.

RamanathanChinnappan-MSFT commented 1 year ago

@ShitalFunde

Since this issue isn't directly related to improving our docs, and to gain a better understanding of your issue, I'd recommend working closer with our support team via an [Azure support request] (https://docs.microsoft.com/en-us/azure/azure-portal/supportability/how-to-create-azure-support-request). Or you can leverage our Q&A forum by posting your issue there so our community, and MVPs can further assist you in troubleshooting this issue or finding potential workarounds.

[Teams Q&A forum] (https://docs.microsoft.com/en-us/answers/topics/46488/office-teams-windows-itpro.html) for technical questions about the configuration and administration of Microsoft Teams on Windows. [Microsoft Teams Community forum] (https://answers.microsoft.com/en-us/msteams/forum?sort=LastReplyDate&dir=Desc&tab=All&status=all&mod=&modAge=&advFil=&postedAfter=&postedBefore=&threadType=All&isFilterExpanded=false&page=1