run container, System.PlatformNotSupportedException: COM is not supported

I am building a docker image for a .net core application. Target framework: .Net Core 2.2. The docker file was built successfully. I got following error when I run the container.

Unhandled Exception: System.PlatformNotSupportedException: COM is not supported

I suspect this error is related to a third-party COM control used by this application. But I don't know why this error still occurs even the image was successfully built?

1 answer