title: Action from page not handled in controller in ASP.NET CORE
body: <p>I created controller and views with default utility in VS that generate code.</p>
  <p>When I click on create button on Create page I always have exception and breakpoints in Create method not working. I try change some handlers, change arguments or change <code>asp-action</code> for form but I couldn't enter to Create handler.</p>
  <p>How I can fix it?</p>
  <p>Create page</p>
  <pre><code>@model BulkyBook.Models.Category
  
  @{
      ViewData[&quot;Title&quot;] = &quot;Create&quot;;
      Layout = &quot;~/Views/Shared/_Layout.cshtml&quot;;
  }
  
  &lt;h1&gt;Create&lt;/h1&gt;
  
  &lt;h4&gt;Category&lt;/h4&gt;
  &lt;hr /&gt;
  &lt;div class=&quot;row&quot;&gt;
      &lt;div class=&quot;col-md-4&quot;&gt;
          &lt;form asp-action=&quot;Create&quot;&gt;
              &lt;div asp-validation-summary=&quot;ModelOnly&quot; class=&quot;text-danger&quot;&gt;&lt;/div&gt;
              &lt;div class=&quot;form-group&quot;&gt;
                  &lt;label asp-for=&quot;Name&quot; class=&quot;control-label&quot;&gt;&lt;/label&gt;
                  &lt;input asp-for=&quot;Name&quot; class=&quot;form-control&quot; /&gt;
                  &lt;span asp-validation-for=&quot;Name&quot; class=&quot;text-danger&quot;&gt;&lt;/span&gt;
              &lt;/div&gt;
              &lt;div class=&quot;form-group&quot;&gt;
                  &lt;input type=&quot;submit&quot; value=&quot;Create&quot; class=&quot;btn btn-primary&quot; /&gt;
              &lt;/div&gt;
          &lt;/form&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  
  &lt;div&gt;
      &lt;a asp-action=&quot;Index&quot;&gt;Back to List&lt;/a&gt;
  &lt;/div&gt;
  
  @section Scripts {
      @{await Html.RenderPartialAsync(&quot;_ValidationScriptsPartial&quot;);}
  }
  
  </code></pre>
  <p>Part of controller core that not working</p>
  <pre><code>using System.Linq;
  using System.Threading.Tasks;
  using Microsoft.AspNetCore.Mvc;
  using Microsoft.EntityFrameworkCore;
  using BulkyBook.DataAccess.Data;
  using BulkyBook.Models;
  
  namespace BulkyBook.Areas.Admin.Controllers
  {
      [Area(&quot;Admin&quot;)]
      public class CategoriesController : Controller
      {
          private readonly ApplicationDbContext _context;
  
          public CategoriesController(ApplicationDbContext context)
          {
              _context = context;
          }
  
          // GET: Admin/Categories
          public async Task&lt;IActionResult&gt; Index()
          {
              return View(await _context.Categories.ToListAsync());
          }
  
          // GET: Admin/Categories/Create
          public IActionResult Create()
          {
              return View();
          }
  
          // POST: Admin/Categories/Create
          // To protect from overposting attacks, enable the specific properties you want to bind to.
          // For more details, see http://go.microsoft.com/fwlink/?LinkId=317598.
          [HttpPost]
          [ValidateAntiForgeryToken]
          public async Task&lt;IActionResult&gt; Create([Bind(&quot;Id,Name&quot;)] Category category)
          {
              if (ModelState.IsValid)
              {
                  _context.Add(category);
                  await _context.SaveChangesAsync();
                  return RedirectToAction(nameof(Index));
              }
              return View(category);
          }
      }
  }
  
  </code></pre>
  <p>Exception</p>
  <p><a href="https://i.stack.imgur.com/gaaeO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gaaeO.png" alt="enter image description here" /></a></p>