I've searched through many threads and websites looking for this problem. So far, I haven't been able to find anything wrong with this code.
The "bad" code is this: request.AddComment(v, c);
Also, I don't know what a stack trace is.
Thanks for all your help in advance.
Here is my code:
string devkey = "1"; string username = "2"; string password = "3"; YouTubeRequestSettings a = new YouTubeRequestSettings("test", devkey, username, password); YouTubeRequest request = new YouTubeRequest(a); Uri uri = new Uri("b"); Video v = request.Retrieve<Video>(uri); Comment c = new Comment(); c.Content = "asdf"; request.AddComment(v, c);
Video v = request.Retrieve<Video>(uri);v stays null and on linerequest.AddComment(v, c);the exception is thrown. Can you check that?