com+

memory limit in com+

We have a couple of win 2000 boxes with com+ and we're occasionally getting "insufficient memory to perform that operation" errors with the dtsearch.dtengine dll. Since it's registered in com+ I was hoping there was a way to limit the amount of memory it used and then recycle it once it hits that but I can't seem to find a way to do tha...

.Net - Whats the difference between a Session Facade and Business Delegate?

What I understand so far: Business Delegate - In the presentation tier, as an ASP component, provides an interface for ASP views to access business components without exposing their API, therefore reducing coupling between the two. Session Facade - In the business tier, as a com+ component, encapsulates business objects, provides a cou...

WiX COM+ error code

I'm trying to register COM+ with WiX. I get the following error. Where can I find the meaning of error code -2146368486? RegisterComPlusAssemblies: DLL: <file name> ComPlusInstallExecute: ErrorInfo: Name='<file name>', ErrorCode='-2146368486', MajorRef='<name>', MinorRef='<invalid>' ComPlusInstallExecute: ErrorInfo: Name='<name>', Err...

COM+ Applications returns an error when when I try to add a new application

Error message returned 'An error occurred while processing the last operation. Error code 800401154 - Class not registered The event log may contain additional troubleshooting information.' The other thing is, the is a red arrow icon displayed over My Computer (Component Servers -> Computers -> My Computer). I have searched everywhere ...

Difference between "traditional" COM and COM+ (in Component Services)

By the "traditional" way I mean registering the DLL in registry. There seems to be another method to set up it by going to mmc->Component Services->COM+ Applications and adding the .tlb file. I have a COM library that supports both methods. When it installs, it registers itself in the registry as a COM component and it works fine. Howe...

SQL CLR Assembly Error 80131051 when late binding to a registered C# COM .dll

I must have hit an unusual one, because I can't find any reference to this specific failing anywhere... Scenario: I have a legacy SQL function used to transform(encrypt) data. This function is called from within many stored procedures used by multiple applications. I say this, because the obvious answer of 'just call it from your cod...

Remote DLL Registration without access to HKEY_CLASSES_ROOT

We have a legacy VB6 application that updates itself on startup by pulling down the latest files and registering the COM components. This works for both local (regsvr32) ActiveX COM Components and remote (clireg32) ActiveX COM components registered in COM+ on another machine. New requirements are preventing us from writing to HKEY_LOAC...

ServicedComponent not being disposed in finaliser

Questions needing answers : Does the finalizer of the client side ServicedComponent call ServicedComponent.DisposeObject or Dispose? How should destruction (release of memory) occur in the com server in relation to its usage in the client? Basically - we are reaching a 2 gig limit on process size (memory) of the COM server as memory is...

What's the Maximum length for a registered COM Class?

When objects get added to the Windows Registry, they show up like so: MyNamespace.MyType I seem to remember running into issues with my namespaces and classnames being too long when trying to register them for COM. Is there a maximum length limitation in registering classes in Windows or COM+? ...

C# - Retrieve properties of a COM+ component?

Hi, I have a COM+ component on a server (Windows Server 2003). Is there any way I can programmatically retrieve the properties of this component, (e.g. the constructor string used)? When I go to Administritive Tools -> Component Services -> COM+ Applications and right click on my component, these are the properties I want to be able to...

C# ServicedComponent running out-of-process gets File Not Found exception on one machine

I've written a stupid-simple ServicedComponent (COM+ component) to run out-of-process and wrap an x86 only COM component on an x64 server. On my test VM (Server 2008 R2) it works fine. On the production box, I get a file not found exception. C:\Windows\Microsoft.NET\Framework\v2.0.50727>C:\Testapp.exe The system cannot find the fi...

Where can I find reliable information about Microsoft's plans for COM+ support in future versions of Windows?

When looking at a large web application with many competing priorities, one of the things I am faced with is a large number of COM+ components. At some point, these things need to be re-engineered in some other technology (WCF, .NET, whatever). Part of how I prioritize this effort will be "low long before Microsoft stops supporting it?...

How many people really use COM+/.NET EnterpriseServices?

I am learning about COM+ and EnterpriseServices. I came across the complete list of COM+ services on MSDN and read every one of them. The sheer volume of this awed me. On the surface, it seems to be a really advanced system unmatched by other development platforms. Concepts like pooling, synchronization and remoting seem really useful a...

Passing a recordset to a component method to be filled

I am having an odd issue where I am trying to pass three recordsets to a method to have them filled with data all under the same database connection. By reviewing the custom logging info when running the code below I can see that I am getting a Type Mismatch error when assigning the recordsets passed to the method to the local variables...

Access to excel file in the server without installing excel

Hello, I've created a library to pass/get data to/from excel. To execute in my machine i modified the access permisions in COM+ console. The thing is that im interested in upload this component to my online server, but there i havent installed excel. Are there any way to register excel in COM+ without install excel? Thanks in adva...

How do I distribute .tlb file of a C# COM+ application that is referenced by a C# WCF application?

I have a C# WCF application that references another .NET DLL that is actually a COM+ application. If I build my C# WCF application, the COM+ DLL naturally gets placed in the output folder. The contents of this output folder is then used for building the deployment package (MSI). After the application is installed on the target system,...

COM+ Component hosted by Windows Service in C# to control an external device

Hello, I have a Windows Service written in C# that controls a device connected to the computer by RS232 (gathers data and allows to control the device). It's named DeviceService and it's working properly. Now other applications use it by WCF services. But now I need to expose some of functionalities as COM+ Component, so applications i...

Managing multiple-processes: What are the common strategies?

While multithreading is faster in some cases, sometimes we just want to spawn multiple worker processes to do work. This has the benefits of not crashing the main app if one of the worker crashes, and that the user doesn't need to worry a lot about inter-locking stuffs. COM+'s Application Pooling seems like a good way to achieve this on...

Where can I find MS ActiveX Data Object (ADOR) Primary Interop Assembly (PIA)?

I'm trying to generate a Primary Interop Assembly for one of my projects that references Microsoft ActiveX Data Objects (MDAC 2.8). Adding this library through the References dialog box in Visual Studio adds the Interop.ADOR.dll file to the bin directory of the solution. However, when I run tlbimp.exe I get the error: C:\Solution> tlbi...

The stub received bad data

I have a delphi app on an XP SP3 that talks to delphi com+ on windows 2000 server, has been working fine but now for one of the calls to the com+ it wont work and returns the error -The stub received bad data.Although 2 other calls to the com+ work fine.It passes values back to app and can do this for the other 2, thought it was to do wi...