Results 1 to 4 of 4

Thread: DCOM Question with VB.NET [resolved]

  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.

  2. #2
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    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
    Nobody knows what software they want until after you've delivered what they originally asked for.

    Don't solve problems which don't exist.

    "If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)

    2 idiots don't make a genius.

  3. #3

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

    Re: DCOM Question with VB.NET

    Thanks for the link, I'm glad to know I was on the right path.

  4. #4
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    Re: DCOM Question with VB.NET [resolved]

    Be ye warned: XP SP2 severely hampers (breaks) the operation of DCOM.
    Nobody knows what software they want until after you've delivered what they originally asked for.

    Don't solve problems which don't exist.

    "If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)

    2 idiots don't make a genius.

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