title: The view or its master was not found or no view engine supports the searched locations
body: <p>Error like:The view 'LoginRegister' or its master was not found or no view engine supports the searched locations. The following locations were searched:</p>
  <blockquote>
  <p>~/Views/MyAccount/LoginRegister.aspx</p>
  <p>~/Views/MyAccount/LoginRegister.ascx</p>
  <p>~/Views/Shared/LoginRegister.aspx</p>
  <p>~/Views/Shared/LoginRegister.ascx</p>
  <p>~/Views/MyAccount/LoginRegister.cshtml</p>
  <p>~/Views/MyAccount/LoginRegister.vbhtml</p>
  <p>~/Views/Shared/LoginRegister.cshtml</p>
  <p>~/Views/Shared/LoginRegister.vbhtml</p>
  </blockquote>
  <p>Actually my page view page is  <code>~/Views/home/LoginRegister.cshtml</code> so what i do</p>
  <p>and my <code>RouteConfig</code> is</p>
  <pre><code> public class RouteConfig
      {
  
          public static void RegisterRoutes(RouteCollection routes)
          {
              routes.IgnoreRoute(&quot;{resource}.axd/{*pathInfo}&quot;);
  
              routes.MapRoute(
                  name: &quot;Default&quot;,
                  url: &quot;{controller}/{action}/{id}&quot;,
                  defaults: new { controller = &quot;MyAccount&quot;, action = &quot;LoginRegister&quot;, id = UrlParameter.Optional }
              );
          }
      }
  </code></pre>