現在、GoogleDATAカレンダーとContactsAPIに取り組んでいます。GoogleDataAPIによって公開カレンダーにアクセスするためのWebアプリケーションを作成しました。ローカルで正常に動作しています。
このアプリケーションをAzureEmulatorにデプロイした後、動作が停止しました。
InnerException {"接続されたパーティが一定期間後に適切に応答しなかったために接続の試行が失敗したか、接続されたホストが応答できなかったために接続の確立に失敗しました209.85.231.104:443"} System.Exception {System.Net.Sockets.SocketException }
書かれているコード:
CalendarService oSrv = new CalendarService("GoogleAPIs_Cal_V1");
EventQuery oQuery = new EventQuery();
oQuery.Uri = new Uri(XXX);
if (strUserName != null && strUserName.Length > 0)
{
oSrv.setUserCredentials(strUserName, strPwd);
}
oQuery.StartTime = DateTime.Now.AddHours(-11);
oQuery.EndDate = DateTime.Now.AddDays(1);
EventFeed calFeed = oSrv.Query(oQuery) as EventFeed;
ArrayList dates = new ArrayList(50);
DataTable dtEvents = FillDataTable();
while (calFeed != null && calFeed.Entries.Count > 0)
{
// look for the one with dinner time...
foreach (Google.GData.Calendar.EventEntry entry in calFeed.Entries)
{
DataRow dtRow = dtEvents.NewRow();
dtRow["EventTitle"] = entry.Title.Text;
:
:
}
}
この面で私を助けてくれませんか?