It tells you what is wrong: you have a proxy server running somewhere  
that is requiring the connection to be authenticated against itself.

Have you tried this:

http://code.google.com/p/google-gdata/wiki/WebProxySetup

Frank Mantek
Google
On Apr 10, 2008, at 12:33 AM, partha wrote:

>
> hi all,
>         I need to access the events of the google calendar to my own
> site It is giving
> "The remote server returned an error: (407) Proxy Authentication
> Required. at System.Net.HttpWebRequest.GetResponse() at
> Google.GData.Client.GDataRequest.Execute()"
> error
> I did like this
>
> AuthSubUtil.getRequestUrl("http://localhost:4859/WebSite2/
> Default.aspx", "http://www.google.com/calendar/feeds/default/private/
> full", true, true);
>
>  string qr = Request.QueryString["token"];
>             GAuthSubRequestFactory authFactory = new
> GAuthSubRequestFactory("cl", "TesterApp");
>             authFactory.Token = qr;
>             CalendarService service = new
> CalendarService(authFactory.ApplicationName);
>             service.setUserCredentials("parthathakura",
> "mohuyakhantpukur");
>             service.SetAuthenticationToken(qr);
>             service.RequestFactory = authFactory;
>             EventQuery query = new EventQuery();
>             query.Uri = new Uri("http://www.google.com/calendar/feeds/
> default/private/full");
>             EventFeed calFeed = service.Query(query);
>             foreach (Google.GData.Calendar.EventEntry entry in
> calFeed.Entries)
>             {
>                 Response.Write("Event: " + entry.Title.Text + "<br/
>> ");
>             }
>
>  i need some help
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Calendar Data API" group.
To post to this group, send email to 
[email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-calendar-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to