プロキシに資格情報が必要なようです。クレデンシャルはコードで提供する必要があります。Google APIには独自のカスタムリクエストオブジェクトがあるため、現在GoogleAPIのソースをトロールして見つけています。
それまでの間、デフォルトのプロキシを使用しないだけで機能する可能性があります。app.configまたはweb.configを変更して、これを正しい場所に挿入します。
<configuration>
<system.net>
<defaultProxy>
<proxy usesystemdefault="false"/>
</defaultProxy>
</system.net>
</configuration>
編集:
さて、掘り下げた後、特定のリクエストに対してリンクした命令をリファクタリングする方法は次のとおりです。次のようにYouTubeRequestをすでに作成していると仮定します。
YouTubeRequest request = new YouTubeRequest(settings);
リンクからのリファクタリングされた手順は次のとおりです。
YouTubeRequest request = new YouTubeRequest(settings);
GDataRequestFactory f = (GDataRequestFactory) request.Service.RequestFactory;
IWebProxy iProxy = WebRequest.DefaultWebProxy;
WebProxy myProxy = new WebProxy(iProxy.GetProxy(query.Uri));
// potentially, setup credentials on the proxy here
myProxy.Credentials = CredentialsCache.DefaultCredentials;
myProxy.UseDefaultCredentials = true;
f.Proxy = myProxy;
これが私の情報源です:
http://google-gdata.googlecode.com/svn/docs/folder56/T_Google_YouTube_YouTubeRequest.htm
http://google-gdata.googlecode.com/svn/docs/folder53/P_Google_GData_Client_FeedRequest_1_Service.htm
http://google-gdata.googlecode.com/svn/docs/folder19/P_Google_GData_Client_Service_RequestFactory.htm