[python-win32] A tale of two COM servers (same py code works differently)
Jim Bell
Jim at JC-Bell.com
Wed Dec 18 20:11:14 CET 2013
On 2013-12-18 12:34 PM, Tim Roberts wrote:
> Jim Bell wrote:
>> I have two COM servers. ....
>> 4. Looks for CLSID in HKCR\CLSID\{4...}, doesn't find it.
>> *5. **Stops looking and gives up, **throwing pywintypes.com_error:
>> (-2147221164, 'Class not registered', None, None)*
>>
>> So why does it stop looking for one but keep looking for the other?
>
> Are you absolutely sure that the Python client on the broken server is
> using a 32-bit Python? 64-bit processes are not subjected to the
> registry redirection.
>
> Is the broken server running the application as a service, or in an
> elevated context, or in a scheduled task that is running as the system
> user?
Both client runs are from the same command-line, with just the tag
replaced. Same path, env, everything. But it does seem like a 32/64 bit
issue somehow.
The working one is a demand-started .EXE, and the broken one is a .DLL,
but I don't see it getting far enough to care. Both were installed as
Admin, as that's the Windows7 way. Script was run non-elevated (both times).
Thanks for your thoughts.
-Jim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20131218/12e35027/attachment.html>
More information about the python-win32
mailing list