title: Youtube API Bad Request 400
body: <p>Hopefully someone has some experience in this area as have run out of avenues to work out whats going on. </p>
  
  <p>My question is why am i getting a bad request 400 error when trying to upload a video to youtube via the api. I'm using the .net library and can successfully upload locally but not remotely on my hosting at discountasp. The following is the error message i receive but as you can tell it doesn't hold much information</p>
  
  <blockquote>
    <p>The remote server returned an error:
    (400) Bad Request.</p>
    
    <p>[WebException: The remote server
    returned an error: (400) Bad Request.]
    System.Net.HttpWebRequest.GetResponse()
    +6038435    Google.GData.Client.GDataRequest.Execute()
    +85</p>
    
    <p>[GDataRequestException: Execution of
    request failed:
    http://uploads.gdata.youtube.com/feeds/api/users/default/uploads]
    Google.GData.Client.GDataRequest.Execute()
    +228    Google.GData.Client.GDataGAuthRequest.Execute(Int32
    retryCounter) +487<br>
    Google.GData.Client.GDataGAuthRequest.Execute(Int32
    retryCounter) +523<br>
    Google.GData.Client.GDataGAuthRequest.Execute(Int32
    retryCounter) +523<br>
    Google.GData.Client.GDataGAuthRequest.Execute(Int32
    retryCounter) +523<br>
    Google.GData.Client.GDataGAuthRequest.Execute()
    +10    Google.GData.Client.MediaService.EntrySend(Uri
    feedUri, AtomBase baseEntry,
    GDataRequestType type, AsyncSendData
    data) +541<br>
    Google.GData.Client.Service.Insert(Uri
    feedUri, AtomEntry newEntry,
    AsyncSendData data) +88<br>
    Google.GData.Client.Service.Insert(Uri
    feedUri, TEntry entry) +58<br>
    Google.GData.YouTube.YouTubeService.Upload(String
    userName, YouTubeEntry entry) +98</p>
  </blockquote>