AnsweredAssumed Answered

Are there issues with running ArcGIS Runtime for .Net with Core 2.1, getting BadImageFormatException.

Question asked by edward.son_exp on Oct 22, 2018
Latest reply on Feb 24, 2020 by mnielsen-esristaff

Could not include Esri.ArcGISRuntime, Version= directly into .Net Core 2.1 project.  So went through standard .Net 2 class library, (i.e. made a class library to include the runtime, then referenced this standard library from the .net core web api project).  Compiles, but when run gives:


BadImageFormatException: Could not load file or assembly 'Esri.ArcGISRuntime, Version=, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86'. Reference assemblies should not be loaded for execution.  They can only be loaded in the Reflection-only loader context. (Exception from HRESULT: 0x80131058)