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 4 3870
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
"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> writesHi 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
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> writesHi 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
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******** ******@TK2MSFTN GP12.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> writesHi 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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 pythoncom.
The problem is that all requests to the server seem to be serialized by COM. To
demonstrate the problem, I'm including a simple test server that exposes one
interface object, PyComThreads.Application, with a single method sleep(delay)....
|
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 can't seem to create the child.
debugging = 1
if debugging:
from win32com.server.dispatcher import DefaultDebugDispatcher
useDispatcher = DefaultDebugDispatcher
else:
useDispatcher = None
class Parent:
|
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"
_reg_progid_ = "Python.TestServer"
_public_methods_ =
_public_attrs_ =
_readonly_attrs_ =
|
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
|
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 times, the
error disappears.Also it reappears abruptly giving an impression that
the transaction failed although the changes are commited to the
database.Please let me know if any of you have faced it before.
This is a .Net Application with...
| |
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
(xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).
On the aspx page I have the object tag as follows:
|
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 from
embedded devices). Currently, we are using a heavyweight, proprietary
log tool developed by another part of the company. This tool contains
all "standard" logging functionality, but we also need to insert
"debug" log points in the software of...
|
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 project emulating an online billing software for a health care facility.
My application is divided into different projects which they map to the logical layers that microsoft suggests for architectural design.
1.. A presentation layer that is...
|
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 issues of COM-.NET interop that is
playing major decisive role on both sides and is making decisions
complicated only based upon theory.
|
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 in C# and we're using
remoting for client to server communication.
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |