Problem with .NET object registered in COM+

E

eric.goforth

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
 
D

David Browne

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.

So what's the problem?

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
 
A

agapeton

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top