c# - Exchange Web Service: BindToItems method returning error -


i have method pulls appointments exchange calendar. bindtoitems method, pulling appointment 6 months ago until 6 months in future, fails windows of time. pull appointments reports error (no more details given). there way see more details error, or see problems code (below).

// set start , end time , number of appointments retrieve. microsoft.exchange.webservices.data.calendarview cview = new microsoft.exchange.webservices.data.calendarview(startdate, enddate, 1000);  // limit properties returned appointment's subject, start time, , end time.  cview.propertyset = new propertyset(basepropertyset.idonly);  // retrieve collection of appointments using calendar view. finditemsresults<appointment> currapp = calendar.findappointments(cview);   cview.propertyset = new propertyset(basepropertyset.firstclassproperties);  cview.propertyset.requestedbodytype = bodytype.text;  serviceresponsecollection<getitemresponse> apps = service.bindtoitems(currapp.select(r => r.id), cview.propertyset); 

you can enable trace listener ews service debugging

exchangeservice service = new exchangeservice(exchangeversion.exchange2013_sp1); service.tracelistener = itracelistenerinstance; service.traceflags = traceflags.ewsrequest | traceflags.ewsresponse service.traceenabled = true; 

you can find more on these links

  1. enabling tracing , logging ews
  2. tracing ews request

Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -