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

  • aiguy / 100 / Sat, 30 Jan 2010 20:45:00 GMT / 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:

    xna, run, time, system.io.filenotfoundexception, unhandled, microsoft, game

  • http://msdn.itags.org/microsoft-game/244672/«« Last Thread - Next Thread »»
    1. 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 |

    2. 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 |

    3. 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 |