Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

C# C# Streams and Data Processing Streaming Data on the Net Text Analytics API Part 2

Radu - Adrian Buha
PLUS
Radu - Adrian Buha
Courses Plus Student 5,535 Points

System.Net.WebException: 'The remote server returned an error: (401) Unauthorized.'

Can anyone can tell me how to get an API key that works? I don't have a VISA card or an MasterCard, I only have Maestro, and apparently Maestro is not supported by Azure verification. I live in Germany by the way...

Many thanks in advance.

2 Answers

Hi Ardian,

I faced the same problem as you (live in Germany, no Visa -> no Azure verification) but you can try the free plan of Azure which only requires a Microsoft - account. But pay attention that this plan is very limited and does not include cognitive services (text analysis).

Hi, did you manage to get it working? I'm facing the same problem right now. Even though I'm using the free plan for the API.

I'm quite sure it's not about the code since the result is the same with Postman application.

Radu - Adrian Buha
Radu - Adrian Buha
Courses Plus Student 5,535 Points

Nope. I just gave up and went further. I don't think that you can make it work. At least not until I'll get a VISA Credit card. It would be great if they would accept PayPal as payment method though...

I see... that's a shame. Ok, thank you.