EWS - Office 365 - "One or more subscriptions in the request reside on another Client Access server."

StackOverflow https://stackoverflow.com/questions/21709233

  •  10-10-2022
  •  | 
  •  

Question

My goal is to subscribe for streaming notifications for multiple users in the same time.

One way to do that is to create multiple StreamingSubscriptionConnections each one should contain one StreamingSubscription for each user. The problem with this method is that in Office 365 the maximum number of connections opened is 20.

Another method to solve this problem is by creating one StreamingSubscriptionConnection and then all StreamingSubscriptions for each user to the connection. This method solves the maximum number of connections problem and it works fine with exchange onPrimises. But when trying it with Office 365 it will result with the SubscriptionError:

"One or more subscriptions in the request reside on another Client Access server. GetStreamingEvents won't proxy in the event of a batch request."

Can anyone help me here ?

Was it helpful?

Solution

Update to the latest version of the EWS Managed API, version 2.1. It has GroupingInformation added to the enumeration. http://www.microsoft.com/en-us/download/details.aspx?id=42022

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top