问题
I've started migrating a Legacy multi-service application to a Windows Container, so we can easily move it to a new server in the near future.
This application is .Net 4.5.1, and utilizes WCF for majority of its connections. The WCF is net.tcp, with Security Mode Transport, and a Windows TCP Client Credential Type.
I have a DockerFile which uses microsoft/wcf as a base, and builds the requirements of the application on top of that, eventually adding and starting the services.
The services start correctly, I have confirmed with a netstat from within the container, as well as they have a logging mechanism which logs start and stop to a SQL Server, and that works correctly as well.
The issue is I am unable to make an inbound connection to the WCF services. I keep getting this error:
"The server has rejected the client credentials"
I wrote a small application to run in the container, and it just triggers a command against the same service I was testing, except from within the container it works correctly.
Any help would be appreciated.
来源:https://stackoverflow.com/questions/48544367/windows-container-with-legacy-wcf-tcp-issue