NoSuitableGraphicsDeviceException was unhandled

Let me just say at the outset that I know nothing about C# (yet) and am trialing the XNA beta to try and get into it. I do know VB and some C, however. Once I had everything installed, I tried a few example programs including the Spacewar project, but I cannot run any of them.

They build fine, but I can't run the .exe, and it crashes and asks if I want to send a report to MS. If I "Start Debugging" instead, I get the error "NoSuitableGraphicsDeviceException was unhandled" on the "this.GameComponents.Add(this.graphics);" line.

I have no idea where to even start. Is it my install? My PC? My hardware? The program I'm trying to run?

Once I know the environment is actually working, I can begin the learning!

[749 byte] By [deKay] at [2007-12-25]
# 1
I have this same problem. When I was searching through the forum, I found that someone installed DirectX 9.0c in the XNA install directories. Not sure if this will fix but I am going to try this as soon as I get a chance.
drewbennett77 at 2007-9-3 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,XNA Game Studio Express...
# 2
Well, I tried that but it didn't solve the problem :(
deKay at 2007-9-3 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,XNA Game Studio Express...
# 3
Im glad im not alone, im having the same problem, im versed in VB and html and picking up php, the languages arent that different, but im still new at this and i have no idea what to do to solve this problem.

Can some one please help

(edit)
I found a similar problem in new projects, if you turn AllowMultiSampling to False (setting on the graphics), once youve done this it will run.

Im not sure how to fix the space game yet
(/edit)

Cheveyo at 2007-9-3 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,XNA Game Studio Express...
# 4
I have the same problem on my XP machine but here is the odd thing. According to the FAQ, Vista is not supported but it works like a charm on that machine.
celinedrules at 2007-9-3 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,XNA Game Studio Express...
# 5
OK, I've now tried it on a second (different spec) PC, and it does the same thing there :(
deKay at 2007-9-3 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,XNA Game Studio Express...
# 6
And no sooner had I replied to that, I found this:
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=683138&SiteID=1

Maybe that will work? I can't test it right now.

deKay at 2007-9-3 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,XNA Game Studio Express...
# 7
deKay wrote:
And no sooner had I replied to that, I found this:
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=683138&SiteID=1

Maybe that will work? I can't test it right now.

In this thread, this modification gave certain:

Add the following to line 20 in SpacewarGame.Designer.cs

graphics.AllowMultiSampling = false;

and change line 109 in SpacewarGame.cs from

graphics.AllowMultiSampling = true;

to

graphics.AllowMultiSampling = false;

I have a ti4200 geforce card, and with modification, now i compile and run the game !

System0ff at 2007-9-3 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,XNA Game Studio Express...
# 8
This may aslo be a symptom that your graphics card does not meet the minimum requirements for XNA Game Studio Express, if your still having problems post your card model and we can look into it.
MichaelKlucher-MSFT at 2007-9-3 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,XNA Game Studio Express...
# 9
I finally managed to give this a try, and it is now working fine. Thanks!
deKay at 2007-9-3 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,XNA Game Studio Express...
# 10
thankyou for all the info. I never relasied some parts were hardcoded. I stillhave a problem though, the screen jsutlooks black once i get into the game. Does this meanmy video card doesent suport somethign else?
ChaosSlave51 at 2007-9-3 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,XNA Game Studio Express...
# 11
I am having the same problem. I change the code so I can run it, but when I get into the game the screen is black. Anybody have any suggestions?
MrMrGnome at 2007-9-3 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,XNA Game Studio Express...
# 12
Hmm, I am having the same problem and am going to try the suggested fix. Just in case it doesn't work I thought I'd post my card's info. Its a POC really, but its a gforce mx440 64mg card from PNY. It has T&L but I don't know if it supports Shaders.
Vengant at 2007-9-3 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,XNA Game Studio Express...
# 13

If I my memory serves me right. This is because your graphics card does not support single pass rendering of the amount of textures that the application is trying to render.

In short. If you are going to be happy with XNA get yourself a shader 2.0 compliant card.

Geforce 6 and 7 series or ATI 9 and X cards

Regards

Joachim

exal at 2007-9-3 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,XNA Game Studio Express...
# 14

I was able to make the changes listed above and the game begins to the start screen where it shows A, B, X and then stops.

Using an ATI 9250 so it should handle the graphics for the XNA.

thoughts?

TexasSooner at 2007-9-3 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,XNA Game Studio Express...