Closed GoogleCodeExporter closed 9 years ago
Hi again!
We have the solution, finally! :) The problem lies within the IIS settings,
because
Local Impersonization was not set on my pc. As i set the domain\username + my
password, the code below begun to work.
string username = "<username>";
string pwd = "<password>";
CalendarService service = new CalendarService("exampleCo-exampleApp-1");
service.setUserCredentials(username, pwd);
((GDataRequestFactory)service.RequestFactory).KeepAlive = false;
GDataRequestFactory requestFactory =
(GDataRequestFactory)service.RequestFactory;
WebProxy myProxy = new WebProxy("<your proy setting, like xxx.xxx.xx.xx:port/",
true);
myProxy.Credentials = CredentialCache.DefaultCredentials;
myProxy.UseDefaultCredentials = true;
requestFactory.Proxy = myProxy;
FeedQuery query = new FeedQuery();
query.Uri = new Uri("http://www.google.com/calendar/feeds/default");
AtomFeed calFeed = service.Query(query);
for (int i = 0; i < calFeed.Entries.Count; i++)
{
lbEvents.Items.Add(new ListItem(calFeed.Entries[i].Title.Text, i.ToString()));
}
I hope it will help for those who encountered this problem! :)
Cheers,
Daniel
Original comment by ixsyncu...@gmail.com
on 24 Mar 2010 at 3:52
Thank you for posting the solution for this.
Frank Mantek
Google
Original comment by fman...@gmail.com
on 7 Jun 2010 at 2:46
Original issue reported on code.google.com by
ixsyncu...@gmail.com
on 23 Mar 2010 at 5:08