Skip to main content

Questions tagged [asp.net-core-mvc]

ASP.NET Core MVC is a lightweight presentation framework for creating dynamic websites with ASP.NET Core. It allows for creating controller based MVC sites, or view model based Razor pages. MVC includes features like routing, model binding and validation, filters, web APIs and the Razor view engine.

asp.net-core-mvc
4,881 questions with no upvoted or accepted answers
27 votes
3 answers
9k views

Is there UI to manage ASP.NET Identity users/roles compatible with ASP.NET 5?

I'm using: VS2015u2 ASP.NET 5 MVC 6 I'm looking for some UI to manage users/roles. Some things I've tried: Identity Manager - https://github.com/IdentityManager/IdentityManager I guess it's still ...
f0rt's user avatar
  • 1,901
16 votes
1 answer
4k views

What is the appsetting.json version of <defaultProxy>?

What is the .Net Core appsettings.json version of <defaultProxy useDefaultCredentials="true"> <proxy autoDetect="True" proxyaddress="http://localhost:8888/" ...
CheeZe5's user avatar
  • 985
14 votes
1 answer
3k views

How to use RouteDataRequestCultureProvider with ASP.NET Core 2.2 EndpointRouting enabled?

I am trying to use the RouteDataRequestCultureProvider in a new ASP.NET Core 2.2 MVC project. I've read the Microsoft documentation on Routing in ASP.NET Core to understand the changes introduced in ...
David Schwab's user avatar
12 votes
0 answers
5k views

ASP.NET Core MVC Slow response generation

I have an ASP.NET Core MVC web application that has an endpoint which returns some data as a json. The onlly issue is that my data is around 5 MBs of raw (non-idented) JSON, and the response takes a ...
Hentov's user avatar
  • 483
11 votes
1 answer
14k views

All nuget packages requiring net6.0 are "not compatible with net6.0" even after complete Windows reset

After booting up my PC I tried to continue using a previous project I had been working on: ASP.NET MVC Core 6.0. All of a sudden Microsoft.EntityFrameworkCore was not installed in the solution. After ...
pintoramos28's user avatar
11 votes
0 answers
352 views

What is relation between AuthenticationScheme and IIdentity.AuthenticationType

How are they connected? I can use HttpContext.SignInAsync, and then HttpContext.User is set to provided identity, however I have one identity and multiple authentication ways - what if user login as ...
Shadow's user avatar
  • 2,328
11 votes
1 answer
2k views

ASP.NET Core targeting full framework with EF6 and Identity

I currently have a .NET Core Web App targeting the full .NET Framework and a .NET 4.6.1 class library project that contains my EF6 implementation. I have these two currently working together. Now I ...
Brandon's user avatar
  • 69.5k
11 votes
2 answers
251 views

Date in model binding is being set as American format even though culture is set as British in .net core 2.1

Model binding for date in .net core 2.1 is setting date value in American format even though culture info is set as British format. Any idea ? Here is my startup file code snippet var ...
Anwar Ul-haq's user avatar
  • 1,871
10 votes
3 answers
4k views

Can I use IdentityServer4 spa JS UI instead of asp .net core mvc?

I looked example of IdentityServer4 UI (IdentityServer4.Quickstart.UI) UI in it on the basis of asp .net core mvc. Examples for spa JS UI I have not found. Is is safe to use spa js UI, and how to do ...
Евгений's user avatar
9 votes
3 answers
4k views

Unable to generate deps.json to enable migrations

I use Asp.net core mvc for web developing. I want to enable entityframework migrations via Entity Framework Core .NET Command Line Tools: dotnet ef migrations add InitialDatabase but an error occurs:...
arsmn's user avatar
  • 451
9 votes
2 answers
1k views

First call to ASP.NET Core 2.0 Web API with Windows authentication on HTTPS always fails in Chrome

I am developing an application with ASP.NET Core 2.0 Web Api backend with Windows authentication and React frontend where I am experiencing that the first call to the API made from the frontend fails ...
Avilan's user avatar
  • 608
9 votes
0 answers
1k views

How to correctly localize validation in IValidatableObject.Validate method for ASP.Net Core MVC

I have a model implementing IValidatableObject and I need to localize ValidationResults, how can I correctly achieve that ? Currently I came up with an IValidatableObject.Validate method that looks ...
Gwinn's user avatar
  • 1,328
8 votes
0 answers
418 views

Unit Testing a custom TagHelper where HTML conditionally rendered based on the presence of a ValidationAttribute on the model Property

I have a custom TagHelper which extends the OOTB InputTagHelper. I am conditionally adding attributes to it based on the presence of a custom ValidationAttribute on the model property associated with ...
Ciaran's user avatar
  • 573
8 votes
1 answer
4k views

How to send push notification to Flutter app from Asp.net core

We have a requirement where we need to send push notification to a flutter application ( android,iOS ) from .net core application. I spent sometimes searching on google but didn't find any suitable ...
Mansoor's user avatar
  • 93
8 votes
1 answer
2k views

Is it possible to integrate Microsoft.Extensions.Configuration library with ASP.NET 5?

I decided to migrate one of my ASP.NET MVC 5 applications to ASP.NET Core 2, but I would like to keep both versions working. I've already migrated all class libraries to .NET Standard (so that I can ...
PJDev's user avatar
  • 983

15 30 50 per page
1
2 3 4 5
326