MogreFramework and 1.4.8


28-12-2008 17:51:40

It's entirely possible my issues are due to insufficient caffeine intake, but I keep running into a persistent problem with the MogreFramework. I keep getting BadImageFormatException. I'm using a version built from source from the SVN server in tutorial 0. (With the timer issue fixed). I'm not sure if it's me, or my compiler, or what. (I'm using vista x64). Is there just a plain binary for a MogreFramework 1.4.8? I'm pretty sure it's just the framework, as I can run the samples quite well.

Specific exception:

System.BadImageFormatException was unhandled
Message="Could not load file or assembly 'Mogre, Version=, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a program with an incorrect format."
FileName="Mogre, Version=, Culture=neutral, PublicKeyToken=null"
FusionLog="=== Pre-bind state information ===\r\nLOG: User = Desktop\\Kannon\r\nLOG: DisplayName = Mogre, Version=, Culture=neutral, PublicKeyToken=null\n (Fully-specified)\r\nLOG: Appbase = file:///C:/Users/Kannon/Documents/Visual Studio 2008/Projects/MOgreTemplate/MOgreTemplate/bin/Debug/\r\nLOG: Initial PrivatePath = NULL\r\nCalling assembly : MogreFramework, Version=, Culture=neutral, PublicKeyToken=null.\r\n===\r\nLOG: This bind starts in default load context.\r\nLOG: No application configuration file found.\r\nLOG: Using machine configuration file from C:\\Windows\\Microsoft.NET\\Framework64\\v2.0.50727\\config\\machine.config.\r\nLOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).\r\nLOG: Attempting download of new URL file:///C:/Users/Kannon/Documents/Visual Studio 2008/Projects/MOgreTemplate/MOgreTemplate/bin/Debug/Mogre.DLL.\r\nERR: Failed to complete setup of assembly (hr = 0x8007000b). Probing terminated.\r\n"
at MogreFramework.OgreWindow.Go()
at Test.Program.Main() in C:\Users\Kannon\Documents\Visual Studio 2008\Projects\MOgreTemplate\MOgreTemplate\Program.cs:line 15
at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()


29-12-2008 07:52:28

Are you sure you are compiling to x84 and not x64?


29-12-2008 17:48:39

How would I double-check that? I'm pretty new to VS2008, (I've got the express edition), and I wasn't able to find the settings for it.


29-12-2008 20:29:16

right-click your project sln file in the treebrowser in visual studio, select "properties", change this setting here:


11-03-2009 08:14:40


I'm completely new to Ogre and have exactly the same Problem (Vista 64 too, however on my Desktop I had the same issue on XP64).

It also came to my mind that the 64bit Versions may be the problem; the Problem is, I think I'm doing something fundamentally wrong because I can't even choose between Debug/Release build or which CPU i want to use nor can I set the target system to x86 (see image above).

Did I choose the wrong project type (in the Tutorial 0 it says "WindowsApplication").

Thanks in Advance :D


12-03-2009 04:56:45

I'm trying to remember what I had to do to setup. I believe this was pertinant: