401 Unauthorized when Requesting an Access Token

I do not have any .NET examples. But I am guessing the problem is how you are communicating in getting the token.

I posted something the other week in PHP which uses a Form (GET) to Authorize and cURL (POST) to get the tokens.

Hopefully that gives you some guidance.