SpaceWar demo: .NET Runtime 2.0 Error

I'm having a bit of trouble getting the SpaceWar demo to run. It compiles fine (I made no changes) but when I try and run it I immediately get a dialog box asking if i want to send a report to Microsoft (I always say 'Yes'). Below is a copy of the Event Log entries generated:

Event Type: Error
Event Source: .NET Runtime 2.0 Error Reporting
Event Category: None
Event ID: 1000
Date: 8/30/2006
Time: 7:41:21 PM
User: N/A
Computer: IO
Description:
Faulting application myspacewar1.exe, version 1.0.0.0, stamp 44f5d7e7, faulting module kernel32.dll, version 5.1.2600.2945, stamp 44ab9a84, debug? 0, fault address 0x00012a5b.

For more information, see Help and Support Center athttp://go.microsoft.com/fwlink/events.asp.
Data:
0000: 41 00 70 00 70 00 6c 00 A.p.p.l.
0008: 69 00 63 00 61 00 74 00 i.c.a.t.
0010: 69 00 6f 00 6e 00 20 00 i.o.n. .
0018: 46 00 61 00 69 00 6c 00 F.a.i.l.
0020: 75 00 72 00 65 00 20 00 u.r.e. .
0028: 20 00 6d 00 79 00 73 00 .m.y.s.
0030: 70 00 61 00 63 00 65 00 p.a.c.e.
0038: 77 00 61 00 72 00 31 00 w.a.r.1.
0040: 2e 00 65 00 78 00 65 00 ..e.x.e.
0048: 20 00 31 00 2e 00 30 00 .1...0.
0050: 2e 00 30 00 2e 00 30 00 ..0...0.
0058: 20 00 34 00 34 00 66 00 .4.4.f.
0060: 35 00 64 00 37 00 65 00 5.d.7.e.
0068: 37 00 20 00 69 00 6e 00 7. .i.n.
0070: 20 00 6b 00 65 00 72 00 .k.e.r.
0078: 6e 00 65 00 6c 00 33 00 n.e.l.3.
0080: 32 00 2e 00 64 00 6c 00 2...d.l.
0088: 6c 00 20 00 35 00 2e 00 l. .5...
0090: 31 00 2e 00 32 00 36 00 1...2.6.
0098: 30 00 30 00 2e 00 32 00 0.0...2.
00a0: 39 00 34 00 35 00 20 00 9.4.5. .
00a8: 34 00 34 00 61 00 62 00 4.4.a.b.
00b0: 39 00 61 00 38 00 34 00 9.a.8.4.
00b8: 20 00 66 00 44 00 65 00 .f.D.e.
00c0: 62 00 75 00 67 00 20 00 b.u.g. .
00c8: 30 00 20 00 61 00 74 00 0. .a.t.
00d0: 20 00 6f 00 66 00 66 00 .o.f.f.
00d8: 73 00 65 00 74 00 20 00 s.e.t. .
00e0: 30 00 30 00 30 00 31 00 0.0.0.1.
00e8: 32 00 61 00 35 00 62 00 2.a.5.b.
00f0: 0d 00 0a 00 ....

Event Type: Information
Event Source: .NET Runtime 2.0 Error Reporting
Event Category: None
Event ID: 1001
Date: 8/30/2006
Time: 7:41:35 PM
User: N/A
Computer: IO
Description:
Bucket 322228288, bucket table 1, faulting application myspacewar1.exe, version 1.0.0.0, stamp 44f5d7e7, faulting module kernel32.dll, version 5.1.2600.2945, stamp 44ab9a84, debug? 0, fault address 0x00012a5b.

For more information, see Help and Support Center athttp://go.microsoft.com/fwlink/events.asp.
Data:
0000: 42 00 75 00 63 00 6b 00 B.u.c.k.
0008: 65 00 74 00 3a 00 20 00 e.t.:. .
0010: 33 00 32 00 32 00 32 00 3.2.2.2.
0018: 32 00 38 00 32 00 38 00 2.8.2.8.
0020: 38 00 0d 00 0a 00 42 00 8.....B.
0028: 75 00 63 00 6b 00 65 00 u.c.k.e.
0030: 74 00 54 00 61 00 62 00 t.T.a.b.
0038: 6c 00 65 00 20 00 31 00 l.e. .1.
0040: 0d 00 0a 00 ....

[3222 byte] By [MattStum] at [2007-12-25]
# 1

Makes sure you have the latest DirectX runtimes.

http://www.microsoft.com/downloads/details.aspx?FamilyId=0A9B6820-BFBB-4799-9908-D418CDEAC197

Even if you think you have DirectX 9.0c please try running that - XNA uses some of the components from the bimonthly updates

TheZMan at 2007-8-31 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,XNA Game Studio Express...
# 2
Updated DirectX via your link and still got the same results.
MattStum at 2007-8-31 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,XNA Game Studio Express...
# 3
Can you post the line of code it fails on?
MichaelKlucher-MSFT at 2007-8-31 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,XNA Game Studio Express...
# 4
There's no way to know. All I get is the dialog box to report an error to Microsoft. No option to bring up a debugger.
MattStum at 2007-8-31 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,XNA Game Studio Express...
# 5
Is this while trying to debug? Can you run any XNA Game?
MichaelKlucher-MSFT at 2007-8-31 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,XNA Game Studio Express...
# 6

For what it's worth - I experienced the same problem; installing DirectX 9.0c (although from XNA program files folder - c:\Program Files\XNA\XNA Game Studio Express\DXRedist\) fixed it. I wonder why this isn't included in the GSE's installation procedure...

Andrej

AndrejTozon at 2007-8-31 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,XNA Game Studio Express...
# 7

I have the February 2006 SDK and it all works fine for me. So, are you trying to use VS2005 or VSTS2005? Because you should be using VC#2005EE.

L337kybldmstr at 2007-8-31 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,XNA Game Studio Express...
# 8
Sounds to me as though you installed the SDK but didn't update the runtime. A friend of mine did this once because he thought he already had the latest runtime installed.
PeterD. at 2007-8-31 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,XNA Game Studio Express...
# 9
Did any of these solutions help?
MichaelKlucher-MSFT at 2007-8-31 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,XNA Game Studio Express...
# 10

The XNA Game Studio Express does install the necessary DirectX runtimes (using the redist noted above). If running the redist from that directory fixes the problem, please log a bug and let us know your system configuration (OS, version, etc...)

Thanks!

PaulBleisch at 2007-8-31 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,XNA Game Studio Express...
# 11
In the Space War project settings, what assemblies if any should be referenced. Perhaps the current runtimes are being pointed to...

Glen
http://www.zenfar.com

glenrm at 2007-8-31 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,XNA Game Studio Express...
# 12
I ran in to a similar problem and found a solution - perhaps this will help someone. I have all of my C# projects located in a folder called "C#". I put the XNA projects in the same place. Any program would compile fine but upon trying to run the program it would get an error. While running the debugger it would specifically have a problem on the first line of the constructor, for example Game1() or MySpacewar1(), with an error about a file not found. Upon further investigation I discovered this was because of the "#" symbol in the file path. If I move the project to another folder it doesn't have any problem.

Additionally, if I copy the compiled executable file back to the "C#" folder it will get an error and not run. This appears to be a bug in the XNA framework as I have never had a problem with other C# .NET 2.0 projects.

p.hansen at 2007-8-31 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,XNA Game Studio Express...
# 13

I have no idea what game you're talking about but I'm receiving the same error on a module I have installed on our management systems. Two other computers are running fine and I am receiving this error:

Event Type: Error
Event Source: Application Error
Event Category: None
Event ID: 1001
Date: 10/18/2006
Time: 1:53:51 pm
User: N/A
Computer: [Station2]
Description:
Fault bucket 330867040.

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
Data:
0000: 42 75 63 6b 65 74 3a 20 Bucket:
0008: 33 33 30 38 36 37 30 34 33086704
0010: 30 0d 0a 0..
Event Type: Error
Event Source: Application Error
Event Category: None
Event ID: 1000
Date: 10/18/2006
Time: 1:53:49 pm
User: N/A
Computer: DIANA
Description:
Faulting application compmod.exe, version 4.5.0.20, faulting module kernel32.dll, version 5.1.2600.2945, fault address 0x00012a5b.

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
Data:
0000: 41 70 70 6c 69 63 61 74 Applicat
0008: 69 6f 6e 20 46 61 69 6c ion Fail
0010: 75 72 65 20 20 63 6f 6d ure com
0018: 70 6d 6f 64 2e 65 78 65 pmod.exe
0020: 20 34 2e 35 2e 30 2e 32 4.5.0.2
0028: 30 20 69 6e 20 6b 65 72 0 in ker
0030: 6e 65 6c 33 32 2e 64 6c nel32.dl
0038: 6c 20 35 2e 31 2e 32 36 l 5.1.26
0040: 30 30 2e 32 39 34 35 20 00.2945
0048: 61 74 20 6f 66 66 73 65 at offse
0050: 74 20 30 30 30 31 32 61 t 00012a
0058: 35 62 0d 0a 5b..

Could be java but I updated java over a week ago and this just started yesterday. MSDN said the error on the alert box that pops up "Operation not applicable" is from "prf*.tmp" files not being deleted from the Userdata root. I deleted what was left behind from whatever process and I'm still having the problem. I installed Office 2007 System Beta 2 two nights ago but I've placed it on another computer and it work's okay so I'm ruling that out. Could it be IIS? That's one difference. Anyhow, I'll keep searching and let you know if I find anything out.

Diana

dianascherff at 2007-8-31 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,XNA Game Studio Express...