PRB: Run-Time Error When You Use DCOM to Instantiate RDSServer.DataFactory (272835)
The information in this article applies to:
- ActiveX Data Objects (ADO) 2.5
- ActiveX Data Objects (ADO) 2.6
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
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 <Drive>:\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.
REFERENCES
For more information on how to create and configure COM+ applications and components, see the following article on the Microsoft Developer Network (MSDN):
Modification Type: | Major | Last Reviewed: | 1/10/2001 |
---|
Keywords: | kbDSupport kbprb KB272835 |
---|
|