COM+ Assemblies in Container

Hello,

I am use a docker container for my ASP.NET application. This is a client/server application, where I am using .NET Remoting to communicate with the servers.

in the dockerfile, I register my COM+ Assembly using RegSvcs.exe,

When I run my container, I connect to it’s IP address in my browser, and up comes the client.

When I proceed to access the server, I get the error:

        The server process could not be started because the configured identity is incorrect. Check the 
        username and password. (Exception from HRESULT: 0x8000401A)

This seems to indicate that the COM+ Assembly that I registered does not have the correct identity for access.

When I inspect my docker container, I can see the Login Information as follows:
Logon Type: 5 (Service)
Logon ID: 0x3e7
Account Name: SYSTEM
Account Domain: NT AUTHORITY
UserSid: S-1-5-18

Do I need to modify the COM+ Assembly’s identity to be NT AUTHORITY\SYSTEM to get around this error?

There doesn’t seem to be a way to set the identity using RegSvcs.exe.

Regards, Rob

Sorry, I did not provide the docker information:

C:\Program Files (x86)\CA\sample>docker version
Client:
Version: 18.03.0-ce
API version: 1.37
Go version: go1.9.4
Git commit: 0520e24
Built: Wed Mar 21 23:06:28 2018
OS/Arch: windows/amd64
Experimental: false
Orchestrator: swarm

Server:
Engine:
Version: 18.03.0-ce
API version: 1.37 (minimum version 1.24)
Go version: go1.9.4
Git commit: 0520e24
Built: Wed Mar 21 23:21:06 2018
OS/Arch: windows/amd64
Experimental: false

Windows Server 2016

Hi Robert,
This is an old thread, but thought I would respond and suggest using global managed service accounts to allow connection to your COM+ service and other network resources.
We are in beginning stages of migrating COM+ applications to docker containers. Have you had the issue of httphandlers and issue.
I’m attempting to resolve, but have not had any success.

If you need some assistance with the setup of gmsa in Windows 2019 images let me know.

Thanks

Hi Thombolin

We are looking into migrating our application with com+ components into Docker. How did it go for you? Could you share some documentation on the process ?

Thanks !