Hi
Ive been trying to use a VB6 COM object via DCOM.
I have 2 NT Server (both PDCs) and 1 NT Workstation.
Ive set registry entries as follows after registering COM object...
HKEY_LOCAL_MACHINE "Software\Microsoft\Ole"
"EnableDCOM" "Y"
HKEY_LOCAL_MACHINE "Software\Classes\CLSID\<CLSID>"
"AppID" "<CLSID>"
HKEY_LOCAL_MACHINE "Software\Classes\AppID\<clsid>"
"DllSurrogate" "c:\\winnt\\system32\\dllhost.exe"
"RunAs" "Interactive User"
"AuthenticationLevel" 2
And set up trusted relationship between two NT servers
(NT wrkstn is member of trusted domain).
used DCOMcnfg to allow connections from authenticated users
and domain users of trusted domains.
Im using TCP connection orientated protocol and Ive tried both specifying a port range (5000 - 5020) or using the default.
I use a C++ dll to invoke the DCOM using
CoCreateInstanceEx(blah)
using CONNECT level and specifing a username \ password recognised by all domains. requesting IUnknown ptr..
The situation is this...
If I install fresh NT wrkstn / server, apply registry changes and register COM object all works fine!!
When I use DCOMcnfg and alter connection protocol or alter default access, all goes T*ts up.
Sometimes the CLSID for my COM object dissapears from the registry!!!!
Ive got all settings as *i think* they should be and I get the RPC_S_SERVER_UNAVAILABLE hresult return from the
MULTI_QI structure of CoCreateInstanceEx.
I realise this message is very long, and I apologise, but I wanted to get as much detail as possible in the question!
any help appreciated.
PS there's a short but good summary of common COM problems here :
I found it very useful.
cheers.
J.
Ive been trying to use a VB6 COM object via DCOM.
I have 2 NT Server (both PDCs) and 1 NT Workstation.
Ive set registry entries as follows after registering COM object...
HKEY_LOCAL_MACHINE "Software\Microsoft\Ole"
"EnableDCOM" "Y"
HKEY_LOCAL_MACHINE "Software\Classes\CLSID\<CLSID>"
"AppID" "<CLSID>"
HKEY_LOCAL_MACHINE "Software\Classes\AppID\<clsid>"
"DllSurrogate" "c:\\winnt\\system32\\dllhost.exe"
"RunAs" "Interactive User"
"AuthenticationLevel" 2
And set up trusted relationship between two NT servers
(NT wrkstn is member of trusted domain).
used DCOMcnfg to allow connections from authenticated users
and domain users of trusted domains.
Im using TCP connection orientated protocol and Ive tried both specifying a port range (5000 - 5020) or using the default.
I use a C++ dll to invoke the DCOM using
CoCreateInstanceEx(blah)
using CONNECT level and specifing a username \ password recognised by all domains. requesting IUnknown ptr..
The situation is this...
If I install fresh NT wrkstn / server, apply registry changes and register COM object all works fine!!
When I use DCOMcnfg and alter connection protocol or alter default access, all goes T*ts up.
Sometimes the CLSID for my COM object dissapears from the registry!!!!
Ive got all settings as *i think* they should be and I get the RPC_S_SERVER_UNAVAILABLE hresult return from the
MULTI_QI structure of CoCreateInstanceEx.
I realise this message is very long, and I apologise, but I wanted to get as much detail as possible in the question!
any help appreciated.
PS there's a short but good summary of common COM problems here :
I found it very useful.
cheers.
J.