System.IO.FileLoadException Problem

Burst

15-11-2009 05:30:25

I'm a beginner,I installed mogre 1.48 and downloaded mogreframework.dll,
but when i followed the tutorial basic 0 to debug my first project,i got a System.io.fileloadException

未能加载文件或程序集“Mogre, Version=1.4.8.0, Culture=neutral, PublicKeyToken=null”或它的某一个依赖项。由于应用程序配置不正确,应用程序未能启动。重新安装应用程序可能会纠正这个问题。 (异常来自 HRESULT:0x800736B1)

i tried to translate it as
disable to load file“Mogre, Version=1.4.8.0, Culture=neutral, PublicKeyToken=null”or its rely item.due to the configuration is uncorrect ,application failed to start.try to reinstall to solve the problem. (Exception from HRESULT:0x800736B1)

e...i don't know how to deal with the problem.could you help me ?thank you.

AndroidAdam

15-11-2009 20:06:52

Are you able to run any of the Mogre samples?

Burst

16-11-2009 11:13:14

I can't.
When I use the namespace Mogre ,i will get the exception.It's like that i can't use the file Mogre.dll.

GantZ

16-11-2009 20:29:52

check if you got OgreMain.dll (in the sdk) in the same folder as mogre.dll and your exe. also, do you have an ogre.log file in this folder ?

Burst

28-11-2009 02:24:55

I have the ogremain.dll, but i don't have the log file

Beauty

28-11-2009 04:06:47

I suppose that you don't have all needed depencies.

You have to install:

.Net Framework 2.0 (or higher version)
http://www.microsoft.com/downloads/deta ... b15c5e04f5

DirectX 9.0c (March 2009 - update your version!)
http://www.microsoft.com/downloads/deta ... 93d210f616

VC++ 2008 SP1 Redist (or Visual Studio 2008 with SP1)
http://www.microsoft.com/downloads/deta ... 4b9f2bc1bf

Before download switch to your language.
Please correct me, if something is wrong or missing.

Burst

13-12-2009 07:18:05

Thank you.I use vs2005, maybe I need to change one

Beauty

16-12-2009 20:19:57

Generally you also can use VS2005.
Then you need to install the Service Pack 1 for Visual Studio.
Also I suppose you need to install vcredist for VS 2008 to use the Mogre.dll file.
If possible, it's better to switch to Visual Studio 2008. (Don't forget the SP1 vor VS!)

Some download links are here:
http://www.ogre3d.org/wiki/index.php/Mo ... pendencies