I am making a game using visual studio .net 2003 with directx 9 2005 update. I create a deployment project with visual studio that includes all directx.dll files and other detected dependancies. I deploy the game to the computer on which it was developed and it works fine.
Now I want to test the networking so I deploy it to a laptop. The laptop is running windows xp with SP 2 (so .net framework is there obviously) I also installed latest runtime on this laptop.
When I try to run the game, it says: "Application has generated an exception that could not be handled"
It may be that the game itself is throwing some kind of exception (video card maybe ) but the game only uses directdraw so I can;t imagine thats the issue. I know I don't have any files hard coded.
Might there be anything obvious that I'm overlooking

Managed Directx Deployment Problem
Adrian_78787
Yes, this was removed as of the April 2005 Update.
AjayB
LirenZhao
Turns out it was my video card. Didn't support dx. Tried it on another machine and it works. =)
Madhusudhan
Boman
The only redist that will help you is the one from June 2005. The link you provide above should install the appropriate Managed DirectX assemblies. What version of the .NET runtime is installed on the machines with the problem
Kai-Chih Hu
Scott Boyd
http://www.microsoft.com/downloads/details.aspx FamilyID=3ad9f0d1-8d81-40c8-9815-924dcd4cd2c5&DisplayLang=en
I have tried to install other DirectX Redistributables also but none have got the application to work.
b.schwehn
did you check the runtime version (start/run/dxdiag)
also check to see if any of the sdk directDraw samples run on your laptop
Dave Gosche
All the computers i have tried the application on have .NET framework 1.1 isntalled
Tan0717
I'm not clear from the above. Have you used the Redist that comes with the June 2005 SDK to install on the machines you want to run the app on The SDK installs the redist for you on the dev machine, but the other machines will require you to install the June 2005 redist before any managed application will work properly.
Dave_Thompson
When installing DirectX 9c, it doesn't by default install the managed DirectX components, you need to install it with the /installmanageddx flag - from the command line you'd type:
dxsetup /installmanageddx
This should install the required libraries for managed DirectX apps.
Hope that helps.
orange_square
Thanks smacker for the idea and for priming me to have my own idea as well =)
pcboy
I have the same problem.
We are actually a tree different teams working on tree different projects and all are using "Microsoft DirectX 9.0 SDK (June 2005)". It seems like no-one can run the application except those who have the SDK installed. I have also located that it seems to be when Managed.Direct3DX is used that this problem occurs.
I have set all DirectX references in Visual Studio.net 2003 to be Copy Local so all the DirectX files that are in use are located at the same directory as the application file. If i have understood this correctly this would make the application use the Dlls from the application directory. I have also tried without this configuration.
I have also tried to install a couple of different DirectX runtimes downloaded from Microsoft. And I have made sure that the Managed DirectX files have been installed (some releases dont install this as default).
On the test computer I have Windows XP Pro with SP2 installed. I have also tried the Application on other computers that I don’t know the exact configuration on.
I can also mention that the first stage in the application works fine. That part only uses Microsoft.DirectX.Direct3D and Microsoft.DirectX.DirectInput.< xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
vekaz
Today I got access to a band new computer that i can use as a test computer. I have a fresh install of Windows XP Pro with SP2.
I have installed .NET Framework 1.1 and directx (the one from the link i posted erlier).
I have the same error as before. I have also made a very simple direcx application just to test and still I get this error.
I have run dxdiag to compare the files and all Managed directx files are there with the same version except that I have two Microsoft.DirectX.Direct3DX.dll files on my computer with different versions. But the testapplication I made don’t use Direct3DX so this can’t be the problem.
Any suggestions what I should try next to get my applications to work on other computers < xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />