Using Azure Custom Vision prediction API to call a published model. but got an error CS0122

261 Views Asked by At

I'm very new to coding and currently trying to call a published image classification model to my C# window form.NET and using this code

https://github.com/alanazure/CustomVisionApiClassification/blob/master/CustomVisionApiClassification.Complete/PredictionConsole.cs

but got an error CS0122 'CustomVisionPredictionClient.CustomVisionPredictionClient(params DelegatingHandler[])' is inaccessible due to its protection level' error...

which I think occurred because there is an update from azure custom vision any way to fix this?

1

There are 1 best solutions below

0
SaiSakethGuduru On

As because custom vision prediction class library is protected is the reason for receiving error

protected CustomVisionPredictionClient (params System.Net.Http.DelegatingHandler[] handlers);

Refer this Microsoft Document for complete information.