Unable to send a notification for subscription

Jul 1, 2009 at 2:36 PM

Hi,

I wrote a functional windows service which listens for new mail using your components. Thanks for that.

I only have one issue left. The software is written as a windows service that uses a timer event to listen to the push notifications.

Once subscribed the code must somewhere be halted in time to allow the listener be rerouted through the newmail eventsink in order to do something. Send another email in my case.

In your example you halt the code simply by waiting for console input. I do that to put the thread on sleep for some defined time. otherwise it will exit my timer event function and is not able to follow the newmail event coming with the subscription.

 

However my system administrator gets his event box full with the following message:

 

I put the computers in xxxx because these are classified.

og Name:      Application
Source:        MSExchange Web Services
Date:          29-6-2009 13:48:55
Event ID:      6
Task Category: Core
Level:         Warning
Keywords:      Classic
User:          N/A
Computer:      xxxx
Description:
Unable to send a notification for subscription GwBodjEtY2FzaHQwMi5ldXJvanVzdC5ldS5pbnQQAAAAKTabbAdZs0+vLOOTHeN5pA==. (Send attempts: 5)
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="MSExchange Web Services" />
    <EventID Qualifiers="32768">6</EventID>
    <Level>3</Level>
    <Task>1</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2009-06-29T11:48:55.000Z" />
    <EventRecordID>551894</EventRecordID>
    <Channel>Application</Channel>
    <Computer>xxxxxxxxx.xxxxxx.xx.xxx</Computer>
    <Security />
  </System>
  <EventData>
    <Data>GwBodjEtY2FzaHQwMi5ldXJvanVzdC5ldS5pbnQQAAAAKTabbAdZs0+vLOOTHeN5pA==</Data>
    <Data>5</Data>
  </EventData>
</Event>

Log Name:      Application
Source:        MSExchange Web Services
Date:          29-6-2009 13:48:26
Event ID:      7
Task Category: Core
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      XXXXXX

Description:
After 7 unsuccessful attempts to send a notification for subscription GwBodjEtY2FzaHQwMi5ldXJvanVzdC5ldS5pbnQQAAAAIb0ieR8K4U6Zr4ShN3TNJA==, subscription has been removed.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="MSExchange Web Services" />
    <EventID Qualifiers="49152">7</EventID>
    <Level>2</Level>
    <Task>1</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2009-06-29T11:48:26.000Z" />
    <EventRecordID>551872</EventRecordID>
    <Channel>Application</Channel>
    <Computer>XXXXX</Computer>
    <Security />
  </System>
  <EventData>
    <Data>GwBodjEtY2FzaHQwMi5ldXJvanVzdC5ldS5pbnQQAAAAIb0ieR8K4U6Zr4ShN3TNJA==</Data>
    <Data>7</Data>
  </EventData>
</Event>

Can I unsubscribe at the end of my timerevent function or how do I change the time-out?

And once unsubcribed will it still pick up the incoming mail between the timer events?

 

Best Regards,

Ben Hiep