title: Could not load file or assembly 'Microsoft.Xna.Framework.Game.dll'
body: <p>What I'm using: Visual Basic 2008 express edition, XNA version 3.1</p>
  
  <p>So I was trying to learn XNA in VB using this link:
  <a href="http://www.dreamincode.net/forums/topic/239483-using-xna-in-vbnet-part-i/" rel="nofollow noreferrer">http://www.dreamincode.net/forums/topic/239483-using-xna-in-vbnet-part-i/</a></p>
  
  <p>Naturally after finishing the post, I debugged my project but an error pops up:</p>
  
  <p><strong>FileNotFoundException was unhandled</strong></p>
  
  <p><strong>Could not load file or assembly 'Microsoft.Xna.Framework.Game, Version=3.1.0.0, Culture=neutral, PublicKeyToken=6d5c3888ef60e27d' or one of its dependencies. The system cannot find the file specified.</strong></p>
  
  <p>I tried searching the net/this site to see if anyone encountered the same problem, and the closest was this post:
  <a href="https://stackoverflow.com/questions/27405660/could-not-resolve-this-reference-error">Could not resolve this reference error</a></p>
  
  <p>Tried following what he said (changing DLLs to a different folder/setting copy local to true), but that seemed to spawn another problem:</p>
  
  <p><strong>BadImageFormatException was unhandled</strong></p>
  
  <p><strong>Could not load file or assembly 'Microsoft.Xna.Framework.Game, Version=3.1.0.0, Culture=neutral, PublicKeyToken=6d5c3888ef60e27d' or one of its dependencies. <em>An attempt was made to load a program with an incorrect format.</em></strong></p>
  
  <p>I have no idea where I went wrong, could it be that I'm using VB 2008 express edition and should move to a newer one? (because I read another post stating that by setting .NET framework target to version 4.0, the problem will be solved)</p>