title: Server Error in '/' Application MVC 5
body: <p>I am trying to add a new view for my website however I keep on getting the error Server Error in '/' Application. My view is linked to the controller and my route config file has the right the path. Any help would be grateful.</p>
  
  <p>Profile controller</p>
  
  <pre><code>    using System;
      using System.Collections.Generic;
      using System.Linq;
      using System.Web;
      using System.Web.Mvc;
  
      namespace Bitev2.Controllers
      {
          public class ProfileController : Controller
          {
              //
              // GET: /Profile/
              public ActionResult Index()
              {
                  return View();
              }
  
              //
              // GET: /Profile/Details/5
              public ActionResult Details(int id)
              {
                  return View();
              }
  
              //
              // GET: /Profile/Create
              public ActionResult Create()
              {
                  return View();
              }
  
              //
              // POST: /Profile/Create
              [HttpPost]
              public ActionResult Create(FormCollection collection)
              {
                  try
                  {
                      // TODO: Add insert logic here
  
                      return RedirectToAction("Index");
                  }
                  catch
                  {
                      return View();
                  }
              }
  
              //
              // GET: /Profile/Edit/5
              public ActionResult Edit(int id)
              {
                  return View();
              }
  
              //
              // POST: /Profile/Edit/5
              [HttpPost]
              public ActionResult Edit(int id, FormCollection collection)
              {
                  try
                  {
                      // TODO: Add update logic here
  
                      return RedirectToAction("Index");
                  }
                  catch
                  {
                      return View();
                  }
              }
  
              //
              // GET: /Profile/Delete/5
              public ActionResult Delete(int id)
              {
                  return View();
              }
  
              //
              // POST: /Profile/Delete/5
              [HttpPost]
              public ActionResult Delete(int id, FormCollection collection)
              {
                  try
                  {
                      // TODO: Add delete logic here
  
                      return RedirectToAction("Index");
                  }
                  catch
                  {
                      return View();
                  }
              }
          }
      }
  </code></pre>
  
  <p>Profile view</p>
  
  <pre><code>@{
      ViewBag.Title = "Profile";
  }
  
  &lt;h2&gt;Profile&lt;/h2&gt;
  </code></pre>
  
  <p>Route config file</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Web;
  using System.Web.Mvc;
  using System.Web.Routing;
  
  namespace Bitev2
  {
      public class RouteConfig
      {
          public static void RegisterRoutes(RouteCollection routes)
          {
              routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
  
              routes.MapRoute(
                  name: "Default",
                  url: "{controller}/{action}/{id}",
                  defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
              );
          }
      }
  </code></pre>