title: 'System.Dynamic.DynamicObject' does not contain a definition for 'PropertyName'
body: <p>I've faced with the next problem:</p>
  
  <p>I'm trying run .NET MVC site to use ViewBag for passing some data to my View.
  Here is the method where I setting the VeiwBag.</p>
  
  <pre><code>[HttpGet]
  [AllowAnonymous]
  public ActionResult Start()
  {
      ViewBag.BanReason = null;
      int userId;
  
      //Request with UserId, display ban reason if necessary
      if (Request.Params["UserId"] != null &amp;&amp; int.TryParse(Request.Params["UserId"], out userId))
      {
          ViewBag.BanReason = CheckIfUserBanned(userId);
      }
  
      ViewBag.Users = MvcApplication.Users;
  
      return View();
  }
  </code></pre>
  
  <p>When I assign value to the ViewBag (for example ViewBag.BanReason = null;) I've got the RuntimeBinderException with the message </p>
  
  <blockquote>
    <p>'System.Dynamic.DynamicObject' does not contain a definition for
    'BanReason'.</p>
  </blockquote>
  
  <p>I'm using Visual Studio 2012 with .NET 4.5 and local IIS server with ApplicationPool with .NET 4.0. On the other computer with the same configuration all works nicely and no exceptions is thrown.</p>
  
  <p>Please don't advice to use other techniques like ViewData[""] and Creating a separate model, I don't want to change code that works nicely on the other machine.</p>
  
  <p>I think this is miss-configuration issue. Any guesses will be appreciated.
  Thanks</p>