I’m making some kind of game engine. I’ve got problem with TypeLoadExpection.
This is how my solution explorer looks:
http://screenshooter.net/data/uploads/rc/sg/cohk.jpg (I’m posting it as link because I don’t have enough rep.)
If I use any of types from PolyEngine in PolyEngineRuntime, I’m getting TypeLoadExpection!
I have no idea why it’s happening. I can post code if it helps to solve the problem, but I don’t think the code will be useful.
Edit:
Here’s code: http://pastebin.com/M508FhAC
Log is a static class from PolyEngine.
Here’s how expection looks like:
Could not load type ‘PolyEngine.Log’ from assembly ‘PolyEngine, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null’.
Most probably for some reason the PolyEngine DLL isn’t automatically copied to the /bin folder of the PolyEngineRuntime. Or, if the PolyEngineRuntime uses types from yet another assembly, the external DLL is missing.
After build is complete, verify that all *.dlls are in the PolyEngineRuntime’s /bin folder, from where you run your application.