I have a problem with communication with a DCOM object
I have the following architecture.
3 computers in the same domain let's call it MyDomain
on the first computer i have an application installed which has a DCOM component for some data operation
on the second Computer i have Microsoft Dynamics CRM 4.0 installed which call the DCOM interface through a webservice rhich runs under the CRM App Pool. The app pool runs unde the domain admin account.
On this computer i have registered the com TLB file using regtlibv12 and on the computer with the DCOM component i gave rights to the domain admin to be able to call and initialize the dcom component remotely
Everything work fine when i call the dcom component from the CRM web interface on the computer where CRM is installed. But when i try to call the component accesing the CRM interface from a different computer it fails with the error from the title
Here is how i initialize the DCOM component
Type objectType = Type.GetTypeFromCLSID(new Guid(mentorClassId), mentorServer, true);
objectServer = Activator.CreateInstance(objectType) as IObjectServer;
IObjectServer is the interface exposed by the DCOM. The first line works well in both cases , but the application crashes at the second line when the call is done from outside the web machine, using the CRM interface.
View Complete Post