GHC
December 14, 2017, 3:31pm
1
I have been using Monogame for about a year now on VS 2015. Recently I upgraded to a new pc and downloaded VS 2017. I downloaded the 3.6 version of MonoGame from here . Everything is working fine except the content pipeline. Whenever I try to build it (either directly from the pipeline or from the VS debugger) it gives me the following error:
Importer ‘TextureImporter’ had unexpected failure! Planet_Game C:/Users/Ethans Laptop/Documents/Programs/C#/Planet_Game/Planet_Game/Content/Grass_Tile.png.
as well as this exception:
Unable to load DLL ‘FreeImage’. The specific module could not be found!
Thanks.
GeonBit
December 14, 2017, 7:12pm
2
Have you looked at this
opened 10:01AM - 21 Feb 15 UTC
Help Wanted
```
C:/BuildAgent/work/e640bfb9e46917d7/SimpullsContent/Debug/../clouds.png: err… or:
Importer 'TextureImporter' had unexpected failure!
System.DllNotFoundException: Unable to load DLL 'FreeImage': The specified modul
e could not be found. (Exception from HRESULT: 0x8007007E)
at FreeImageAPI.FreeImage.GetFileType(String filename, Int32 size)
at FreeImageAPI.FreeImage.LoadEx(String filename, FREE_IMAGE_LOAD_FLAGS flags
, FREE_IMAGE_FORMAT& format)
at FreeImageAPI.FreeImage.LoadEx(String filename)
at Microsoft.Xna.Framework.Content.Pipeline.TextureImporter.Import(String fil
ename, ContentImporterContext context) in c:\Users\danzel\Code\Simpulls\MonoGame
\MonoGame.Framework.Content.Pipeline\TextureImporter.cs:line 85
at Microsoft.Xna.Framework.Content.Pipeline.ContentImporter`1.Microsoft.Xna.F
ramework.Content.Pipeline.IContentImporter.Import(String filename, ContentImport
erContext context) in c:\Users\danzel\Code\Simpulls\MonoGame\MonoGame.Framework.
Content.Pipeline\ContentImporter.cs:line 45
at MonoGame.Framework.Content.Pipeline.Builder.PipelineManager.ProcessContent
(PipelineBuildEvent pipelineEvent) in c:\Users\danzel\Code\Simpulls\MonoGame\Mon
oGame.Framework.Content.Pipeline\Builder\PipelineManager.cs:line 575
Build 0 succeeded, 1 failed.
Time elapsed 00:00:00.29.
```
Solution was to install the x64 version of vs 2012 c++ redistributable
http://www.microsoft.com/en-NZ/download/details.aspx?id=30679
We should probably have a nicer error for this if we can, spent ages bashing at this! (Dependency Walker told me what the missing dll was)
Or this
Curious @monopalle that you are recommending not using the content pipeline as it’s one of the most powerful features of XNA and now MonoGame. Yes there is an extra layer, however what you get for managing and maintaining your content, it is well worth it. (Keep an eye out as I’ll be doing a fair bit on my new MG channel on this)
Would still like to get to the root of your issue @aetharr (oh and yes welcome :D).
Could you let me know a bit more about your PC build, is it x86 or x64?
After a…
There are some suggestions there.
Try downloading and installing this:
https://www.microsoft.com/en-us/download/details.aspx?id=30679
You need the Visual C++ Redistributable.
GHC
December 14, 2017, 10:16pm
4
Thank you GeonBit and sqrMin1. I downloaded vcredist_x64.exe from the link you sent. My content pipeline is now working like it should.