I have a problem when I try to build an image with the pipeline tool. Here is the error: -
Importer 'TextureImporter' had unexpected failure!
System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
at FreeImageAPI.FreeImage.GetFileType(String filename, Int32 size)
at FreeImageAPI.FreeImage.LoadEx(String filename, FREE_IMAGE_LOAD_FLAGS flags, FREE_IMAGE_FORMAT& format)
at Microsoft.Xna.Framework.Content.Pipeline.TextureImporter.Import(String filename, ContentImporterContext context)
at Microsoft.Xna.Framework.Content.Pipeline.ContentImporter`1.Microsoft.Xna.Framework.Content.Pipeline.IContentImporter.Import(String filename, ContentImporterContext context)
at MonoGame.Framework.Content.Pipeline.Builder.PipelineManager.ProcessContent(PipelineBuildEvent pipelineEvent)
I am using MonoGame 3.6 with Visual Studio 2017. I tried to uninstall and reinstall MonoGame and Visual Studio, change the version of Visual Studio, and use development build of MonoGame but there was no luck. I tried to import both png and jpg files but it still produces the same error.
The project worked fine a few days ago but it suddenly stopped working only on this computer. I copied this project to another computer and it works just fine. I tried to create a new project but it still has the same error when I import and build images.
Does anyone have any ideas what is wrong with this computer? I suspect that it is something with Windows Update but there is no record of updates after the last time that MonoGame works on this computer. Thank you very much.