title: How do I fix 'No suitable method found to override' error on XNA 4.0?
body: <p>I am following <a href="http://www.xnadevelopment.com/tutorials/theroadnottaken/theroadnottaken.shtml" rel="nofollow noreferrer">the road not taken tutorial</a>, but I get a <code>No suitable mthod found to override</code> error. Here is my XNA project:</p>
  <h2>Code</h2>
  <pre><code>public class Game1 : Microsoft.Xna.Framework.Game
  {
      GraphicsDeviceManager graphics;
      SpriteBatch spriteBatch;
  
      SpriteBatch mSpriteBatch;
      Texture2D mTrack;
  
      public Game1()
      {
          graphics = new GraphicsDeviceManager(this);
          Content.RootDirectory = &quot;Content&quot;;
      }
  
      /// &lt;summary&gt;
      /// Allows the game to perform any initialization it needs to before
      /// starting to run. This is where it can query for any required
      /// services and load any non-graphic related content. 
      /// Calling base.Initialize will enumerate through any components
      /// and initialize them as well.
      /// &lt;/summary&gt;
      protected override void Initialize()
      {
          
          //Change the resolution to 800x600
          graphics.PreferredBackBufferWidth = 800;
          graphics.PreferredBackBufferHeight = 600;
          graphics.ApplyChanges();
  
          base.Initialize();
      }
  
      /// &lt;summary&gt;
      /// LoadContent will be called once per game and is the place to load
      /// all of your content.
      /// &lt;/summary&gt;
      protected override void LoadGraphicsContent(bool loadAllContent)
      {
          if (loadAllContent)
          {
              //Create the SpriteBatch used for drawing the Sprites
              mSpriteBatch = new SpriteBatch(graphics.GraphicsDevice);
  
              //Load the images from computer into the Texture2D objects
              mTrack = Content.Load&lt;Texture2D&gt;(&quot;Track&quot;);
          }
          // TODO: use this.Content to load your game content here
      }
  
      /// &lt;summary&gt;
      /// UnloadContent will be called once per game and is the place to unload
      /// all content.
      /// &lt;/summary&gt;
      protected override void UnloadContent()
      {
          // TODO: Unload any non ContentManager content here
      }
  
      /// &lt;summary&gt;
      /// Allows the game to run logic such as updating the world,
      /// checking for collisions, gathering input, and playing audio.
      /// &lt;/summary&gt;
      /// &lt;param name=&quot;gameTime&quot;&gt;Provides a snapshot of timing values.&lt;/param&gt;
      protected override void Update(GameTime gameTime)
      {
          // Allows the game to exit
          if (GamePad.GetState(PlayerIndex.One).Buttons.Back 
               == ButtonState.Pressed)
              this.Exit();
  
          // TODO: Add your update logic here
  
          base.Update(gameTime);
      }
  
      /// &lt;summary&gt;
      /// This is called when the game should draw itself.
      /// &lt;/summary&gt;
      /// &lt;param name=&quot;gameTime&quot;&gt;Provides a snapshot of timing values.&lt;/param&gt;
      protected override void Draw(GameTime gameTime)
      {
          GraphicsDevice.Clear(Color.CornflowerBlue);
  
          // TODO: Add your drawing code here
  
          mSpriteBatch.Begin();
  
          mSpriteBatch.Draw(mTrack, 
                            new Rectangle(0, 0, mTrack.Width, mTrack.Height),
                            Color.White);
  
          mSpriteBatch.End();
  
          base.Draw(gameTime);
      }
    }
  }
  </code></pre>
  <h2>Error</h2>
  <pre><code>TheRoadNotTaken.Game1.LoadGraphicsContent(bool)': no suitable method found to override
  </code></pre>
  <p>How can I fix this error?</p>