Anyone have any suggestions what might be wrong? I am trying to run the example C# demo included and its just giving me an error:
System.IO.FileNotFoundException was unhandled
Message="The specified module could not be found. (Exception from HRESULT: 0x8007007E)"
Source="01.HelloWorld_7.0"
StackTrace:
at HelloWorld.Example.Main(String[] args)
at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
Yes, i've moved/made sure the irrlicht.dll and irrlicht.net.dll are both in the directory. No luck. The irrlicht.net.dll is added as a reference in the solution as well, and the path is just fine.
Problems using with C# VS Express.
Are you sure you are using the right irrlicht.dll?
You need to make sure you have the irrlicht.dll compiled for visual studio found in the bin/win32-VisualSudio folder.
The other problem may be that the irrlicht.dll has to copied manually to the working directory of your project (usually the bin folder created when you compile). Visual studion will copy the irrlicht.net.dll automatically but not the irrlicht.dll.
You need to make sure you have the irrlicht.dll compiled for visual studio found in the bin/win32-VisualSudio folder.
The other problem may be that the irrlicht.dll has to copied manually to the working directory of your project (usually the bin folder created when you compile). Visual studion will copy the irrlicht.net.dll automatically but not the irrlicht.dll.
Well, I got it working. The C# example project file is basically incompatable with VS Express or something. I had to create an entirely new project, add in the source, references by hand. Then it couldn't find the media folder no matter where I put it. (Code assumes two folders back from the exe that is run) So I had to hardcode the path to the media.
What a pain in the rear. Took me a day to figure all this out. Bleagh.
What a pain in the rear. Took me a day to figure all this out. Bleagh.
-
- Posts: 448
- Joined: Tue Oct 05, 2004 3:24 am
- Location: Boston, MA
Yeah I had to do the same with the source for my game. Ir strange really. It worked in the Beta. I wonder what changed.
Irrlicht Moderator || Game Designer
Learn the basics at </dream.in.code>
Learn the basics at </dream.in.code>
0.14.0 release is much more improved! VS Express imported the example project just fine, and I didn't have to change any of the references. Just had to copy the irrlict.dll over into the bin folder.
The only issue is the media paths are still off. They are written as @"../../media/texture.jpg" ... When you compile, it moves your binary into the ../bin/debug/ folder created at runtime. So it would really need to have @"../../../../media/texture.jpg" to work properly.
Anyways, good job on the 0.14.0 release!
The only issue is the media paths are still off. They are written as @"../../media/texture.jpg" ... When you compile, it moves your binary into the ../bin/debug/ folder created at runtime. So it would really need to have @"../../../../media/texture.jpg" to work properly.
Anyways, good job on the 0.14.0 release!