Closed GoogleCodeExporter closed 9 years ago
Either add "https://" in ExchangeServerUrl in config file or remove SSL from
"Public"
under "Default Web Site" in IIS.
Original comment by jaideepg...@google.com
on 26 Mar 2010 at 3:20
thanks for your fast respons, this one seems solved but now i get a 401
unauthorized.
the syncuser has receive as, and is domain admin.
and i dont have public folders, and 1 native 2007 (Exchange Server 2007
Version: 08.01.0240.006server on 2003 x64
Google.GCalExchangeSync.Library.GCalExchangeException: Error occured while
retrieving
free busy ranges ---> System.Net.WebException: The remote server returned an
error:
(401) Unauthorized. 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(Exchan
geUse
rDict users, DateTimeRange window) --- End of inner exception stack trace ---
at
Google.GCalExchangeSync.Library.FreeBusyServiceWebDAV.LookupFreeBusyTimes(Exchan
geUse
rDict users, DateTimeRange window) at
Google.GCalExchangeSync.Library.ExchangeService.GetCalendarInfoForUsers(Exchange
UserD
ict 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)
Original comment by gertjanp@gmail.com
on 26 Mar 2010 at 7:30
and mailbox language is dutch.
Original comment by gertjanp@gmail.com
on 26 Mar 2010 at 7:37
The diagnostic test now works well and all is good, however when i do the query
from
google is still get :
2010-03-26 22:02:50,732 [3544] ERROR
Google.GCalExchangeSync.Library.FreeBusyServiceEWS - Exception occured : {0}
System.Net.WebException: The request failed with HTTP status 403: Forbidden.
at
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMess
age
message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName,
Object[] parameters)
at
EWSProxyHelper.EWS.ExchangeServiceBinding.GetUserAvailability(GetUserAvailabilit
yRequ
estType GetUserAvailabilityRequest)
at
Google.GCalExchangeSync.Library.FreeBusyServiceEWS.LookupFreeBusyTimes(ExchangeU
serDi
ct users, DateTimeRange window)
2010-03-26 22:02:50,732 [3544] INFO
Google.GCalExchangeSync.Library.Util.BlockTimer
- [Timer] - LookupFreeBusyTimes-EWS - Total Execution Time: 109 ms.
2010-03-26 22:02:50,748 [3544] INFO
Google.GCalExchangeSync.Library.GCalFreeBusyResponse - GCal Free/Busy response
successfully generated.
2010-03-26 22:02:50,748 [3544] DEBUG
Google.GCalExchangeSync.Library.GCalFreeBusyResponse - Response =
['1','1',['_ME_AddData','20100319/20100406','20100326T220255',['test04
test04','test04\100gertjan\056mine\056nu','0',[]]]]
2010-03-26 22:02:50,748 [3544] DEBUG GCalExchangeLookup.ExchangeQuerierBase -
Use SSL
False
2010-03-26 22:02:50,748 [3544] DEBUG GCalExchangeLookup.ExchangeQuerierBase -
Request
URL http://gertjan.mine.nu/gcalexchangelookup/exchangequerier.aspx
2010-03-26 22:02:50,748 [3544] DEBUG GCalExchangeLookup.ExchangeQuerierBase -
Referrer URL http://www.google.com/calendar/hosted/wdezwijger.nl/render
Original comment by gertjanp@gmail.com
on 26 Mar 2010 at 9:05
btw i changed webdav to EWS to make the diagnostic utility work
Original comment by gertjanp@gmail.com
on 26 Mar 2010 at 9:06
for 401 unauthorized error --> Domain admin have to have receive-As rights on
user
mailbox and you need to create Public Folder in Exchange 2007.
If you are getting the 403 error with webdav, then enable\disable SSL for Public
under IIS and accordingly add https\http in Free\busy url in CPanel in Gmail.
If you are using Exchange 2007, I would recommend to use EWS.
Original comment by jaideepg...@google.com
on 27 Mar 2010 at 6:31
Original comment by jaideepg...@gmail.com
on 20 Apr 2010 at 7:24
Just a comment for future reference: 403 errors when updating Exchange
free/busy could also happen if the permissions to the Public Folder aren't
correct. Even if you set them correctly, you may need to set them to the
specific user's Administrative Group (for example if it works for users whose
legacyExchangeDN is in "Exchange Administrative Group" but fails for users in
"First Administrative Group").
Original comment by lir...@google.com
on 19 Jun 2013 at 1:38
Original issue reported on code.google.com by
gertjanp@gmail.com
on 26 Mar 2010 at 3:05