Microsoft KB Archive/272835

= PRB: Run-Time Error When You Use DCOM to Instantiate RDSServer.DataFactory =

Article ID: 272835

Article Last Modified on 1/10/2001

-

APPLIES TO


 * Microsoft ActiveX Data Objects 2.5
 * Microsoft ActiveX Data Objects 2.6
 * Microsoft Visual Basic 5.0 Professional Edition
 * Microsoft Visual Basic 6.0 Professional Edition
 * Microsoft Visual Basic 5.0 Enterprise Edition
 * Microsoft Visual Basic 6.0 Enterprise Edition

-



This article was previously published under Q272835



SYMPTOMS
When you use the CreateObject method of the RDS.DataSpace object with Distributed Component Object Model (DCOM) to create an instance of the RDSServer.DataFactory object on a remote Windows 2000-based computer, you may receive the following error message:

Run-time error '4100': Method 'CreateObject' of object 'IDataSpace' failed



CAUSE
By default, you cannot use DCOM to launch the RDSServer.DataFactory object remotely; RDSServer.DataFactory is not configured for this. To instantiate an RDSServer.DataFactory object using DCOM, you need to specify a surrogate process.



RESOLUTION
To resolve this problem, install RDSServer.DataFactory as a component in a COM+ Server application on the remote Windows 2000-based computer. This allows the component to execute in the context of an instance of the DllHost.exe surrogate process.



MORE INFORMATION
The Msadcf.dll file, which is located in the :\Program Files\Common Files\System\Msadc folder, implements RDSServer.DataFactory. You must install Msadcf.dll in a COM+ Server application to configure RDSServer.DataFactory to execute within an instance of the Dllhost.exe surrogate process.

