0
当前我正在研究Google DATA日历和通讯录API。我已经编写了一个Web应用程序以通过Google Data API访问公共日历。它在本地工作正常。在Windows Azure应用程序仿真器中部署“Google Data API”应用程序后出现错误
我在Azure的模拟器部署该应用程序后,它停止工作说
的InnerException {“A连接尝试失败,因为连接的方没有正确一段时间后响应或已建立的连接失败,因为连接的主机未能响应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;
:
:
}
}
你能帮我在这方面吗?