Let me appologize in advance if this issue does not belong here. I want to use the YouTube Data API in my website and have ownloaded the YouTubeSample app for .Net. I build it in VS2008 and when I run it, I get to the test page and click on the Google Login. The next page then asks me whether or not I trust my localhost, to which I respond 'Allow'. Next, it asks me for my Google username/password which I provide and get authenticated. However, the next page gives me the following 401 authorization error:
Actual Results:
Server Error in '/YouTubeSample' Application.
________________________________________
The remote server returned an error: (401) Unauthorized.
[WebException: The remote server returned an error: (401) Unauthorized.]
System.Net.HttpWebRequest.GetResponse() +5373789
Google.GData.Client.GDataRequest.Execute() +129
Expected output:
I think I am suppose to see a list of videos (at least is what it looks like from the debugger).
This is probably some configuration error but I couldn't find any documentation on how to handle this issue and I've spent two days already since I downloaded/installed the Google Data API and YouTubeSample, without any success so far.
It seems like I am being authenticated correctly but the access token that I am getting back does not authorize me to access YouTube.
Thanks in advance,
You received this message because you are subscribed to the Google Groups "YouTube APIs Developer Forum" group.
To view this discussion on the web visit https://groups.google.com/d/msg/youtube-api-gdata/-/XW3yQqyFzTMJ.
To post to this group, send email to youtube-api-gdata@googlegroups.com.
To unsubscribe from this group, send email to youtube-api-gdata+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/youtube-api-gdata?hl=en.
No comments:
Post a Comment