DCOM Question with VB.NET [resolved]
I have the following in a .NET winform:
VB Code:
Try
Dim objExcelApp As Object
Dim lsIP As String = "192.168.1.194" 'IP of the other machin
objExcelApp = CreateObject("Excel.Application", lsIP)
Catch OBJEX As Exception
Dim lsErrStr As String
lsErrStr = OBJEX.Message
MsgBox(lsErrStr)
End Try
The error message I get is:
Quote:
Cannot create ActiveX component
A bit of searching told me that the computer I'm trying to create the COM object on has to be "configured". Also, the word DCOMCNFG.EXE was thrown in there.
Can someone explain to me what I need to do on the remote machine with DCOMCNFG.EXE?
Re: DCOM Question with VB.NET
This is all you need. Take a deep breath and dig in.
http://www.vbforums.com/showthread.p...highlight=DCOM
Re: DCOM Question with VB.NET
Thanks for the link, I'm glad to know I was on the right path.
Re: DCOM Question with VB.NET [resolved]
Be ye warned: XP SP2 severely hampers (breaks) the operation of DCOM.