Docker Community Forums

Share and learn in the Docker community.

COM+ Assemblies in Container


(Robertloureiro) #1

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


(Robertloureiro) #2

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