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
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