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 4 3797
Hi there... Make sure your COM's references are present in the machine from
which you're trying to create your .NET Windows App. Regards.
--
Angel J. Hernández M.
MCP - MCAD - MCSD - MCDBA http://groups.msn.com/desarrolladoresmiranda http://ajhsis.net
"Fidias Gil de Montes" <Fidias Gil de Mo****@discussions.microsoft.com>
escribió en el mensaje
news:67**********************************@microsof t.com... 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
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
"Angel J. Hernández M." wrote: Hi there... Make sure your COM's references are present in the machine from which you're trying to create your .NET Windows App. Regards.
-- Angel J. Hernández M. MCP - MCAD - MCSD - MCDBA http://groups.msn.com/desarrolladoresmiranda http://ajhsis.net
"Fidias Gil de Montes" <Fidias Gil de Mo****@discussions.microsoft.com> escribió en el mensaje news:67**********************************@microsof t.com...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
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
"Fidias Gil de Montes" wrote: 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
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
"Fidias Gil de Montes" wrote: 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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: pieter.breed |
last post by:
Hi All,
The company I work for has traditionally used COM/ActiveX for the
solutions that it provides. We are in the process of moving to .NET and
a few applications have been written in VB.NET...
|
by: Keith Rowe |
last post by:
Hello,
I am trying to reference a Shockwave Flash Object on a vb code behind page
in an ASP.NET project and I receive the following error:
Guid should contain 32 digits with 4 dashes...
|
by: gulu man |
last post by:
Hi,
What is the substitute for COM objects in .NET?
How can I create something similar to com in .net?
Is it still possible?
Thank you
|
by: Praveen |
last post by:
Hi,
I have installed WebSphere Portal on AIX and connected to DB2 on a
remote machine, Getting the followin errors when trying to get the
values from database thru applications installed on...
|
by: Duane Pressley |
last post by:
I'm looking for someone to help me make sense of the results I'm observing when using the ThreadPool class in a COM-Interop scenario. Here's the set up:
1.. A classic ASP page instantiates and calls...
|
by: Mike |
last post by:
I have been developing ASP applications for quite a while now. Most of the
apps that I deploy are a typical n-tier setup. ASP GUI on a web server,
Business and Data Components written in VB6...
|
by: Brian Henry |
last post by:
does anyone have a class to interact with a com or lpt port? I need to be
able to send hex codes through the data lines D1 - D8 on a LPT port... or
D1-D4 on serial... i have seen classes in the...
|
by: Nadav |
last post by:
Hi,
Introduction
***************
I have a system build of a collection of 'Native COM objects' and '.NET COM interop' objects, all of the COM objects are managed through a 'Native COM' layer,...
|
by: Lasse Edsvik |
last post by:
Hello
I'm trying to build a simple COM+ app in vs.net using C# and i cant register
it in component manager.....
what more is needed than this:
using System;
using...
|
by: Z D |
last post by:
Hello,
I'm having a strange problem that is probably due to my lack of
understanding of how threading & COM Interop works in a WinForms.NET
application.
Here's the situation:
I have a 3rd...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
| |