This project is read-only.

How to connect via Proxy Internet.

May 6, 2013 at 4:48 AM
Hi All,

In my laptop, we use our corperate internet connection via corperate Proxy settings

When we're in proxy,

the tool throws the following error

Exception!

DotNetOpenAuth.Messaging.ProtocolException: Web request to 'https://accounts.google.com/o/oauth2/token' failed. ---> System.Net.WebException: The remote server returned an error: (407) Proxy Authentication Required.

at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context)

at System.Net.HttpWebRequest.GetRequestStream()

at DotNetOpenAuth.Messaging.StandardWebRequestHandler.GetRequestStreamCore(HttpWebRequest request)

--- End of inner exception stack trace ---

at DotNetOpenAuth.Messaging.StandardWebRequestHandler.GetRequestStreamCore(HttpWebRequest request)

at DotNetOpenAuth.Messaging.StandardWebRequestHandler.GetRequestStream(HttpWebRequest request, DirectWebRequestOptions options)

at DotNetOpenAuth.Messaging.StandardWebRequestHandler.GetRequestStream(HttpWebRequest request)

at DotNetOpenAuth.Messaging.Channel.SendParametersInEntity(HttpWebRequest httpRequest, IDictionary2 fields)

at DotNetOpenAuth.Messaging.Channel.InitializeRequestAsPost(IDirectedProtocolMessage requestMessage)

at DotNetOpenAuth.OAuth2.ChannelElements.OAuth2ClientChannel.CreateHttpRequest(IDirectedProtocolMessage request)

at DotNetOpenAuth.Messaging.Channel.RequestCore(IDirectedProtocolMessage request)

at DotNetOpenAuth.Messaging.Channel.Request(IDirectedProtocolMessage requestMessage)

at DotNetOpenAuth.OAuth2.ClientBase.UpdateAuthorizationWithResponse(IAuthorizationState authorizationState, EndUserAuthorizationSuccessAuthCodeResponse authorizationSuccess)

at DotNetOpenAuth.OAuth2.UserAgentClient.ProcessUserAuthorization(Uri actualRedirectUrl, IAuthorizationState authorizationState)

at Google.Apis.Authentication.OAuth2.DotNetOpenAuth.NativeApplicationClient.ProcessUserAuthorization(String authCode, IAuthorizationState authorizationState)

at OutlookGoogleSync.GoogleCalendar.GetAuthentication(NativeApplicationClient arg)

at Google.Apis.Authentication.OAuth2.OAuth2Authenticator
1.LoadAccessToken()

at Google.Apis.Authentication.OAuth2.OAuth2Authenticator1.ApplyAuthenticationToRequest(HttpWebRequest request)

at Google.Apis.Requests.Request.CreateWebRequest(Action
1 onRequestReady)

at Google.Apis.Requests.Request.ExecuteRequestAsync(Action1 responseHandler)

at Google.Apis.Requests.ServiceRequest
1.GetAsyncResponse(Action1 responseHandler)

at Google.Apis.Requests.ServiceRequest
1.GetResponse()

at Google.Apis.Requests.ServiceRequest`1.Fetch()

at OutlookGoogleSync.GoogleCalendar.getCalendars()

OK

May 8, 2013 at 9:12 PM
I am working on a company laptop at home secured with Juniper and I encountered the same problem, but I found a work around.
I have installed the software on a USB stick and ran it on my private computer. There was no problem accessing the google agenda using the code.
Then I ran the program again on my company laptop via USB and started syncing without any problems.
Maybe I works for you too. Success!
May 27, 2013 at 10:30 AM
I am also getting same error due to some firewall issue.On unrestricted system it is working like a charm.
Any idea what particular restriction i will remove(not whole firewall setting) to allow it?
Jun 24, 2013 at 5:17 PM
Same issue here at work - behind a Bluecoat proxy. It worked great behind an ISA. I just sync from home instead of from work now, but would be nice if it worked through the proxy too.

Thanks for your project!