Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm trying to use EWSConsoleNotify for Modified events. I change the subscription as follows

PushSubscription ps = _service.SubscribeToPushNotificationsOnAllFolders(new Uri("http://192.168.0.22:5050"),
5 // Every 5 minutes Exchange will send us a status message
, null, EventType.Modified);

and I comment out the restriction to "NewMailEvent" in SendNotificationResultType method.

However, the code throws a strange error that it cannot convert a folder id to an item id.

I'm also trying to run this on a set of public folders. Would you know how to achieve that?
Posted

1 solution

Don't post this under Quick Answers - if you got the code from an article, then there is a "new message" button at the bottom of that article, which causes an email to be sent to the author. They are then alerted that you wish to speak to them.
Posting this here relies on them "dropping by" and realising it is for them.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900