MS Windows COM error - access denied

jim.vickroy jim.vickroy at
Mon Aug 27 16:47:55 CEST 2001


I'm trying to create a Windows *service* that exposes a COM object.

I appear to be registering the COM object, installing the service that
exposes it, and then starting that service.

When I attempt to access the COM object from another process via a
statement of the form:

handle = win32com.client.Dispatch ( entry.COM_server._reg_progid_ )

the following exception is raised:

        com_error: (-2147024891, 'Access is denied.', None, None)

Any ideas what I'm doing wrong?

If the COM object is not also implemented as a *service*, it can be
accessed with no problem.

The system is:

Python 2.0
MS Windows 2k


More information about the Python-list mailing list