'Microsoft.DirectX.Direct3D' does not match the assembly reference.

L

Lee Swanson

Hi,

I am trying to run a Direct3D tutorial, namely "hello teapot":
http://www.gotdotnet.com/team/directx/learn/tutorials/helloteapot.aspx

Unfortunately I am getting the following error when I try to run the exe or
debug:

<exception>

An unhandled exception of type 'System.IO.FileLoadException' occurred in
system.windows.forms.dll

Additional information: The located assembly's manifest definition with name
'Microsoft.DirectX.Direct3D' does not match the assembly reference.

</exception>

Any ideas on how I can resolve this? I downloaded the DirectX SDK and then
reinstalled it without success. I also tried copying the dlls from
c:\windows\assemby\gac to a different dir and linking to them there.

Thanks.
Lee.
 
B

Bradley1234

Can you get more information on the specific error?

File load exception could mean the file was not at the location (most
likely)

Check directory settings, the example could maybe use some location thats
different than your project.

What I sometimes do is simply use C:/ for the path, if there is any doubt,
Ive run the teapot on VB.net in the past and a bunch of other D3D examples,
its awesome!!
 
L

Lee Swanson

I set up the references to the dlls myself, and they definitely exist there.

For some reason when i check the "about" info on vs.net it says it is using
the 1.0 framework, even though i have 1.1 installed...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top