473,387 Members | 1,540 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+

Im a little bit stuck/ confused. Im running through a demonstration example
whereby (following instructions) I have
1. Created a .NET dll Component which has be imported into COM+ using
regsvcs.
2. The .NET dll was added to GAC
3. A client application is written. The instructions mention to add a
reference to this component *but* I cant quite work out what exactly it
wants me to add the reference to.
For instance if I add the reference to the original (.net dll) project then
client works and compiles fine - but surely I am not using the COM+
component only the .net dll.
If I delete the local dll then client still works (but surely client is
using the GAC dll not the COM+ component)
If I instead try to add the reference (in my client project) to the
registered COM+ dll then I get the error "A reference to "StepByStep7_5"
could not be added. Converting the type library to a .NET assembly failed.
Type library StepByStep7_5 was exported from a CLR assembly and can not be
re-imported as a CLR assembly.

All I want to know/ do is be sure that my client is using the registered
COM+ component.

Any advice would be greatly appreciated!

Cheers.

P.S
How do I delete COM+ components too - I have deleted several thru component
services but many more old ones are still being listed in VS2003.net COM+
reference list.
--
Br,
Mark Broadbent
mcdba , mcse+i
=============
Nov 16 '05 #1
2 3038

"Mark Broadbent" <no************@no-spam-please.com> wrote
2. The .NET dll was added to GAC
That's not necessary.
3. A client application is written. The instructions mention to add a
reference to this component *but* I cant quite work out what exactly it
wants me to add the reference to.
For instance if I add the reference to the original (.net dll) project then client works and compiles fine - but surely I am not using the COM+
component only the .net dll.
Yes you are, if everything was done correctly. At the point where the client
code creates an instance of one of your objects, pull up the COM+ explorer.
They should be spinning.
If I delete the local dll then client still works (but surely client is
using the GAC dll not the COM+ component)
Yes, but if the COM+ application still exists then that's what the client is
using. Again, COM+ and the GAC have nothing to do with each other.
If I instead try to add the reference (in my client project) to the
registered COM+ dll then I get the error "A reference to "StepByStep7_5"
could not be added. Converting the type library to a .NET assembly failed.
Type library StepByStep7_5 was exported from a CLR assembly and can not be
re-imported as a CLR assembly.
Which is to be expected =)
How do I delete COM+ components too - I have deleted several thru component services but many more old ones are still being listed in VS2003.net COM+
reference list.


Hunt down all the copies of the typelibs and unregister them. Be careful;
that's how machines get borked in the first place.
--
Klaus H. Probst, MVP
http://www.vbbox.com/
Nov 16 '05 #2
Hi Klaus, this post was done by accident under cah_samosir's one. I reposted
it later, But thanks for your input I shall go over it tomorrow when I can
spare a minute.

Thanks again.
Mark.

--
Br,
Mark Broadbent
mcdba , mcse+i
=============
"Klaus H. Probst" <us*******@vbbox.com> wrote in message
news:OW**************@TK2MSFTNGP11.phx.gbl...

"Mark Broadbent" <no************@no-spam-please.com> wrote
2. The .NET dll was added to GAC
That's not necessary.
3. A client application is written. The instructions mention to add a
reference to this component *but* I cant quite work out what exactly it
wants me to add the reference to.
For instance if I add the reference to the original (.net dll) project

then
client works and compiles fine - but surely I am not using the COM+
component only the .net dll.


Yes you are, if everything was done correctly. At the point where the

client code creates an instance of one of your objects, pull up the COM+ explorer. They should be spinning.
If I delete the local dll then client still works (but surely client is
using the GAC dll not the COM+ component)
Yes, but if the COM+ application still exists then that's what the client

is using. Again, COM+ and the GAC have nothing to do with each other.
If I instead try to add the reference (in my client project) to the
registered COM+ dll then I get the error "A reference to "StepByStep7_5"
could not be added. Converting the type library to a .NET assembly failed. Type library StepByStep7_5 was exported from a CLR assembly and can not be re-imported as a CLR assembly.


Which is to be expected =)
How do I delete COM+ components too - I have deleted several thru

component
services but many more old ones are still being listed in VS2003.net COM+ reference list.


Hunt down all the copies of the typelibs and unregister them. Be careful;
that's how machines get borked in the first place.
--
Klaus H. Probst, MVP
http://www.vbbox.com/

Nov 16 '05 #3

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

Similar topics

2
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...
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...
9
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
1
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...
5
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...
3
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...
1
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...
1
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,...
26
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...
8
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...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...

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.