com+

Is it possible to share a transaction between a .Net application and a COM+ object?

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 .NET made raw COM and DCOM programming redundant ?

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) ...

How to refer to the path to an assembly in the GAC within registry entries added by a Windows Installer package?

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...

.net COM+ object that returns IDataReader

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...

Does a (.net) COM+ assembly need to be installed in the GAC?

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. ...

What type is the application file in a call to COMAdminCatalog.InstallApplication

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? ...

COM+ Singleton Numerous References

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

COM+: How to Subscribe do IComMethodEvents with VB6?? ...

How do I set the constructor string of a COM+ component from .NET?

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+?

How to programmatically recycle a dllhost.exe process in COM+? ...

Why do I get E_ACCESSDENIED calling a COM+ method from a proxy?

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....

How do I check "Allow IIS intrinsic properties" in a COM+ application programmatically?

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...

Error registering COM+ application proxy

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." ...

Problem with ITransaction and Oledb::ITransaction in 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' ...

How do I install a .NET DLL into a COM+ application using MSI (WiX)

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...

Is COM+ still recommended?

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? ...

Would you use EnterpriseServices in a new enterprise development?

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...

Gac Multiple Projects From Visual Studio

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...

How to access a .Net COM object hosted in a COM+ Server in .Net?

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...

Calling a remote COM+ ServicedComponent from a C# client

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...