ActiveX can't create object with C# - DOTNET

This is a discussion on ActiveX can't create object with C# - DOTNET ; Hi!, I have a rare problem. I developed a DLL in C# that i'm using in a vb6 proyect. The problem is that if I instance a class using New works fine. But if I use createobject, VB tell me ...

+ Reply to Thread
Results 1 to 4 of 4

ActiveX can't create object with C#

  1. Default ActiveX can't create object with C#

    Hi!, I have a rare problem. I developed a DLL in C# that i'm using in a vb6
    proyect.
    The problem is that if I instance a class using New works fine. But if I use
    createobject, VB tell me "Active can't create object"'. And I need use this
    dll in ASP, so, I must use createobject...

    Set Action = new AlliedTProConnect.SearchAvailabilityAction 'Work OK

    Set Action = CreateObject("AlliedTProConnect.SearchAvailabilityAction") 'Fail

    Any ideas?

    Thanks!!

  2. Default Re: ActiveX can't create object with C#

    does activex require something like this as in COM component?
    public void New() {
    myBase.new;
    ....
    }

    "Steve" <Steve@discussions.microsoft.com> wrote in message
    newsD7298DE-1C4F-407B-98A3-2D453C8B30BB@microsoft.com...
    > Hi!, I have a rare problem. I developed a DLL in C# that i'm using in a
    > vb6
    > proyect.
    > The problem is that if I instance a class using New works fine. But if I
    > use
    > createobject, VB tell me "Active can't create object"'. And I need use
    > this
    > dll in ASP, so, I must use createobject...
    >
    > Set Action = new AlliedTProConnect.SearchAvailabilityAction 'Work OK
    >
    > Set Action = CreateObject("AlliedTProConnect.SearchAvailabilityAction")
    > 'Fail
    >
    > Any ideas?
    >
    > Thanks!!




  3. Default Re: ActiveX can't create object with C#

    I resolve the problem, it was very stupid. The problem was the name of
    namespace in the C# class. I can't belive that I lost 3 hours because so
    stupid problem...
    But, thanks for the help.



    "gs" wrote:

    > does activex require something like this as in COM component?
    > public void New() {
    > myBase.new;
    > ....
    > }
    >
    > "Steve" <Steve@discussions.microsoft.com> wrote in message
    > newsD7298DE-1C4F-407B-98A3-2D453C8B30BB@microsoft.com...
    > > Hi!, I have a rare problem. I developed a DLL in C# that i'm using in a
    > > vb6
    > > proyect.
    > > The problem is that if I instance a class using New works fine. But if I
    > > use
    > > createobject, VB tell me "Active can't create object"'. And I need use
    > > this
    > > dll in ASP, so, I must use createobject...
    > >
    > > Set Action = new AlliedTProConnect.SearchAvailabilityAction 'Work OK
    > >
    > > Set Action = CreateObject("AlliedTProConnect.SearchAvailabilityAction")
    > > 'Fail
    > >
    > > Any ideas?
    > >
    > > Thanks!!

    >
    >
    >


  4. Default Re: ActiveX can't create object with C#

    yep, it is easy to overlook that even though one find out quickly when
    browsing the object with the visual studio.

    I almost fell into the trap; the object browser saved me.

    "Steve" <Steve@discussions.microsoft.com> wrote in message
    news:7D570619-52BE-49A7-89B9-DDE63C85D104@microsoft.com...
    >I resolve the problem, it was very stupid. The problem was the name of
    > namespace in the C# class. I can't belive that I lost 3 hours because so
    > stupid problem...
    > But, thanks for the help.
    >
    >
    >
    > "gs" wrote:
    >
    >> does activex require something like this as in COM component?
    >> public void New() {
    >> myBase.new;
    >> ....
    >> }
    >>
    >> "Steve" <Steve@discussions.microsoft.com> wrote in message
    >> newsD7298DE-1C4F-407B-98A3-2D453C8B30BB@microsoft.com...
    >> > Hi!, I have a rare problem. I developed a DLL in C# that i'm using in a
    >> > vb6
    >> > proyect.
    >> > The problem is that if I instance a class using New works fine. But if
    >> > I
    >> > use
    >> > createobject, VB tell me "Active can't create object"'. And I need use
    >> > this
    >> > dll in ASP, so, I must use createobject...
    >> >
    >> > Set Action = new AlliedTProConnect.SearchAvailabilityAction 'Work OK
    >> >
    >> > Set Action = CreateObject("AlliedTProConnect.SearchAvailabilityAction")
    >> > 'Fail
    >> >
    >> > Any ideas?
    >> >
    >> > Thanks!!

    >>
    >>
    >>




+ Reply to Thread

Similar Threads

  1. Create ActiveX Object in IIS6
    By Application Development in forum Inetserver
    Replies: 3
    Last Post: 04-10-2007, 03:53 AM
  2. ActiveX component can't create object
    By Application Development in forum XML SOAP
    Replies: 2
    Last Post: 12-22-2006, 02:51 AM
  3. ActiveX component can't create object
    By Application Development in forum XML SOAP
    Replies: 1
    Last Post: 10-02-2006, 01:11 PM
  4. ActiveX component can't create object
    By Application Development in forum Inetserver
    Replies: 1
    Last Post: 06-01-2006, 04:36 PM