|
-
December 14th, 2018, 04:07 AM
#1
Dcom Interface No such interface supported after migration to X64
we changed our Software from X86 to X64 since there is a Problem with the dcom Interface. We get the following error
018-12-14 06:26:23.999 [002E8,0668] DEVELOPER TRACE: TComPtr<{2DF6EF8A-3EE8-11D1-BF07-008029E20A31}="">::coCreateInstance(clsid={2DF6EF8B-3EE8-11D1-BF07-008029E20A31}="NmsTaskManager.JobManager",user=tkocher) failed with rc=0x80004002 No such interface supported
we created the Interface as we did this for X86 by setting the registry keys
Code:
static void doSetDcomClientInterface( const CString& serverName, const CString& aName, const CString& cName, const CString& clsid, const CString& appid ){
out("... doSetDcomClientInterface serverName " + serverName + " aName " + aName + "cName " + cName + " clsid " + clsid + " appid " + appid + " ... ");
doDeleteKey( "HKCR\\CLSID\"+clsid );
doDeleteKey( "HKCR\\AppID\"+appid );
doSetKey( "HKCR\"+cName , "" , cName );
doSetKey( "HKCR\"+cName+"\\CLSID" , "" , clsid );
doSetKey( "HKCR\\AppID\"+appid , "" , aName );
doSetKey( "HKCR\\AppID\"+appid , "RemoteServerName" , serverName );
doSetKey( "HKCR\\CLSID\"+clsid , "" , cName );
doSetKey( "HKCR\\CLSID\"+clsid , "AppID" , appid );
out("... doSetDcomClientInterface serverName " + serverName + " aName " + aName + "cName " + cName + " clsid " + clsid + " appid " + appid + " done ... ");
}
doSetKey is setting the registry Key in the windows registry
the parameters for the the NmsTaskManager.JobManager are
serverName:PC1087
aName:Nms Task Manager
cName:NmsTaskManager.JobManager
clsid:{2DF6EF8B-3EE8-11D1-BF07-008029E20A31}
appid:{2DF6EF81-3EE8-11D1-BF07-008029E20A31}
which are the same which worked on X86
must i set the dcom Interace for X64 differently?
does anybody knows why i does no more works ?
Last edited by 2kaud; January 18th, 2019 at 07:59 AM.
Reason: Added code tags
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|