I did some tests a while ago and never figured out how to make this work.
The ingredients:
COM+ transactional object (developed in VB6)
.Net web application (with transaction) in IIS that...
makes a call to the COM+ component
updates a row in a SQL database
Testing:
Run the .Net application and force an exception.
Result:
The...
Has the introduction of the .net framework made raw programming in COM and DCOM redundant ?
(Except for using some COM+ services, e.g. for transaction management through the System.EnterpriseServices namespace)
...
I have a .NET assembly that contains classes to be registered as ServicedComponent through EnterpriseServices (COM+) and invoked through COM RPC by a third-party application. Therefore, I need to both add it to the GAC and add a registry entry under HKEY_CLASSES_ROOT\CLSID\{clsid}\CodeBase with the path to the assembly DLL within the GA...
I've created a .net class derived from ServicedComponent and registered it with COM+. The interface that this component implements has a method that returns an IDataReader. When I call the serviced component from my client application everything works I can call the method that returns the IDataReader no problem but as soon as I call a...
I have a .net assembly that has a COM+ ServicedCopmonent in it and at the moment I install it into the GAC to get everything working. This means that I need to have every assembly that it references in the GAC as well.
During development it is quite painful to make changes to thes assemblies, re-install them to the GAC and then test.
...
Has anyone used COMAdminCatalog.InstallApplication to successfully install an application into COM+? If so what type of file do you need to pass as the bstrApplicationFile parameter?
...
I have a COM+ data service that is configured to use object pooling with a min and max pool size of 1. So I have a singleton. In some scenarios my Object count (the number of clients that have a reference to this instance) goes beyond 1 and steadily increases.
The instance creation and the one call to its method is wrapped in a using stm...
COM+: How to Subscribe do IComMethodEvents with VB6??
...
I'm trying to programmatically set the constructor sting of a COM+ component from a C# application. I found the following sample code online, but it throws an exception:
COMAdminCatalogCollection Components;
COMAdminCatalogClass Catalog = new COMAdminCatalogClass();
string strConstr;
string ApplicationNa...
How to programmatically recycle a dllhost.exe process in COM+?
...
Sorry if this is a bit long whinded... consider this:
I have a COM+ application in a namespace called Company that exposes an object called Server which has the following methods:
bool Server.Execute(IOptions options)
IOptions Server.CreateOptions()
IOptions simply has a couple of boolean read/write properties as follows:
IOptions....
Component Services -> Computers -> My Computer -> COM+ Applications
Open a COM+ Application object.
Open Components.
Right-click on a class and select Properties.
Under "Advanced" there is a check box for "Allow IIS intrinsic properties".
How do I check this check box programmatically?
I can create and delete COM+ Applications prog...
Howdy folks:
I have exported a COM+ application proxy, which generates MSI and CAB files, and I have successfully installed them on a few different Win XP and Vista machines. However, I have a WinXP box that isn't playing nicely. When I try and run the MSI it gives me the following error message:
"Error registering COM+ Application."
...
I'm trying to convert my COM+ application from CBuilder 5 to CBuilder 2009 and I'm having a problem to compile it with CBuilder 2009. Anybody have any idea about it ?
Error message: [BCC32 Error] txcoord.h(1182): E2015 Ambiguity between 'ITransaction' and 'Oledb::ITransaction'
...
Update: looks like this is indeed a WiX limitation - Cannot add 64bit com+ component (3.0.3907.0)
I have a .NET application with an MSI installer created using WiX 2.0. The installer creates a COM+ application (amongst other things) and installs a .NET assembly as a component into this application. This DLL is pure managed, however it c...
I used to write ASP.Net apps deploying business dataaccess layers in COM+ components several years ago. This was the standard in several corporate infrastructure here in my country. Is this still recommended? What is the alternative?
...
As you may already know, managed code (.NET apps) can make use of COM+ through EnterpriseServices, making issues like distributed transactions, resource pooling and synchronization "simpler to program" because the solutions are provided as a supporting infrastructure to the application by COM+.
If your application servers reside in a W...
We currently have "gacutil /i $(TargetPath)" as an external tool in visual studio and it works fine for gac'n a single project.
I want to be able to select multiple projects and gac them so I put together a batch script to test.
set randomfile=%random%
echo %1 %2 %3 > %randomfile%
gacutil.exe /f /il %randomfile%
When I test it from...
Hi,
This question is a follow-up to the answer given by Marc Gravell to my question Create Out-Of-Process COM in C#/.Net ?. I have chosen his proposed solution, but now am running in a different issue.
Here is my situation:
I implemented a "DataProvider" COM component in C#
This component is hosted in a COM+
Server application so tha...
I have a serviced component installed in a COM+ server application. I want to create an instance from a remote client. The client needs to be able to specify the server machine's name dynamically. How do I do this?
I tried using Activator:
(XSLTransComponent.XSLTransformer)Activator.GetObject(
typeof...