ASP.NET Core uses
Microsoft.AspNetCore.Mvc **ModelMetadataType**
instead of
System.ComponentModel.DataAnnotations.**MetadataType**
Try changing your attribute to [ModelMetadataType(typeof(ComponentModelMetaData))]
More Related Contents:
- How do I get the contents of a JSON file I added in the StartUp method to use it in one of my actions?
- How to enable CORS in ASP.net Core WebAPI
- Resolving instances with ASP.NET Core DI from within ConfigureServices
- Configure the authorization server endpoint
- .NET Core 2.2 Can’t be Selected In Visual Studio Build Framework
- How to get a list of all routes in ASP.NET Core?
- IdentityServer4 Role Based Authorization for Web API with ASP.NET Core Identity
- How do I access Configuration in any class in ASP.NET Core?
- Render Razor View to string in ASP.NET Core
- JsonSerializerSettings and Asp.Net Core
- How to seed an Admin user in EF Core 2.1.0?
- Use NLog in ASP.NET Core application
- Multiple Identities in ASP.NET Core 2.0
- How do I customize ASP.Net Core model binding errors?
- Setting up Swagger (ASP.NET Core) using the Authorization headers (Bearer)
- Getting absolute URLs using ASP.NET Core
- Integration test and hosting ASP.NET Core 6.0 without Startup class
- ASP.Net Core MVC – Client-side validation for custom attribute
- Hosting ASP.NET Core API in a Windows Forms Application
- Simple JWT authentication in ASP.NET Core 1.0 Web API
- Injection of IUrlHelper in ASP.NET Core
- Blazor component : refresh parent when model is updated from child component
- Serilog DI in ASP.NET Core, which ILogger interface to inject?
- Refresh Token using Polly with Named Client
- Using a Scoped service in a Singleton in an Asp.Net Core app
- How to get user information in DbContext using Net Core
- How to map fallback in ASP .NET Core Web API so that Blazor WASM app only intercepts requests that are not to the API
- How to convert a file into byte array in memory?
- What Nuget packages must be referenced by an ASP.NET Core 6 application parts project
- No service for type ‘Microsoft.AspNetCore.Identity.UserManager`1[Microsoft.AspNetCore.Identity.IdentityUser]’ has been registered