Results 1 to 4 of 4

Thread: DCOM Question with VB.NET [resolved]

Threaded View

  1. #1

    Thread Starter
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    DCOM Question with VB.NET [resolved]

    I have the following in a .NET winform:

    VB Code:
    1. Try
    2.  
    3.             Dim objExcelApp As Object
    4.  
    5.  
    6.             Dim lsIP As String = "192.168.1.194" 'IP of the other machin
    7.  
    8.             objExcelApp = CreateObject("Excel.Application", lsIP)
    9.  
    10.         Catch OBJEX As Exception
    11.  
    12.             Dim lsErrStr As String
    13.  
    14.             lsErrStr = OBJEX.Message
    15.  
    16.             MsgBox(lsErrStr)
    17.  
    18.         End Try

    The error message I get is:

    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?
    Last edited by mendhak; Mar 11th, 2005 at 12:55 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width