473,387 Members | 1,791 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

COM+ server in .net

Hi All,

I would like to know whether the following limitation exists in .net.

I want to implement a COM+ exe server to which I would like to connect with
a delphi, a vb6 and a c# client. When I try to add reference to the tlb in
C#, an error message appears stating the following:

Converting the type library to a .NET assembly failed. Type library
Kispajtas was exported from a CLR assembly and can not be re-imported as a
CLR assembly.

It seems to me that the above scenario cannot be implemented, because a C#
client cannot use a dotnet written COM+ server in the way as delphi can ???
This seems quite odd to me.

If this is not so or you know a workaround please let me know.

Thanks,
Jozsi
Nov 17 '05 #1
4 3854
In message <O2**************@TK2MSFTNGP10.phx.gbl>, Jozsef Bekes
<bj****@hotmail.com> writes
Hi All,

I would like to know whether the following limitation exists in .net.

I want to implement a COM+ exe server to which I would like to connect with
a delphi, a vb6 and a c# client. When I try to add reference to the tlb in
C#, an error message appears stating the following:

Converting the type library to a .NET assembly failed. Type library
Kispajtas was exported from a CLR assembly and can not be re-imported as a
CLR assembly.

It seems to me that the above scenario cannot be implemented, because a C#
client cannot use a dotnet written COM+ server in the way as delphi can ???
This seems quite odd to me.

If this is not so or you know a workaround please let me know.


Don't reference the type library. Reference the assembly.

--
Steve Walker
Nov 17 '05 #2
"Steve Walker" <st***@otolith.demon.co.uk> wrote in message
news:Gc**************@otolith.demon.co.uk...
In message <O2**************@TK2MSFTNGP10.phx.gbl>, Jozsef Bekes
<bj****@hotmail.com> writes
Hi All,

I would like to know whether the following limitation exists in .net.

I want to implement a COM+ exe server to which I would like to connect
with
a delphi, a vb6 and a c# client. When I try to add reference to the tlb in
C#, an error message appears stating the following:

Converting the type library to a .NET assembly failed. Type library
Kispajtas was exported from a CLR assembly and can not be re-imported as a
CLR assembly.

It seems to me that the above scenario cannot be implemented, because a C#
client cannot use a dotnet written COM+ server in the way as delphi can
???
This seems quite odd to me.

If this is not so or you know a workaround please let me know.


Don't reference the type library. Reference the assembly.

--
Steve Walker

Hi

Thank you for the answer, but an exe cannot be referenced as far as I know
(or is there a way?), and I'd like to avoid splitting the server into an exe
and a dll (other clients do not need it...).

Regards,
Jozsi
Nov 17 '05 #3
In message <ek**************@TK2MSFTNGP12.phx.gbl>, Jozsef Bekes
<bj****@hotmail.com> writes
"Steve Walker" <st***@otolith.demon.co.uk> wrote in message
news:Gc**************@otolith.demon.co.uk...
In message <O2**************@TK2MSFTNGP10.phx.gbl>, Jozsef Bekes
<bj****@hotmail.com> writes
Hi All,

I would like to know whether the following limitation exists in .net.

I want to implement a COM+ exe server to which I would like to connect
with
a delphi, a vb6 and a c# client. When I try to add reference to the tlb in
C#, an error message appears stating the following:

Converting the type library to a .NET assembly failed. Type library
Kispajtas was exported from a CLR assembly and can not be re-imported as a
CLR assembly.

It seems to me that the above scenario cannot be implemented, because a C#
client cannot use a dotnet written COM+ server in the way as delphi can
???
This seems quite odd to me.

If this is not so or you know a workaround please let me know.
Don't reference the type library. Reference the assembly.

Thank you for the answer, but an exe cannot be referenced as far as I know
(or is there a way?), and I'd like to avoid splitting the server into an exe
and a dll (other clients do not need it...).


Any specific reason for hosting it in an exe rather than as a dll in
component services? How have you implemented an exe server in C#?

--
Steve Walker
Nov 17 '05 #4
You seem to confuse COM+ with COM interop. .NET assemblies need to be
registered in the COM+ catalog, this can be done using regsvcs.exe, but this
is not what you are looking for.
You seem to refer to a .tlb file from within VS, this .tlb file can only be
used by native COM clients only (VB, Delphy, C++ ..) , .NET (C#) clients
don't need to reference the typelib, they need a reference to the .NET
assembly , unfortunately this can't be done from within VS for .exe
assemblies. One option is to run the compiler from the command line, this
one allows you to refer to .exe assemblies (csc /r:yourAssembly.exe .....),
but much better would be to split the .exe into separate components.
Willy.

"Jozsef Bekes" <bj****@hotmail.com> wrote in message
news:ek**************@TK2MSFTNGP12.phx.gbl...
"Steve Walker" <st***@otolith.demon.co.uk> wrote in message
news:Gc**************@otolith.demon.co.uk...
In message <O2**************@TK2MSFTNGP10.phx.gbl>, Jozsef Bekes
<bj****@hotmail.com> writes
Hi All,

I would like to know whether the following limitation exists in .net.

I want to implement a COM+ exe server to which I would like to connect
with
a delphi, a vb6 and a c# client. When I try to add reference to the tlb
in
C#, an error message appears stating the following:

Converting the type library to a .NET assembly failed. Type library
Kispajtas was exported from a CLR assembly and can not be re-imported as
a
CLR assembly.

It seems to me that the above scenario cannot be implemented, because a
C#
client cannot use a dotnet written COM+ server in the way as delphi can
???
This seems quite odd to me.

If this is not so or you know a workaround please let me know.


Don't reference the type library. Reference the assembly.

--
Steve Walker

Hi

Thank you for the answer, but an exe cannot be referenced as far as I know
(or is there a way?), and I'd like to avoid splitting the server into an
exe and a dll (other clients do not need it...).

Regards,
Jozsi

Nov 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: John Lull | last post by:
I'm writing a multithreaded COM server to manage a pool of hardware resources. All objects are designed to be thread-safe, and I've set sys.coinit_flags to COINIT_MULTITHREADED before importing...
0
by: Dave | last post by:
I have been trying an example from the Python Programming on Win32 book on the lastest versions of python (2.3.3) and win32all (build 163). I create the COM object and try to call it from VB but i...
2
by: Phil | last post by:
I am using a Pascal like language (Wealth-Lab) on W2K and call this server: class HelloWorld: _reg_clsid_ = "{4E797C6A-5969-402F-8101-9C95453CF8F6}" _reg_desc_ = "Python Test COM Server"...
1
by: Prashanth Uppunda | last post by:
Hello, Does anybody have an idea on how to instantiate a DCOM server residing in another machine using C#? Thanks Prashanth
7
by: Prashanth | last post by:
Hi, We are facing some issues in COM+ deployment. We get system error "Unable to enlist in a distributed transaction" . It has a very inconsistant behaviour. On refreshing the screens couple of...
9
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...
8
by: Joakim Persson | last post by:
Hello all. I am involved in a project where we have a desire to improve our software testing tools, and I'm in charge of looking for solutions regarding the logging of our software (originating...
3
by: Joseph | last post by:
Please any help will do!!!! I have several issues implementing serviced components with .NET framework. Please stop a few minutes to read the issues found on my application. This is an academic...
5
by: Kedar Agarkar | last post by:
: This is general query seeking opinions about COM+ Development wherein Server is developed in C# and Client accessing that across machines is also C#. Wish to seek experienced words on...
6
by: Catherine Jones | last post by:
Hi all, we need urgent help in a matter. We are trying to pass a COM object from the client to server and are facing some problems in the same. We've our client in C# as well as the Server...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.