title: Illegal character in MoviesController.cs in MVC Movie tutorial
body: <p>I am following the Microsoft ASP.NET MVC 3 tutorials for learning ASP.NET MVC. Following the instruction mentioned in this tutorial:</p>
  
  <p><a href="http://www.asp.net/mvc/tutorials/getting-started-with-aspnet-mvc3/cs/accessing-your-model%27s-data-from-a-controller" rel="nofollow">http://www.asp.net/mvc/tutorials/getting-started-with-aspnet-mvc3/cs/accessing-your-model's-data-from-a-controller</a></p>
  
  <p>MoviesController.cs was generated.  When I press F5 to run, the main webpage showed.  All is good.  But when I changed the URL according to instruction to <code>localhost:xxxx/Movies</code>, the browser stopped and the line of  code of the following function was highlighted with an Exception "Illegal characters in path" error.  The semicolon of the line was underscored in red.</p>
  
  <pre><code>public ViewResult Index()
  {
        return View(db.Movies.ToList());
  }
  </code></pre>
  
  <p>Although I am new to C# and ASP.Net, the statement seems right and consistence with the sample code in the tutorial.</p>
  
  <p>Can anyone help me with this?</p>