How to fix 'asp-controller and asp-action attributes not working in areas'
By FoxLearn 2/18/2024 9:24:51 AM 178
This post shows you how to fix "asp-controller and asp-action attributes not working" or "form asp-action in areas. Can't find a controller. Asp.Net Core"
In your areas create a _ViewImports.cshtml file, then copy the one from your main ~/Views folder.
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
I think the problem is VS Intellisense doesn't load your tag helpers for your areas
- Getting Started with ASP.NET Core 3.0
- How to fix 'Authorization in ASP.NET Core' with 401 Unauthorized
- The name 'Session' does not exist in the current context
- How to create a Toast Notifications in ASP.NET Core
- How to Minify HTML using WebMarkupMin in ASP.NET Core
- How to fix 'IMvcBuilder' does not contain a definition for 'AddNewtonsoftJson'
- How to fix System.InvalidOperationException: Scheme already exists: Identity.Application
- How to fix 'DbContextOptionsBuilder' does not contain a definition for 'UseSqlServer'
Categories
Popular Posts
How to get Credentials in PowerShell?
10/03/2024
How to sign a powershell script
10/03/2024
How to implement Jint in C#
09/14/2024