|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Problem with .NET object registered in COM+I have a .NET object that's registered in COM+. I'm calling it from a VB6 dll that's registered in COM+ like so: Set objEFV = CreateObject("MyDotNetDLL.MyClass") strResult = objEFV.DoMyMethod(Param1, Param2) I think it's registered correctly. I generated a .tlb file for it on my development box and then registered the dll with this tlb on the box I'm trying to run it using regasm /codebase MyDLLName.dll. I've registered this same .NET dll in other environments this way. If I look in Component Servies on a machine where the .NET dll is running successfully. I see a 0 under Objects, Activated, In Call, and Call Time. When I look there for the .NET dll that's not running successfully. I one see a 0 for Objects and Activated. I'm wondering if this means if the object is being instantiated, but the method isn't being called successfully. -Eric <eric.gofo***@gmail.com> wrote in message
Show quote news:1159379911.114664.325980@e3g2000cwe.googlegroups.com... So what's the problem?> Hello, > > I have a .NET object that's registered in COM+. I'm calling it from a > VB6 dll that's registered in COM+ like so: > > Set objEFV = CreateObject("MyDotNetDLL.MyClass") > > strResult = objEFV.DoMyMethod(Param1, Param2) > > > I think it's registered correctly. I generated a .tlb file for it on > my development box and then registered the dll with this tlb on the box > I'm trying to run it using regasm /codebase MyDLLName.dll. > > I've registered this same .NET dll in other environments this way. > > If I look in Component Servies on a machine where the .NET dll is > running successfully. I see a 0 under Objects, Activated, In Call, and > Call Time. > > When I look there for the .NET dll that's not running successfully. I > one see a 0 for Objects and Activated. > > I'm wondering if this means if the object is being instantiated, but > the method isn't being called successfully. > Do you get an error? Have you tried test the component from a VBScript file. Just paste Set objEFV = CreateObject("MyDotNetDLL.MyClass") strResult = objEFV.DoMyMethod(Param1, Param2) into an empty text file an rename it "test.vbs". Then run it to test. David You're registering it like you would a COM object... you sure you're
doing COM+? After you put your assembly in the GAC use regsvcs.exe to register it. eric.gofo***@gmail.com wrote: Show quote > Hello, > > I have a .NET object that's registered in COM+. I'm calling it from a > VB6 dll that's registered in COM+ like so: > > Set objEFV = CreateObject("MyDotNetDLL.MyClass") > > strResult = objEFV.DoMyMethod(Param1, Param2) > > > I think it's registered correctly. I generated a .tlb file for it on > my development box and then registered the dll with this tlb on the box > I'm trying to run it using regasm /codebase MyDLLName.dll. > > I've registered this same .NET dll in other environments this way. > > If I look in Component Servies on a machine where the .NET dll is > running successfully. I see a 0 under Objects, Activated, In Call, and > Call Time. > > When I look there for the .NET dll that's not running successfully. I > one see a 0 for Objects and Activated. > > I'm wondering if this means if the object is being instantiated, but > the method isn't being called successfully. > > -Eric |
|||||||||||||||||||||||