Could not load file or assembly 'System.ComponentModel.TypeConverter netcore 1.1

1

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.

c#
asp.net-core
badimageformatexception
asked on Stack Overflow Nov 29, 2020 by Bui Quang Huy • edited Nov 29, 2020 by kiafiore

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0