Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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?

  • *Gurus*
Posted
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.

MVP, Visual Developer - .NET

 

Now you see why evil will always triumph - because good is dumb.

 

My free .NET Windows Forms Controls and Articles

  • *Gurus*
Posted

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.

MVP, Visual Developer - .NET

 

Now you see why evil will always triumph - because good is dumb.

 

My free .NET Windows Forms Controls and Articles

Posted

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

  • *Experts*
Posted

I'm guessing you didn't download from the link you provided, but from this one: http://www.microsoft.com/downloads/details.aspx?FamilyID=592393a7-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...

"I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut
  • 3 weeks later...
  • 1 month later...
Posted

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

Guest mutant
Posted
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.
Posted
mdxRedist.msi, you should be able to find this file in the SDK, this is the installer for the Managed DX Assemblies
.Net allows software to be written for any version of Windows and not break like Unmanaged applications unless using Unmanaged procedures like APIs. If your program uses large amounts of memory but releases it when something else needs it, then what's the problem?
  • 3 weeks later...
Posted

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.

Posted

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.

Posted

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/details.aspx?FamilyId=FB6B635E-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

Posted
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/details.aspx?FamilyId=FB6B635E-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.

Posted

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/default.asp?url=/library/en-us/vbcon/html/vbtskAddingRemovingReferences.asp

 

Hope this helps!

  • 2 weeks later...
  • 2 weeks later...
Posted

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

Posted

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

  • 2 weeks later...
Posted

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.

  • 1 month later...
  • 3 weeks later...
  • 3 weeks later...
Posted

DirectX.dll

 

I'm running VB.Net SP1 on XP. I've tried all these downloads, searched the CAB files, looked everywhere, and still can't find DirectX.dll.

 

When I clicked on Help in a project, it said something about running an installer which I cancelled, and the next time I clicked on Help it said something about searching for DirextX, even though this project had no links whatsoever to DirectX. I'm lost!

 

Does anyone have a step by step procedure for properly installing DirectX, and maybe even removing the version 7 and 8 ones that never worked anyway, I'd really really really appreciate it!

 

Thanks,

Larry

Posted

if you have a problem with missing Microsoft.DirectX.Dll's you need to download the following installers ..

 

DirectX 9.0 Complete Software Development Kit (SDK)

http://www.microsoft.com/downloads/details.aspx?FamilyId=124552FF-8363-47FD-8F3B-36C226E04C85&displaylang=en

 

and (c'est tres tres importante)

 

DirectX 9.0b Software Development Kit (SDK) for C#

http://www.microsoft.com/downloads/details.aspx?FamilyID=592393a7-c677-4023-8b27-94e61141e9c6&displaylang=en

 

run dxdevrtm.exe, then DLLs will be properly installed .. yey ..

 

max

(sera cent fois une plus puissant .. if we all work together .. oui) ^_^

  • 1 month later...
Posted

microsoft.directx.dll missing

 

FYI, I was having similar problems getting DirectX 9 to work in .NET.

 

I finally discovered the dll's are located in the Directx.Cab file in the dx9sdk zipped file.

 

The easiest way is to extract the DirectX.cab file using WinZip to a c:\Temp folder, and then copy the dlls into the PublicAssemblies folder of you current .net version.

 

For instance on my computer it would be

c:\Program Files\Microsoft Visual Studio .Net 2003\Common7\IDE\PublicAssemblies

 

Hope this helps.

 

Dave

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...