Thank You Austin..
It worked for me.
This is the code I tweaked to give proxy information.


GDataRequestFactory objGDataRequestFactory =
(GDataRequestFactory)objCalendarService.RequestFactory;
IWebProxy iProxy = new
WebProxy(ConfigurationManager.AppSettings["ProxySeverAddress"],
Convert.ToInt32(ConfigurationManager.AppSettings["ProxySeverPort"]));
WebProxy objWebProxy = new WebProxy(iProxy.GetProxy(query.Uri));
objWebProxy.Credentials = new
NetworkCredential(ConfigurationManager.AppSettings["NetworkUserId"],
ConfigurationManager.AppSettings["NetworkUserPswd"]);
objWebProxy.UseDefaultCredentials = true;
objGDataRequestFactory.Proxy = objWebProxy;

Need to add reference of System.Net

On Oct 2, 3:30 am, "Austin (Google)" <[EMAIL PROTECTED]> wrote:
> Hi,
> I am not an expert with .NET technology but I found this thread that
> relating to using .NET client library with a proxy connection perhaps you
> will find it helpful -
>
> http://groups.google.com/group/google-calendar-help-dataapi/browse_th...
>
> Austin
>
> On Tue, Sep 30, 2008 at 7:57 AM, manoj <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > I have created Web Service in ASP.NET which has a class library, which
> > performs operation of Insert Update Delete & Fetch Data From Google
> > Calendar.
>
> > My computer is on LAN & requests pass through proxy server.
>
> > I am running web service in IE 6.0 where proxy server address is set.
>
> > When I rum webservice on WebServer provide by Visual Studio 2005, it
> > works fine.
>
> > But when I deploy my web service on IIS & call method to authenticate
> > username, it give me error -
>
> > Unable to connect to the remote server --->
> > System.Net.Sockets.SocketException: A connection attempt failed
> > because the connected party did not properly respond after a period of
> > time, or established connection failed because connected host has
> > failed to respond 209.85.153.104:80
>
> > Can I get the way to run my web service on IIS which is calling Google
> > calendar behind proxy server set for our LAN ?
--~--~---------~--~----~------------~-------~--~----~
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