microsoft.directx.dll not found

porthueneme

Newcomer
Joined
Feb 12, 2003
Messages
3
I installed directX 9 and then directX 9 SDK. But then when I use the .NET studio wizard to get a project started it says "The .NET assembly 'Microsoft.DirectX.dll' could not be found"

Can anyone help me?
 
Did you by any chance download the VB.NET only version of the SDK? I did this to start off with, and had all sorts of problems, including that one. I think you also have to download the developer runtime or something like that, but I just gave up and downloaded the entire SDK.
 
Nothing, that fixed it. It looks like you downloaded the correct thing to me, so I'm afraid I'm out of ideas.

Actually, maybe you could look for the files manually - what do you have in the \windows\microsoft.net\ folder? There should be a directx one in there.
 
Thanks for your help. I did get it to work by installing the developer runtime. After searching for a while I found it. They really should tell you more up front that you need it.

Thanks
 
I'm guessing you didn't download from the link you provided, but from this one: http://www.microsoft.com/downloads/...a7-c677-4023-8b27-94e61141e9c6&displaylang=en

This link is only for C# and requires other things to be downloaded/installed, which it does say to do but it's not in bold - you'd have to read through the first few paragraphs to get to it. I'm only mentioning this so that if someone else has the same problem (which seems fairly common), they can check to see which link they used.

-Nerseus

PS Come to think of it, mabye divil or some other Funky Monkey could make a sticky topic and add it to the DirectX forum...
 
Post a nice descriptive post about obtaining the various downloads of DirectX 9 there and I'll make it sticky for you :)

[edit] Or just reply to the sticky thread that's already there [/edit]
 
I had the same problem, and I did download the vb.net version of the SDK... I'm gonna try the full SDK tonight...

LiQuiD8
 
Same problem, no solution

Hi folks,

I also get the message "The .NET assembly 'Microsoft.DirectX.dll' could not be found" as soon as I try to open a DirectX-Project in the .NET environment. I installed the FULL DirectX 9 SDK, definitely, when I unzip the contents there is also the above missing file ! Why doesn't it get installed to the right spot ? Where should I copy it manually to get things working ?

Thanks for my potential .NET - hero who solves the problem :confused:

Greetz, strider
 
Try copying it to the MS framework folder, like Divil said check the folder, and try copying the files into it, or reinstall the SDK.
 
mdxRedist.msi, you should be able to find this file in the SDK, this is the installer for the Managed DX Assemblies
 
I have the exact same problem!

I tried double clicking mdxredist.msi and nothing happened. There are XML files are in the

c:\windows\microsoft.net\managed directx\v4.09.00.0900 directory

but definitely no DLLs.

I presume my PC is screwed? Anything else I should try?

Any other installer works fine, with no problems.

S.
 
Oh,

I am running Windows XP Pro, Service Pack 1.

Strangely enough, Microsoft.DirectX.whatever appears in my Assembly Cache , yet there is definitely no microsoft.directx. * .dll files on my PC.

Why is this?

I will reinstall .NET again and see if that helps.

S.
 
I found a workaround... it's not the best solution but it work for me.
Download the DirectX SDK Developer Runtime from this url http://www.microsoft.com/downloads/...5E-9F47-43D7-8E4E-11DE9356849F&displaylang=en and unpack it to a temp folder. Then you can find a file called DirectX.cab in the SDKDev\Debug folder. in that file there is all the needed dll, you just have to unpack them in the \WINDOWS\Microsoft.NET\DirectX folder. The files are all the Microsoft.DirectX.*.dll. In your solution just add a reference to that files and it should work.

if someone find a better solution please tell us.

++
Sam le Pirate
 
stoulous said:
I found a workaround... it's not the best solution but it work for me.
Download the DirectX SDK Developer Runtime from this url http://www.microsoft.com/downloads/...5E-9F47-43D7-8E4E-11DE9356849F&displaylang=en and unpack it to a temp folder. Then you can find a file called DirectX.cab in the SDKDev\Debug folder. in that file there is all the needed dll, you just have to unpack them in the \WINDOWS\Microsoft.NET\DirectX folder. The files are all the Microsoft.DirectX.*.dll. In your solution just add a reference to that files and it should work.

This solution isn't a very good one. Yeah, I would be able to create directx programs with this solution. But it doesn't help me if I gotta send my source code to others.
 
I had the same problem (looked all over the place online to no avail, and did multiple reinstalls), but I think I've found a decent work around. Note that I am working in Win2k.

What I did was take those Microsoft.DirectX.*.dlls that you know about from the previous posts (the ones in DirectX.cab) and put them in my "C:\WINNT\Microsoft.NET\Managed DirectX\v4.09.00.0900" folder (so now there's a bunch of xml files and their associated dlls). Then I used regedit.exe to add this folder to the 'default reference path list' (or whatever it's calld) by following these steps:

1. In Windows, click the Start button, click Run, then type regedit to open the Registry Editor.
2. Select the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\7.0\AssemblyFolders
3. On the Edit menu, point to New, then click Key.
4. Enter a name for the key (for example, DirectXAssemblies).
5. Select the (Default) value for the key that you just added.
6. On the Edit menu, choose Modify.
7. In the Edit String dialog box, select the Value data field and enter the full path to the folder where your assemblies are located (e.g. C:\WINNT\Microsoft.NET\Managed DirectX\v4.09.00.0900).

Now startup Visual Studio .Net (close it if it was opened while you made these changes) and everything _should_ work (try some of the samples that come with DirectX in order to test it out). It worked well enough for me.

These steps were modified from this webpage that I found, in case you're interested:
http://msdn.microsoft.com/library/d.../vbcon/html/vbtskAddingRemovingReferences.asp

Hope this helps!
 
Final touch ...

First of all thanks for the above mentionned help... It's almost complete , actually there shouldnt be any need to edit the registry. What i did is , extract the required DirectX.dll's to a temp directory , then simply drag-drop them over to C:\WINNT\assembly . After that , it was all ok.

Note : running 2k, and not using MsVstudio.net but #develop

thnks again and good luck to those still having problems
 
I have had the same problems as most of you, including the msi file taht did not run. However, everything was solved by running this file:

.\SDKDev\Debug\dxdevrtm.exe

from the directory I unpacked the installation file to.

Hope it helps!

Fredrik
 
Please help, i am melting!

Yeah i tried all of the above but to no avail?
Did i do something wrong did these answers work for everyone else?
I'm running visual studio c# on a windows 2000 system.
Every time i start a new DX project it tells me that it cannot find the Microsoft.DirectX.dll.
Am i just foolish? Shoud i be laughed at? Or taken in to warm shelter and told the correct answer?

many thanks for any future replies.
Jax

Yes thats right if you answer this with anything you get my thanks.
Real selling point huh?
oh o.k never mind.
 
Back
Top