Home » Category » Microsoft Game Technologies

Microsoft Game Technologies: XNA run time - System.IO.FileNotFoundException was unhandled

100| Mon, 24 Dec 2007 01:21:00 GMT| aiguy| Comments (3)
I have no problem building using XNA and C# 2005.
When I try to "start new instance" I see the message below pointing to
public Game1().
I suppect the CRL cannot find the file? ANY help? Thanks.
GEne
System.IO.FileNotFoundException was unhandled
Message="C:\\Documents and Settings\\Gene\\Game_Development\\XNA\\C"
Source="System.Drawing"
StackTrace:
at System.Drawing.Icon.ExtractAssociatedIcon(String filePath, Int32 index)
at System.Drawing.Icon.ExtractAssociatedIcon(String filePath)
at Microsoft.Xna.Framework.WindowsGameWindow.GetDefaultIcon()
at Microsoft.Xna.Framework.WindowsGameWindow..ctor(Boolean allowUserResizing)
at Microsoft.Xna.Framework.WindowsGameHost..ctor(Game game)
at Microsoft.Xna.Framework.Game.EnsureHost()
at Microsoft.Xna.Framework.Game..ctor()
at WindowsGame1.Game1..ctor() in C:\Documents and Settings\Gene\Game_Development\XNA\C#_Turtorials\MyFristGame\MyFristGame\Game1.cs:line 18
at WindowsGame1.Program.Main(String[] args) in C:\Documents and Settings\Gene\Game_Development\XNA\C#_Turtorials\MyFristGame\MyFristGame\Program.cs:line 12

Keywords & Tags: xna, run, time, system.io.filenotfoundexception, unhandled, microsoft, game

URL: http://msdn.itags.org/microsoft-game/244672/
 
«« Prev - Next »» 3 helpful answers below.
Moving to a different forum. What line of code does this fail on? Does it happen as soon as you hit F5?

michaelklucher_msft | Sun, 07 Oct 2007 22:05:00 GMT |

I'm hoping that you found a solution to your problem, if you didn't please unmark this thread as an answer and post some more info.

Thanks!

michaelklucher_msft | Sun, 07 Oct 2007 22:06:00 GMT |

if you have your project in a folder called c# it wont find it, change the name to something like csharp

mattrob2 | Sun, 07 Oct 2007 22:07:00 GMT |

Microsoft Game Technologies Hot Answers

Microsoft Game Technologies New questions

Microsoft Game Technologies Related Categories