Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7934887
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T21:45:35+00:00 2026-06-03T21:45:35+00:00

I am running a c# web app that includes the ability to upload video

  • 0

I am running a c# web app that includes the ability to upload video to youtube. I am using the gdata library for .NET. However, when I hit this line in my upload video code (in the function that generates my authenticated request)

YouTubeRequest req = new YouTubeRequest(sett);

I get an Null Reference Exception, the full function that creates my request is as follows:

public YouTubeRequest getReq()
{
        YouTubeRequestSettings sett = new YouTubeRequestSettings("Video-Postcard", devKey, consumerKey, consumerSecret, token, tokenSecret, "default", "video-postcard.com");
        YouTubeRequest req = new YouTubeRequest(sett);
        AsymmetricAlgorithm pk = getRsaKey();
        GAuthSubRequestFactory facto = new GAuthSubRequestFactory("youtube", "Video-Postcard");
        facto.PrivateKey = pk;
        facto.Token = token;
        req.Service.RequestFactory = (IGDataRequestFactory)facto;
        ((GDataRequestFactory)req.Service.RequestFactory).KeepAlive = false;
        ((GDataRequestFactory)req.Service.RequestFactory).Timeout = 360000;
        return req;
}

I use this same piece of code to generate the requests for a different part of my app that searches youtube, but when I am uploading a video, I get the exception. I have been messing with this for 2 days now with no changes, any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T21:45:36+00:00Added an answer on June 3, 2026 at 9:45 pm

    Are devKey, consumerKey, consumerSecret, token and tokenSecret all non-null when you instantiate the YouTubeRequestSettings object?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i'm creating a web app that's running on an Advantage Database server, not my
We have a web app running on Rails, using Devise and OmniAuth for user
I'm using prototype.js for my web app, and I have everything running on Chrome,
i have an asp.net website http://www.site.com . This web app is also running on
I'm building a web app that many people will be using at the same
We are using Rails 3.0.X and running our web app on Heroku. We are
multiple webapp running on same tomcat using same jvm. sometime, one webapp that have
I'm running through my web app and I'm trying to test various parts of
I have a little HTML5 web app for mobile devices (running inside PhoneGap/Cordova). I
I have a PHP app running happily on the following system: web app: PHP

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.