473,396 Members | 2,061 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,396 software developers and data experts.

dotnet uninstall breaks interprocess COM object events

I have a package of COM objects written in C++ in version 6. It is
installed separately and shared by several applications. Then I have
a .NET application written in VS2005 that uses these objects. It is
installed by a .NET setup project. I excluded all the COM dll's so
that they don't get unregistered when the .NET app is uninstalled.
After uninstalling the .NET app I can still create objects but I
cannot assign an object to a "WithEvents" variable in VB6 if that
object is crossing a process boundary. In-process it works fine but
out-of-process it flings me an "automation error". All my COM events
are automation-compatible, discoverable with
IConnectionPointContainer, etc., and have not given me any trouble in
7 or 8 years of use until now.

Any clue what .NET is clobbering and how I can fix it? I've gone over
the setup project looking for anything funny, including the registry
keys, and whatever it is I'm missing it.

Thanks, Carl

Mar 20 '07 #1
2 1212
On Mar 20, 11:01 am, carl.claw...@pkinetics.com wrote:
I have a package of COM objects written in C++ in version 6. It is

OK so I searched the registry before and after the uninstall and found
that .NET is unregistering an apparently random smattering of COM
interfaces. What I said above was not entirely correct...some objects
are missing more than just event interfaces.

VS2003 did not do this. If I exluded all the COM object DLLs from the
setup project, you could uninstall the .NET product and the rest of my
products still worked.

???? Help ????

-- Carl

Mar 22 '07 #2
Nice little conversation I'm having with myself here.

The VS2003 statement was false. There was another change roughly
coincident with upgrading to 2005 -- we introduced an ATL COM object
in the .NET project, which uses #import to bring in some of the COM
interfaces it needs from the other installation. #import ends up
putting a random smattering of interfaces -- not all of them, just an
apparently random assortment -- into the type library of the new
component. This component then overrides their registrations and when
it's unregistered, poof!, they're broken. So now I go figure out WTH
#import is behaving this way and how to make it stop. I had this type
library stuff all figured out -- well, adequately figured out -- in V6
and now it's all different and just as poorly documented. Sigh.

Mar 23 '07 #3

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

Similar topics

1
by: Tom | last post by:
Hi, I found that dotnet framework 1.1 cannot run properly on my 2003 server. It cannot recognize .aspx file. However, I cannot reinstall it without uninstall it first. I cannot find it in the...
13
by: bill | last post by:
I am trying to convince a client that dotNet is preferable to an Access project (ADP/ADE). This client currently has a large, pure Access MDB solution with 30+ users, which needs to be upgraded....
2
by: Stephen Gutknecht \(RoundSparrow\) | last post by:
XmlTextReader against a stream no longer works. This breaks the open source jabber-net and other software. Several people have confirmed that what works on dotNet 1.1 fails on dotNet 1.1 SP1. ...
5
by: Adam Clauss | last post by:
I am needing to automate some installation tasks. I first need to determine if there is already a version of a program installed. The program appears in the Add/Remove Programs in control panel,...
3
by: James Aguilar | last post by:
Oh wise readers of comp.lang.python, Lend a newbie your ears. I have read several old articles from this group about memory mapping and interprocess communication and have Googled the sh** out...
3
by: SenthilVel | last post by:
Hi I want to list the available "Component Services " (COM+) in a machine . i am trying to get the list of Componenet services in a machine using windows forms in dotnet , how can i retrive...
0
by: =?Utf-8?B?R2FyeQ==?= | last post by:
Hi, there, I am wondering if it is possible to call custom installer function, particular uninstall, in VS2005? I have two projects in solution: app project and deployment project. In app...
1
by: Ashish P K | last post by:
I have a .Net Application(64 bit) calling a 32 bit COM+. What is the best way to achieve this? Basically I have got a webpart dll, which is compiled for any CPU and IIS running on 64 bit. All...
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
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.