title: MVC3 Routing Not Found
body: <p>Any idea why this link is not found?</p>
  
  <pre><code>context.MapRoute(null, "Admin/CompanyUserDelete/{userprofileid}", new { controller = "Admin", action = "CompanyUserDelete", userprofileid = UrlParameter.Optional });
  </code></pre>
  
  <p>It is definded using the AreaRegistration class.</p>
  
  <pre><code> public class AdminAreaRegistration : AreaRegistration
      {
          public override string AreaName
          {
              get
              {
                  return "Admin";
              }
          }
  
  public override void RegisterArea(AreaRegistrationContext context)
          {
              context.MapRoute(null, "Admin", new { controller = "Admin", action = "Index" });
  
              context.MapRoute(null, "Admin/Users", new { controller = "Admin", action = "CompanyUsers" });
              context.MapRoute(null, "Admin/Users/Create", new { controller = "Admin", action = "CreateUser" });
              context.MapRoute(null, "Admin/Users/{userprofileid}", new { controller = "Admin", action = "CompanyUser" });
  
              context.MapRoute(null, "Admin/CompanyUserDelete/{userprofileid}", new { controller = "Admin", action = "CompanyUserDelete", userprofileid = UrlParameter.Optional });
  
              context.MapRoute(null, "Admin/Users/{userprofileid}/Photo", new { contro
  ller = "Admin", action = "UserImage" });
  }
  &lt;/code&gt;&lt;/pre&gt;
  </code></pre>
  
  <p>Here is the link not found.</p>
  
  <pre><code> @Html.ActionLink("Delete", "CompanyUserDelete", "Admin", new { area = "Admin", userprofileid = userItem.UserProfileId }, null)
  </code></pre>