Re: Instantiating DCOM components during reboot

From: Alexander Nickolov (agnickolov_at_mvps.org)
Date: 02/23/05


Date: Wed, 23 Feb 2005 10:56:56 -0800

Brian, the 6 minutes timeout is for detecting server death.
OP is talking about establishing a new connection (creating
a new object). The calling application will "hang" the thread
calling CoCreateInstanceEx of course, but not indefinitely.
The proper term is block, not hang. And an STA thread
dispatches some messages in the mean time.

-- 
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnickolov@mvps.org
MVP VC FAQ: http://www.mvps.org/vcfaq
=====================================
"Brian Muth" <bmuth@mvps.org> wrote in message 
news:u2BxyzEGFHA.128@TK2MSFTNGP14.phx.gbl...
> Are you sure machine A is hanging? In the worst case scenario, I would
> expect the proxy to break down the connection after roughly six minutes
> passed, and machine A to continue on its way (albeit with an error 
> HRESULT).
>
> Please confirm.
>
> Brian
>
> "Scott Ure" <ScottUre@discussions.microsoft.com> wrote in message
> news:BC2F6A06-37BC-4934-A182-A55E488FFFDA@microsoft.com...
>> Hi,
>>
>> I hope this is the correct newsgroup to ask this question.
>>
>> On machine A (running Windows 2000 professional) we have windows services
>> exposing DCOM interfaces which are accessed from machine B (running
> Windows
>> 2000 server). If machine B attempts to instantiate one of those 
>> components
>> while machine A is rebooting, depending on what point the reboot is at, 
>> it
>> will log errors to the event log like:
>>
>> DCOM got error "General access denied error " from the computer
>> COMM_SERVER-LRT when attempting to activate the server:
>> {BD77409E-8930-4505-AB7E-EDE76D977177}
>>
>> or
>>
>> DCOM was unable to communicate with the computer COMM_SERVER-LRT using 
>> any
>> of the configured protocols.
>>
>> During one test, I was able to cause machine A to hang during its startup
>> (prior to the log-on screen showing) by calling it. Also, this seems to
> hang
>> the calling application under certain circumstances.
>>
>> When machine A is up and running, no errors occur, everything works as
>> expected.
>>
>> I would have expected DCOM to throw the error RPC_S_SERVER_UNAVAILABLE in
>> these cases, but it does not appear to.
>>
>> My question is: what should we be doing to avoid these errors and hangs?
> We
>> would like to design our software so that it handle the case of machine A
>> rebooting or being unavailable cleanly.
>>
>> Thanks,
>> Scott.
>
> 


Relevant Pages

  • Re: Updating Subscriber Question
    ... if the publisher_security_mode = 2 then AFAIK having a NULL for the login is ... Does the hang occur on calling xp_repl_help_connect or in the previous ... Have you changed the name of a server recently, ...
    (microsoft.public.sqlserver.replication)
  • Re: Peach Tree 2007 Server components?
    ... the old server, the new server is running PeachTree ... The server will hang a couple times a week ... I disabled the PT 2007 Pervasive Database service and didn't have any ... Calling an illegal alien an "undocumented worker" is like calling a ...
    (microsoft.public.windows.server.general)
  • PROBLEM: Network hang: "eth0: Tx timed out (f0080), is buffer full?"
    ... We had to reboot a server twice after a network card hang. ... The last minutes previous to the network hang and system hard reset ... Dec 8 10:43:25 urutu kernel: NETDEV WATCHDOG: eth0: transmit timed out ...
    (Linux-Kernel)
  • SBS 2000 SP1 (/SP4) system hang
    ... Each hard disk was an 72 GB Ultra 3 hard disk and the result ... while I believe I knew the location to move the cache configuration /drives ... they do not use ISA server anyway, (after the completion of the migration I ... manually with out the non-core service then starting that it did not hang ...
    (microsoft.public.windows.server.sbs)
  • RE: MS rec. change for DNS & DHCP running on 1 server needs undoin
    ... application hang and printer: ... Please do clean boot on printer server and problematic clients at same ... Please try to show me more details about your print spooler issue, ... Please let me know the detail steps of the recommendation action, ...
    (microsoft.public.windows.server.sbs)

Loading