Object reference not set to an instance of an object
<p>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.</p>

<p>The "bad" code is this: request.AddComment(v, c); </p>

<p>Also, I don't know what a stack trace is.</p>

<p>Thanks for all your help in advance.</p>

<p>Here is my code:</p>

<pre><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&lt;Video&gt;(uri);
Comment c = new Comment();
c.Content = "asdf";
request.AddComment(v, c);
</code></pre>
