У меня есть метод, который вытягивает встречи из календаря Exchange. Метод BindToItems, который в настоящее время проводит встречу с шести месяцев назад до шести месяцев в будущем, терпит неудачу с некоторыми окнами времени. Он будет тянуть несколько встреч, но сообщает об ошибке (подробности не приводятся). Есть ли способ увидеть более подробную информацию об ошибке, или кто-нибудь видит какие-либо проблемы с моим кодом (см. Ниже).Exchange Web Service: метод BindToItems возвращает ошибку
// Set the start and end time and number of appointments to retrieve.
Microsoft.Exchange.WebServices.Data.CalendarView cView = new Microsoft.Exchange.WebServices.Data.CalendarView(startDate, endDate, 1000);
// Limit the properties returned to the appointment's subject, start time, and end time.
cView.PropertySet = new PropertySet(BasePropertySet.IdOnly);
// Retrieve a collection of appointments by using the 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);
Что такое Ошибка? – Sameer
Он говорит только об ошибке. После цикла ответов службы я обнаружил, что это ErrorInternalServerTransientError. Это всегда происходит на 251 позиции –