title: MVC 4 Error 404 on Created View
body: <p>I have this controller:</p>
  
  <pre><code>[Authorize]
  public class CheckoutController : Controller
  {
  
      ShoppingCartContext storeDB = new ShoppingCartContext();
      const string PromoCode = "FREE";
  
      [HttpPost]
      public ActionResult AddressAndPayment(FormCollection values)
      {
          var order = new Order();
          TryUpdateModel(order);
  
          try
          {
              if (string.Equals(values["PromoCode"], PromoCode,
                  StringComparison.OrdinalIgnoreCase) == false)
              {
                  return View(order);
              }
              else
              {
                  order.Username = User.Identity.Name;
                  order.OrderDate = DateTime.Now;
  
                  //Save Order
                  storeDB.Orders.Add(order);
                  storeDB.SaveChanges();
                  //Process the order
                  var cart = Models.ShoppingCart.GetCart(this.HttpContext);
                  cart.CreateOrder(order);
  
                  return RedirectToAction("Complete",
                      new { id = order.OrderId });
              }
          }
          catch
          {
              //Invalid - redisplay with errors
              return View(order);
          }
      }
  
      public ActionResult Complete(int id)
      {
          // Validate customer owns this order
          bool isValid = storeDB.Orders.Any(
              o =&gt; o.OrderId == id &amp;&amp;
              o.Username == User.Identity.Name);
  
          if (isValid)
          {
              return View(id);
          }
          else
          {
              return View("Error");
          }
      }
  
  }
  </code></pre>
  
  <p>And I have created a View called <code>AddressAndPayment</code> under <code>Checkout</code>, so it goes to <code>localhost/Checkout/AddressAndPayment</code> but I only get a 404 error, even if I right click on the View and click on view in Page Inspector. I don't know why its not even showing the view when it is created.</p>