none
Notifications not recieved when using SubscribeToStreamingNotificationsOnAllFolders RRS feed

  • Question

  • I have code that works when I subscribe specific folders in a user's mailbox using SubscribeToStreamingNotifications.

    If I substitute SubscribeToStreamingNotificationsOnAllFolders to subscribe to all folders then I stop receiving notifications in the StreamingSubscriptionConnection.OnNotificationEvent.

    I do not get any errors.

    Has anyone got any clue what might prevent this from working?

    Exchange version: 2013
    Tuesday, February 18, 2014 10:30 PM

All replies

  • As a quick way of testing and debugging I would suggest you try to do this in the EWSEditor http://ewseditor.codeplex.com/ . This will tell you straight away if this is a server or client side issue.

    A few other things to check if your using Exchange 2013 make sure you set the affinity headers see http://msdn.microsoft.com/en-us/library/office/dn458789(v=exchg.150).aspx and  http://blogs.msdn.com/b/emeamsgdev/archive/2013/06/04/10423443.aspx  

    Also throttling maybe another issue if your exceeding the number of allowable subscriptions for the Security context your using.

    Cheers
    Glen

    Wednesday, February 19, 2014 4:41 AM
  • Thanks I had not found the EWSEditor before, that was very helpful.

    Both in my own application and the EWS editor I get this behaviour.

    When subscribing to a folder I can received notifications of 'Move' events.  When subscribing to all folders I do not receive these notifications.  I am definitely sending EventType.Move when I call SubscribeToStreamingNotificationsOnAllFolders.

    I do receive 'Modified' events but these are only so much help, what I really want to know is when items have moved and where they moved to.

    Is there perchance a server setting to switch of move events when subscribed to all folders?

    Wednesday, February 19, 2014 5:27 AM
  • My current position is that when using the EWSEditor to 'Subscribe to All Folders' I only receive Modified and Delete events.  I do not seem to get all the Delete events either.

    Does anyone know if this is simply the way the 'Subscribe to All' works or is there a configuration option on Exchange that will affect which events are sent when subscribing to All Folders.

    When subscribing to one or more folders by Folder Id I get all the events (such as Moved) that I expect.

    Wednesday, February 19, 2014 9:43 PM
  • >> Is there perchance a server setting to switch of move events when subscribed to all folders?

    Not that I know of EWS doesn't have a lot of configurable settings. I've tried on 2013 server and I can do this okay what version of rollup are you using ? You could have a look at the EWSLog on the CAS server to see if anything is being logged server side.

    Cheers
    Glen

    Thursday, February 20, 2014 5:39 AM