I got this exception when I run my project in docker container with netcore 1.1
to type 'System.String'. ---> System.BadImageFormatException: Could not load file or assembly 'System.ComponentModel.TypeConverter, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Reference assemblies should not be loaded for execution. They can only be loaded in the Reflection-only loader context. (Exception from HRESULT: 0x80131058) ---> System.BadImageFormatException: Cannot load a reference assembly for execution.
When I check all the published folders I can find the System.ComponentModel.TypeConverter.
Is there any solution for this? Thanks in advance.
User contributions licensed under CC BY-SA 3.0