Web Svc Successfully Queries LDAP, but Exchange(?) issues 403...

14 views
Skip to first unread message

Richard Champlin

unread,
Oct 22, 2010, 6:00:56 PM10/22/10
to google-calendar-connectors
I am wondering: Our Exchange server requires SSL connections and the
webdav requests are HTTP not HTTPS?

Note the "The remote server returned an error: (403) Forbidden." in
the error below.

Verify Free / Busy information can be found in Exchange (+/- 7 days)


Error occured while retrieving free busy ranges
Google.GCalExchangeSync.Library.GCalExchangeException: Error occured
while retrieving free busy ranges ---> System.Net.WebException: The
remote server returned an error: (403) Forbidden. at
System.Net.HttpWebRequest.GetResponse() at
Google.GCalExchangeSync.Library.WebDav.XmlRequestImpl.IssueRequest(String
url, Method method, String body, HttpHeader[] headers) at
Google.GCalExchangeSync.Library.WebDav.WebDavQuery.IssueRequest(String
url, Method method, String body) at
Google.GCalExchangeSync.Library.WebDav.WebDavQuery.LoadFreeBusy(String
exchangeServerUrl, ExchangeUserDict users, DateTimeRange window) at
Google.GCalExchangeSync.Library.FreeBusyServiceWebDAV.LookupFreeBusyTimes(ExchangeUserDict
users, DateTimeRange window) --- End of inner exception stack trace
--- at
Google.GCalExchangeSync.Library.FreeBusyServiceWebDAV.LookupFreeBusyTimes(ExchangeUserDict
users, DateTimeRange window) at
Google.GCalExchangeSync.Library.ExchangeService.GetCalendarInfoForUsers(ExchangeUserDict
users, DateTimeRange window) at
Google.GCalExchangeSync.Library.ExchangeService.SearchByQuery(String
ldapQuery, DateTimeRange utcRange) at
Google.GCalExchangeSync.Library.ExchangeService.SearchByEmail(DateTimeRange
utcRange, String searchTerm) at
Google.GCalExchangeSync.Tests.Diagnostics.ExchangeTester.QueryFreeBusy(String
email) at
GCalExchangeLookup.Diagnostics.ButtonQueryExchFB_Click(Object sender,
EventArgs e)

Jaideep Garg

unread,
Oct 23, 2010, 3:57:56 AM10/23/10
to google-calend...@googlegroups.com
Add "https://" before Exchange Server name in config file to make the https request.

Thanks,
Jaideep



--
You received this message because you are subscribed to the Google Groups "google-calendar-connectors" group.
To post to this group, send email to google-calend...@googlegroups.com.
To unsubscribe from this group, send email to google-calendar-con...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-calendar-connectors?hl=en.

--
You received this message because you are subscribed to the Google Groups "opensource-google-calendar-connectors" group.
To post to this group, send email to opensource-google-...@google.com.
To unsubscribe from this group, send email to opensource-google-calend...@google.com.
For more options, visit this group at http://groups.google.com/a/google.com/group/opensource-google-calendar-connectors/?hl=en.


Richard Champlin

unread,
Oct 25, 2010, 11:46:48 AM10/25/10
to google-calendar-connectors
Okay, added "https" and started getting an "SSL error" so I installed
the certificate chain (according to "Issue 13"). However, using the
internal name of the exchange server still caused an error:

"Google.GCalExchangeSync.Library.GCalExchangeException: Error occured
while retrieving free busy ranges ---> System.Net.WebException: The
underlying connection was closed: Could not establish trust
relationship for the SSL/TLS secure channel. --->
System.Security.Authentication.AuthenticationException: The remote
certificate is invalid according to the validation procedure. "

So I changed the webconfig to use the https <external name that
matches cert> and I get this error:

"Google.GCalExchangeSync.Library.GCalExchangeException: Error occured
while retrieving free busy ranges ---> System.Net.WebException: The
remote name could not be resolved: 'external name of exchange server'
at System.Net.HttpWebRequest.GetResponse() "

SSSOOOooooooo, I am stuck. I have (I believe) successfully installed
the certificate chain but I don't know if it is all working because
the certificate is for the external name of the exchange server. The
external name is mapped internally and everything works fine for owa
access etc. both internally and externally.



On Oct 23, 2:57 am, Jaideep Garg <jaideepg...@google.com> wrote:
> Add "https://" before Exchange Server name in config file to make the https
> request.
>
> *Thanks,
> Jaideep *
>
> On Sat, Oct 23, 2010 at 3:30 AM, Richard Champlin <
>
>
>
> richard.champ...@uwmidsouth.org> wrote:
> > I am wondering: Our Exchange server requires SSL connections and the
> > webdav requests are HTTP not HTTPS?
>
> > Note the "The remote server returned an error: (403) Forbidden." in
> > the error below.
>
> > Verify Free / Busy information can be found in Exchange (+/- 7 days)
>
> > Error occured while retrieving free busy ranges
> > Google.GCalExchangeSync.Library.GCalExchangeException: Error occured
> > while retrieving free busy ranges ---> System.Net.WebException: The
> > remote server returned an error: (403) Forbidden. at
> > System.Net.HttpWebRequest.GetResponse() at
> > Google.GCalExchangeSync.Library.WebDav.XmlRequestImpl.IssueRequest(String
> > url, Method method, String body, HttpHeader[] headers) at
> > Google.GCalExchangeSync.Library.WebDav.WebDavQuery.IssueRequest(String
> > url, Method method, String body) at
> > Google.GCalExchangeSync.Library.WebDav.WebDavQuery.LoadFreeBusy(String
> > exchangeServerUrl, ExchangeUserDict users, DateTimeRange window) at
>
> > Google.GCalExchangeSync.Library.FreeBusyServiceWebDAV.LookupFreeBusyTimes(E­xchangeUserDict
> > users, DateTimeRange window) --- End of inner exception stack trace
> > --- at
>
> > Google.GCalExchangeSync.Library.FreeBusyServiceWebDAV.LookupFreeBusyTimes(E­xchangeUserDict
> > users, DateTimeRange window) at
>
> > Google.GCalExchangeSync.Library.ExchangeService.GetCalendarInfoForUsers(Exc­hangeUserDict
> > users, DateTimeRange window) at
> > Google.GCalExchangeSync.Library.ExchangeService.SearchByQuery(String
> > ldapQuery, DateTimeRange utcRange) at
> > Google.GCalExchangeSync.Library.ExchangeService.SearchByEmail(DateTimeRange
> > utcRange, String searchTerm) at
>
> > Google.GCalExchangeSync.Tests.Diagnostics.ExchangeTester.QueryFreeBusy(Stri­ng
> > email) at
> > GCalExchangeLookup.Diagnostics.ButtonQueryExchFB_Click(Object sender,
> > EventArgs e)
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "google-calendar-connectors" group.
> > To post to this group, send email to
> > google-calend...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-calendar-con...@googlegroups.com<google-calendar-con­nectors%2Bunsu...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-calendar-connectors?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "opensource-google-calendar-connectors" group.
> > To post to this group, send email to
> > opensource-google-calendar-connect...@google.com.
> > To unsubscribe from this group, send email to
> > opensource-google-calendar-connectors+unsubscr...@google.com<opensource-google-calendar-connectors%2Bunsubscr...@google.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/a/google.com/group/opensource-google-calenda...
> > .- Hide quoted text -
>
> - Show quoted text -

Richard Champlin

unread,
Oct 25, 2010, 1:11:30 PM10/25/10
to google-calendar-connectors
So now I can get this:

Google.GCalExchangeSync.Library.GCalExchangeException: Error occured
while retrieving free busy ranges ---> System.Xml.XmlException: For
security reasons DTD is prohibited in this XML document. To enable DTD
processing set the ProhibitDtd property on XmlReaderSettings to false
and pass the settings into XmlReader.Create method. at
System.Xml.XmlTextReaderImpl.Throw(Exception e)

from other reading around here (issue 11), it might be a Forms-based
Authentication issue? Does this mean I am at least "successfully"
accessing the Exchange server?

On Oct 23, 2:57 am, Jaideep Garg <jaideepg...@google.com> wrote:
> Add "https://" before Exchange Server name in config file to make the https
> request.
>
> *Thanks,
> Jaideep *
>
> On Sat, Oct 23, 2010 at 3:30 AM, Richard Champlin <
>
>
>
> richard.champ...@uwmidsouth.org> wrote:
> > I am wondering: Our Exchange server requires SSL connections and the
> > webdav requests are HTTP not HTTPS?
>
> > Note the "The remote server returned an error: (403) Forbidden." in
> > the error below.
>
> > Verify Free / Busy information can be found in Exchange (+/- 7 days)
>
> > Error occured while retrieving free busy ranges
> > Google.GCalExchangeSync.Library.GCalExchangeException: Error occured
> > while retrieving free busy ranges ---> System.Net.WebException: The
> > remote server returned an error: (403) Forbidden. at
> > System.Net.HttpWebRequest.GetResponse() at
> > Google.GCalExchangeSync.Library.WebDav.XmlRequestImpl.IssueRequest(String
> > url, Method method, String body, HttpHeader[] headers) at
> > Google.GCalExchangeSync.Library.WebDav.WebDavQuery.IssueRequest(String
> > url, Method method, String body) at
> > Google.GCalExchangeSync.Library.WebDav.WebDavQuery.LoadFreeBusy(String
> > exchangeServerUrl, ExchangeUserDict users, DateTimeRange window) at
>
> > Google.GCalExchangeSync.Library.FreeBusyServiceWebDAV.LookupFreeBusyTimes(E­xchangeUserDict
> > users, DateTimeRange window) --- End of inner exception stack trace
> > --- at
>
> > Google.GCalExchangeSync.Library.FreeBusyServiceWebDAV.LookupFreeBusyTimes(E­xchangeUserDict
> > users, DateTimeRange window) at
>
> > Google.GCalExchangeSync.Library.ExchangeService.GetCalendarInfoForUsers(Exc­hangeUserDict
> > users, DateTimeRange window) at
> > Google.GCalExchangeSync.Library.ExchangeService.SearchByQuery(String
> > ldapQuery, DateTimeRange utcRange) at
> > Google.GCalExchangeSync.Library.ExchangeService.SearchByEmail(DateTimeRange
> > utcRange, String searchTerm) at
>
> > Google.GCalExchangeSync.Tests.Diagnostics.ExchangeTester.QueryFreeBusy(Stri­ng
> > email) at
> > GCalExchangeLookup.Diagnostics.ButtonQueryExchFB_Click(Object sender,
> > EventArgs e)
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "google-calendar-connectors" group.
> > To post to this group, send email to
> > google-calend...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-calendar-con...@googlegroups.com<google-calendar-con­nectors%2Bunsu...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-calendar-connectors?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "opensource-google-calendar-connectors" group.
> > To post to this group, send email to
> > opensource-google-calendar-connect...@google.com.
> > To unsubscribe from this group, send email to
> > opensource-google-calendar-connectors+unsubscr...@google.com<opensource-google-calendar-connectors%2Bunsubscr...@google.com>
> > .
> > For more options, visit this group at

Suman Kancherla (సుమన్)

unread,
Oct 26, 2010, 1:51:10 AM10/26/10
to google-calend...@googlegroups.com
Yes, GCC is connecting well. It is just that the authentication needs to be Basic instead of Forms.

Thanks!
Suman

To unsubscribe from this group, send email to google-calendar-con...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/google-calendar-connectors?hl=en.

--
You received this message because you are subscribed to the Google Groups "opensource-google-calendar-connectors" group.
To post to this group, send email to opensource-google-...@google.com.
To unsubscribe from this group, send email to opensource-google-calend...@google.com.
For more options, visit this group at http://groups.google.com/a/google.com/group/opensource-google-calendar-connectors/?hl=en.




--
Many thanks!
Suman


Reply all
Reply to author
Forward
0 new messages