com+

Calling Web Service with WSE 3.0 from COM+

I have to update a COM+ application to call a web service that uses WSE 3.0. What is the best way to call the web service from the COM+ client? My current plan is to create an Interop assembly like this: COM+ Client <--> Interop Assembly <--> WSE 3.0 Web Service Wondering if anyone has some guidance on best practices for this type of s...

Automate COM+ Package Updates

We have a lot of COM+ objects and packages. I am trying to automate the build and deployment. I am looking for a way to automate the updating of these COM+ packages. Does anybody have any suggestions? thanks ...

Writing To The Registry In COM+ On Vista

I have an assembly written in C# with a COM interface. This assemby is hosted in COM+ as a COM+ service running in dllhost.exe. I am using an Interactive User Identity, which means that the dllhost.exe process is started with the user that Activates the COM object. The user that starts the dllhost.exe object is and Administrator and h...

What are easy ways to use a 32-bit in-proc COM server from 64-bit applications?

I have a 32-bit native C++ ATL in-proc COM server which depends on a huge set of legacy 32-bit libraries. I need to use it from a 64-bit application with the smallest changes possible. One option is putting it into a COM+ application. What are other easy options? ...

Possible to programmatically set COM+ Application Proxy properties in .NET?

Hi all, I have a COM+ application proxy in the form of an *.msi file. Once installed, the application proxy will be installed into Component Services. To use this application proxy, I need to get into the proxy's properties and enter a remote server name, that connects the proxy to an actual COM+ application server. My question is: Is i...

Which do I choose for hosting my in-proc server in a separate process - COM+ or DCOM?

I need to shield a 64-bit COM component consumer from the 32-bit native C++ ATL in-proc COM component. Seems like both COM+ and DCOM can host my in-proc component in a separate process and do the marshalling so that both me and the consumer application don't care of it and I even don't have to change my in-proc component at all. I tried...

Failing to set COM+ ConstructorString on Win7 - CryptProtectData changes?

UPDATED I'm trying to programmatic-ally set a COM+ component's ConstructorString with a value for later initialization. The code in question works fine on WinXP, Win2k3, Vista and Win2k8. I'm failing on Win7 - Home Premium version. I've determined by trial and error that there seems to be a size limit on the constructor string - if t...

Is there any documentation on IdentityUnmarshal interface?

Whenever I put my component into COM+ and call CoCreateInstance() on the client the following happens: the runtime instantiates the objecs (calls IClassFactory::CreateInstance()) the runtime calls QueryInterface() for the interface specified in teh CoCreateInstance() call the runtime calls QueryInterface() for IdentityUnmarshal interfa...

COM+ Connection Pooling Doesn't Appear to be working on SQL Server 2005 Cluster

We have a COM+ Data Layer that utilized Connection Pooling. Its deployed to 3 clusters, 2 SQL Server 2000 and 1 SQL Server 2005 environment. We noticed today that our monitoring software is reporting Thousands of Logins per minute on the SQL Server 2005 box. I did some tracing in both environments and profiler is reporting this for th...

Powershell setting COM+ Enforce access checks for this application

Hi, I'm having problems figuring out what is the Powershell string for choosing the "Enforce access checks for this application" under the Security tab of the properties for that application. Here is what I have so far for Powershell in choosing other things: $comAdmin = New-Object -comobject COMAdmin.COMAdminCatalog $apps = $comAdmin...

How to create a ServicedComponent instance in-process for unit tests

[ClassInterface(ClassInterfaceType.None)] [Guid("12C969B3-330D-4230-ACDA-F9BED3286B1E")] [ProgId("Lib.Class")] public class MyService : ServicedComponent, IMyService { ... } Unit Test: MyService target = new MyService (); This code creates a TransparentProxy object, which is how the component should run in production. How ca...

What's the purpose of COM+ library applications?

When a COM+ application is created the wizard offers to choose between a library and a server application. A server application is activated in a separate process and this can be used to cheaply interop 64-bit consumers with 32-bit in-proc COM components. What's the use of library applications that are activated right in the caller pro...

Can I host COM+ application in WCF?

Is it possible to host my COM Objects in WCF? I want to move them out of the Component service. Any advise will help ...

Shoud I use LayoutKind.Auto for my structs if they don't perform in COM Interop?

By default structs in C# are implemented with [StructLayout( LayoutKind.Sequential )] for reasons basically stating that these type of objects are commonly used for COM Interop and their fields must stay in the order they were defined. Classes have LayoutKind.Auto defined. My question is should I explicitly state my structs as [StructLa...

Cannot export a 32-bit ServicedComponent from COM+ Catalog using Windows 7 or Windows Server 2008 64-bit

Using Windows 2003 Server or 2000, generating a COM+ application proxy for use on another system, includes .NET Enterprise Services components within the MSI package created during export. The .NET components are also registered in the GAC and regsvcs runs automatically during installation of the application proxy. However, we have dis...

VB6 DLL takes callback as Integer, VB.NET requires delegate reference type

I have an issue with a third-party COM+ DLL meant to be used from VB6, where it has a function to set a Callback for a hardware event. However, I'm using VB.NET, and AddressOf now returns a reference type instead of an integral type, which means that the setCallback function on the COM+ DLL apparently can't be used. Is there a way arou...

In IIS 6, can one web site read an application-level variable from another web site? How about COM+?

I have an IIS 6 web server with several web sites running. In one web site, there is ASP.NET code that sets an application variable using the simple syntax below. Can another web site on that same server read the value that was set? Can a COM+ application read that value? Application("favoriteWebSite") = "I love StackOverFlow" ...

com4j versus jacob to call COM methods from Java

I maintain a legacy Java application that uses Jacob, or Java-COM Bridge, to make calls via the COM interfaces of MS VBA and MS Word. I have been looking at com4j from Sun, and it looks promising. The reason it looks good to me is that it uses vtable binding to methods, instead of IDispatch. Assuming all the COM objects we manipulate pr...

COM + Issue - Not enough storage is available to complete this operation

Hello All, We are encountering the error - Not enough storage is available to complete this operation - on an adhoc basis on one of you servers. The application is built with Delphi 7, the application is running under COM+ 1.5 on Windows Server 2003. The application is accessed by a windows client deployed on about 200 desktops, also by...

COM+ sniffing/spying, is it possible?

I'm writing a replacement for a Visual Studio Add-In which we've got from a third party. Their Add-In has one function which I'm having trouble replacing however. It interfaces with another program of theirs (which we still need) by starting it, telling it the PID of Visual Studio and letting the other program call back their Visual St...