"Operation returned an invalid status code 'Forbidden'", how can I solved it?
Hello, I am learning how to use the Face API to be able to do a facial recognition project. I started practicing with the example provided by Microsoft in the following link https://learn.microsoft.com/es-es/azure/ai-services/computer-vision/quickstarts-sdk/identity-client-library?tabs=windows %2Cvisual-studio&pivots=programming-language-csharp, when I run the console I get the following error:
This error had already appeared to me before and when researching about it, on various pages they mentioned that this error is due to the fact that you need to request permission from Microsoft so that they can manage your access to the API. I already applied for it and it was accepted, so I tried the program again but the error keeps appearing, how can I fix it? The code is exactly the same except for these two variables:
The image above is the original code, but when I copied it into the program an error appeared in the constant variables and I had to place my key and endpoint visibly in the code.