title: Partial View Does Not Recognize Another Controller
body: <p>I am creating a partial view for the login which will be using the default model (AccountModel) and controller (AccountController) which were added when a new MVC 3 project is created.</p>
  
  <p>However, the partial view (Login) does not recognize the controller (AccountController). I am getting "The resource cannot be found" error when I hit the "Register" link. Below is the snippet of the code. </p>
  
  <p>Please advice. </p>
  
  <p>Thanks</p>
  
  <h2>_Layout.cshtml</h2>
  
  <pre><code> &lt;div&gt;
     &lt;div id="SideBar"&gt;
          &lt;div id="LoginHeader"&gt;
             Login
          &lt;/div&gt;
          &lt;div id = "Login"&gt;
              @Html.Partial("UserControls/UserLogin", new BalanzLab.Models.LogOnModel())
          &lt;/div&gt;
     &lt;/div&gt;
   &lt;/div&gt;
  </code></pre>
  
  <h2>UserLogin.cshtml</h2>
  
  <pre><code>@model BalanzLab.Models.LogOnModel
  @using (Ajax.BeginForm("LogOn", "AccountController", new AjaxOptions { UpdateTargetId = "AccountController" }))
  {
      if (Request.IsAuthenticated)
      {
          Html.DisplayFor(Context.User.Identity);
      }
      else
      {
          &lt;div &gt;User Name
            @Html.TextBox(" ")
          &lt;/div&gt;
          &lt;div&gt;Password
            @Html.Password(" ")
          &lt;/div&gt;
          &lt;div&gt;
            @Html.ActionLink("Signup", "Register", "AccountController") 
          &lt;/div&gt;
          &lt;p&gt;&lt;input type="submit" value="Let me in!" /&gt;&lt;/p&gt;
       }
  </code></pre>
  
  <p>}</p>