Results 1 to 5 of 5

Thread: Trickie VB.Net question - still having trouble here ... HELP!!!

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2002
    Posts
    3

    Angry Trickie VB.Net question - still having trouble here ... HELP!!!

    I am trying to create a com object on a remote server using:

    dim MyObject as Object
    MyObject = CreateObject("TheObject.Whatever", RemoteServerName)

    It keeps returning the error: Cannot create ActiveX component

    Beyond that, there isn't much information given.

    I have a RAS connection to the remote server.

    Have any of you had any experience with this? Perhaps you can offer some insight and help me get over this confusing problem.

    If none of you know the answer, do you know of any other messege boards or forums I might be able to find my answer on?
    Last edited by JayJoe; Jun 18th, 2002 at 04:15 PM.

  2. #2
    Hyperactive Member
    Join Date
    Dec 2001
    Location
    Dublin, Ireland
    Posts
    262
    You now use the HttpServerUtility class methinks. Check out the documentation on msdn:-

    http://msdn.microsoft.com/library/de...mberstopic.asp

    and in particular it's CreateObject method:-

    http://msdn.microsoft.com/library/de...bjecttopic.asp

  3. #3

    Thread Starter
    New Member
    Join Date
    Jun 2002
    Posts
    3

    Unhappy Still need help here ...

    I looked into it, and it seems that the HttpServerUtility class (and everything in the System.Web namespace) is intended for ASP.Net, not VB.Net. I can add the namespace to my project; however, I have not been able to find a way of specifything the server to connect to. It seems it is supposed to be run server side of a web page and intrinsicly know the server name from there.

    Anyone know more about the HttpServerUtility that I'm missing? Or the System.Web namespace ... or any way to create an object on a server over a TCP/IP connection without recieving the above stated error?

    Any help much appreciated.

  4. #4

    Thread Starter
    New Member
    Join Date
    Jun 2002
    Posts
    3
    Help please ... or any ideas of where I can go to look for help?

  5. #5
    Hyperactive Member
    Join Date
    Dec 2001
    Location
    Dublin, Ireland
    Posts
    262
    Perhaps do a search on msdn on interoperability and how to make your com object available through a namespace. Beyond that I can't help.

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