Startup hangs due to systemevent registration
Exchange Server Forum Index Exchange Server
Discussion forums for Microsoft Exchange Server users.
Microsoft Outlook
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web ExchangeServerHelp.com
Startup hangs due to systemevent registration

 
Post new topic   Reply to topic    Exchange Server Forum Index -> Development
Author Message
MikeH
Guest





Posted: Thu Jan 06, 2005 7:05 pm    Post subject: Startup hangs due to systemevent registration Reply with quote

Windows 2003 Server SP1 (DC, native mode)
Exchange 2003 SP1

Hi,
I've implemented an eventsink for OnMDBStartup, and registered the event
using RegEvent.vbs. The event is fired when I restart the "Microsoft Exchange
Information Store" service, so everything looks fine.

The problem occurs when I reboot the server. After the shutdown, during
restart the "Microsoft Exchange Information Store" is hanging in pending
start, and when I finally can log into the server (~20min), the service has
probably timed-out and is stopped by the system. (If I delete the systemevent
registration, the server reboots normally)

When I manually start the "Microsoft Exchange Information Store", the event
is fired again, and everything looks fine.

Is the Registration faulty or does anyone have other suggestions?

cscript Regevent.vbs add onMDBstartup MyCOMdll.Class
file://./backofficestorage/MyDomain.local/MBX/Administrator/Inbox/EvMyMDBstartup -m ANY -f WHERE $DAV:contentclass$ = 'urn:content-classes:storeeventreg'

Kind Regards
MikeH

Back to top
Tom Rizzo [MSFT]
Guest





Posted: Sun Jan 09, 2005 10:49 pm    Post subject: Re: Startup hangs due to systemevent registration Reply with quote

That looks fine. What does your code do? Are you getting stuck in some
sort of infinite loop?

Tom

--
Looking for a good book on programming Exchange, Outlook, ADSI and
SharePoint? Check out http://www.microsoft.com/MSPress/books/5517.asp



"MikeH" <MikeH@discussions.microsoft.com> wrote in message
news:1317FC50-0B3F-4458-B56E-03CED35A6C51@microsoft.com...
Quote:
Windows 2003 Server SP1 (DC, native mode)
Exchange 2003 SP1

Hi,
I've implemented an eventsink for OnMDBStartup, and registered the event
using RegEvent.vbs. The event is fired when I restart the "Microsoft
Exchange
Information Store" service, so everything looks fine.

The problem occurs when I reboot the server. After the shutdown, during
restart the "Microsoft Exchange Information Store" is hanging in pending
start, and when I finally can log into the server (~20min), the service
has
probably timed-out and is stopped by the system. (If I delete the
systemevent
registration, the server reboots normally)

When I manually start the "Microsoft Exchange Information Store", the
event
is fired again, and everything looks fine.

Is the Registration faulty or does anyone have other suggestions?

cscript Regevent.vbs add onMDBstartup MyCOMdll.Class
file://./backofficestorage/MyDomain.local/MBX/Administrator/Inbox/EvMyMDBstartup -
m ANY -f WHERE $DAV:contentclass$ = 'urn:content-classes:storeeventreg'

Kind Regards
MikeH
Back to top
MikeH
Guest





Posted: Mon Jan 10, 2005 2:47 am    Post subject: Re: Startup hangs due to systemevent registration Reply with quote

All the code does for now is to log that the event occured in a file. This
log is what I can see when I manually restart the service.

-I have also tried to comment the code in the event handler, but I get the
same results.

MikeH


"Tom Rizzo [MSFT]" wrote:

Quote:
That looks fine. What does your code do? Are you getting stuck in some
sort of infinite loop?

Tom

--
Looking for a good book on programming Exchange, Outlook, ADSI and
SharePoint? Check out http://www.microsoft.com/MSPress/books/5517.asp



"MikeH" <MikeH@discussions.microsoft.com> wrote in message
news:1317FC50-0B3F-4458-B56E-03CED35A6C51@microsoft.com...
Windows 2003 Server SP1 (DC, native mode)
Exchange 2003 SP1

Hi,
I've implemented an eventsink for OnMDBStartup, and registered the event
using RegEvent.vbs. The event is fired when I restart the "Microsoft
Exchange
Information Store" service, so everything looks fine.

The problem occurs when I reboot the server. After the shutdown, during
restart the "Microsoft Exchange Information Store" is hanging in pending
start, and when I finally can log into the server (~20min), the service
has
probably timed-out and is stopped by the system. (If I delete the
systemevent
registration, the server reboots normally)

When I manually start the "Microsoft Exchange Information Store", the
event
is fired again, and everything looks fine.

Is the Registration faulty or does anyone have other suggestions?

cscript Regevent.vbs add onMDBstartup MyCOMdll.Class
file://./backofficestorage/MyDomain.local/MBX/Administrator/Inbox/EvMyMDBstartup -
m ANY -f WHERE $DAV:contentclass$ = 'urn:content-classes:storeeventreg'

Kind Regards
MikeH





Back to top
Tom Rizzo [MSFT]
Guest





Posted: Thu Jan 13, 2005 10:46 pm    Post subject: Re: Startup hangs due to systemevent registration Reply with quote

And it still happens if you delete and recreate the event registration? I
believe the MDB startup event is asynchronous so it shouldn't block the
store from starting.

Anytjing in the event log?

Tom

--
Looking for a good book on programming Exchange, Outlook, ADSI and
SharePoint? Check out http://www.microsoft.com/MSPress/books/5517.asp



"MikeH" <MikeH@discussions.microsoft.com> wrote in message
news:A5BDA27B-C0E7-4D45-8B3E-233DC5E6936A@microsoft.com...
Quote:
All the code does for now is to log that the event occured in a file. This
log is what I can see when I manually restart the service.

-I have also tried to comment the code in the event handler, but I get the
same results.

MikeH


"Tom Rizzo [MSFT]" wrote:

That looks fine. What does your code do? Are you getting stuck in some
sort of infinite loop?

Tom

--
Looking for a good book on programming Exchange, Outlook, ADSI and
SharePoint? Check out http://www.microsoft.com/MSPress/books/5517.asp



"MikeH" <MikeH@discussions.microsoft.com> wrote in message
news:1317FC50-0B3F-4458-B56E-03CED35A6C51@microsoft.com...
Windows 2003 Server SP1 (DC, native mode)
Exchange 2003 SP1

Hi,
I've implemented an eventsink for OnMDBStartup, and registered the
event
using RegEvent.vbs. The event is fired when I restart the "Microsoft
Exchange
Information Store" service, so everything looks fine.

The problem occurs when I reboot the server. After the shutdown, during
restart the "Microsoft Exchange Information Store" is hanging in
pending
start, and when I finally can log into the server (~20min), the service
has
probably timed-out and is stopped by the system. (If I delete the
systemevent
registration, the server reboots normally)

When I manually start the "Microsoft Exchange Information Store", the
event
is fired again, and everything looks fine.

Is the Registration faulty or does anyone have other suggestions?

cscript Regevent.vbs add onMDBstartup MyCOMdll.Class
file://./backofficestorage/MyDomain.local/MBX/Administrator/Inbox/EvMyMDBstartup -
m ANY -f WHERE $DAV:contentclass$ = 'urn:content-classes:storeeventreg'

Kind Regards
MikeH



Back to top
MikeH
Guest





Posted: Fri Jan 21, 2005 3:53 pm    Post subject: Re: Startup hangs due to systemevent registration Reply with quote

It does not help to recreate the event registration and there is nothing of
interest in the Event Log. Maybe the environment is faulty somehow..

I was trying to make a workaround to a bug in SP1 (KB872822), by creating an
OnMDBStartUp system Event sink to delete and re-register global event
registration.

-Any news of public hotfixes for KB872822 ?



"Tom Rizzo [MSFT]" wrote:

Quote:
And it still happens if you delete and recreate the event registration? I
believe the MDB startup event is asynchronous so it shouldn't block the
store from starting.

Anytjing in the event log?

Tom

--
Looking for a good book on programming Exchange, Outlook, ADSI and
SharePoint? Check out http://www.microsoft.com/MSPress/books/5517.asp



"MikeH" <MikeH@discussions.microsoft.com> wrote in message
news:A5BDA27B-C0E7-4D45-8B3E-233DC5E6936A@microsoft.com...
All the code does for now is to log that the event occured in a file. This
log is what I can see when I manually restart the service.

-I have also tried to comment the code in the event handler, but I get the
same results.

MikeH


"Tom Rizzo [MSFT]" wrote:

That looks fine. What does your code do? Are you getting stuck in some
sort of infinite loop?

Tom

--
Looking for a good book on programming Exchange, Outlook, ADSI and
SharePoint? Check out http://www.microsoft.com/MSPress/books/5517.asp



"MikeH" <MikeH@discussions.microsoft.com> wrote in message
news:1317FC50-0B3F-4458-B56E-03CED35A6C51@microsoft.com...
Windows 2003 Server SP1 (DC, native mode)
Exchange 2003 SP1

Hi,
I've implemented an eventsink for OnMDBStartup, and registered the
event
using RegEvent.vbs. The event is fired when I restart the "Microsoft
Exchange
Information Store" service, so everything looks fine.

The problem occurs when I reboot the server. After the shutdown, during
restart the "Microsoft Exchange Information Store" is hanging in
pending
start, and when I finally can log into the server (~20min), the service
has
probably timed-out and is stopped by the system. (If I delete the
systemevent
registration, the server reboots normally)

When I manually start the "Microsoft Exchange Information Store", the
event
is fired again, and everything looks fine.

Is the Registration faulty or does anyone have other suggestions?

cscript Regevent.vbs add onMDBstartup MyCOMdll.Class
file://./backofficestorage/MyDomain.local/MBX/Administrator/Inbox/EvMyMDBstartup -
m ANY -f WHERE $DAV:contentclass$ = 'urn:content-classes:storeeventreg'

Kind Regards
MikeH






Back to top
 
Post new topic   Reply to topic    Exchange Server Forum Index -> Development All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server Dedicated Servers
Contact Us
New Topics Powered by phpBB