# [XNA]Cant run my XNA project on new Windows

## Recommended Posts

oracle1    100
Hello, I have wierd problem because when i try to run my project using XNA there is an error: Cant find module. (Exception from HRESULT: 0x8007007E) on line: Application.Run(new MainForm()); So I cant find out what module is missing. I have all frameworks and i didn't change my system (Windows 7 64bit). I think I don't have something installed but i need to know what is it? Is there a way to find out? stack trace:
   w MoonReader.MainForm..ctor()
w System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
w System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
w Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
w System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)



##### Share on other sites
unbird    8335
Use Dependency walker to find out which module you are missing.

##### Share on other sites
oracle1    100
Ok i resolved problem using Dependancy Walker but now i've got question:
I needed these dlls:
d3dx9_31.dll
Wich is obviously a part of a directx 9. Can I distibute this file with my program? (Open source/freeware manga reader)
I think i need to attach DX license with it right?

##### Share on other sites
Hassanbasil    195
i dont think that it's legal, i believe you should get the directx9 redistributable package and attach it to your application

##### Share on other sites
oracle1    100
Well i downloaded this dll from some site providing all kinds of dlls so i think there is such option.

##### Share on other sites
Moe    1256
Quote:
 Original post by oracle1Well i downloaded this dll from some site providing all kinds of dlls so i think there is such option.

Yes, it's an option, but it isn't necessarily a legal one. From my understanding you can't legally include the various DirectX DLLs in with your application. You must include the full DirectX Redistributable.

##### Share on other sites
oracle1    100
Can you find me such restriction in their eula? Because I haven't noticed anything like that.

Here: http://wklej.org/hash/95cecf8d151/txt/

I'm not very good in English so I could miss something.

##### Share on other sites
Moe    1256
Quote:
 Original post by oracle1Can you find me such restriction in their eula? Because I haven't noticed anything like that.Here: http://wklej.org/hash/95cecf8d151/txt/I'm not very good in English so I could miss something.

I don't think that is even the right EULA. It's talking about a virtual machine for Java, not DirectX.

oracle1    100
Thanks