COM+ and .NET

G

Guest

I have written a COM+ server and it works fine with vb 6.0 clients, but it
does not with .NET clients.

For the COM + server, I created a Class Library project and a COM class
inside. Inside the COM class I wrote a function. I built the project and
generated the COMserver.dll and COMserver.tlb files (If I try to do this with
the .dll file I get the message "One or more files do not contain components
or type libraries. These files cannot be installed"). All was OK.

I created an COM+ Application in my machine and I installed a new component
with the COMserver.tlb file. All was OK.

After, I created a Windows application client with VB 6 which called the
component I have already created. It all was OK again.

Finally I created a Windows application client with VB .NET and when I tried
to register the COMserver I got the message:

"A reference to 'COMserver' could not be added. Converting the type library
to a .NET assembly failed. Type library COMserver was exported from a CLR
assembly and can not be re-imported as a CLR assembly"

I hope some of you can help me. Thanks

Fidias Gil de Montes
 
G

Guest

They are present. At least I can create then COM Application with Component
Services and VB 6 and VB.NET list it as a COM Component. In fact, the VB t6
client works fine.

Fidias Gil de Montes
 
G

Guest

I could solve my problem referencing EnterpriseServices and derivating my
classes from ServicedComponent (look at
http://www.15seconds.com/issue/030501.htm for details).

Now, I want to use COM+ role based security for my methods, but Component
Services does not show me my class methods. I mean, I can see my components,
their interfaces, but below those interfaces I can't see any method.

Any idea?

Fidias Gil de Montes
 

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