RE: dcom error

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: John Bukowski [MSFT] ([MSFT)
Date: 07/31/04


Date: Sat, 31 Jul 2004 14:07:01 -0700

In Computer Management
     under Services and Applications
         (Sort by Name and look for)
         Windows Image Acquisition (WIA)

Make sure the Startup Type is Manual
Make sure you can right click on it and start it.

This service is the "DCOM" server for stisvc.

You can search the registry for the GUID from the error
message {A1F4E726-8CF1-11D1-BF92-0060081ED811} and walk
to the same conclusion.

Key Name: HKEY_CLASSES_ROOT\AppID\{A1F4E726-8CF1-11D1-BF92-0060081ED811}
Class Name: <NO CLASS>
Last Write Time: 9/16/2003 - 6:36 AM
Value 0
  Name: <NO NAME>
  Type: REG_SZ
  Data: WIA Device Manager

Value 1
  Name: LocalService
  Type: REG_SZ
  Data: StiSvc

Value 2
  Name: Run As
  Type: REG_SZ
  Data: Interactive User

<snip>

Then looking at the services for stisvc you find

Key Name: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\stisvc
Class Name: <NO CLASS>
Last Write Time: 7/31/2004 - 3:30 PM
<snip>

Value 8
  Name: Description
  Type: REG_SZ
  Data: Provides image acquisition services for scanners and cameras.

Key Name: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\stisvc\Parameters
Class Name: <NO CLASS>
Last Write Time: 9/16/2003 - 6:36 AM
Value 0
  Name: ServiceDll
  Type: REG_EXPAND_SZ
  Data: %SystemRoot%\system32\wiaservc.dll
<snip>

I reproduced your error by disabling the service and then
writing a script to instantiate a Wia.Script DCOM object.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wia/wia/refscript1/wiascripting

Hope this helps,

John Bukowski [MSFT]
Escalation Engineer

"bruno" wrote:

> i keep getting this error " Event Type: Error
> Event Source: DCOM
> Event Category: None
> Event ID: 10005
> Date: 30-07-2004
> Time: 21:30:19
> User: MACHINE\Administrator
> Computer: MACHINE
> Description:
> DCOM got error "The service cannot be started, either because it is disabled or because it has no enabled devices associated with it. " attempting to start the service StiSvc with arguments "" in order to run the server:
> {A1F4E726-8CF1-11D1-BF92-0060081ED811}
>
> For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
> " can someone help me?