asp.net-core Questions

4

Is it possible to use SignInManager without having some HTTPContext ? I'm making a Blazor server-side app and I need to make end-users signed in using PasswordSignInAsync() method of SignInManager....
Triumphal asked 21/11, 2019 at 11:26

3

Solved

I am developing a CRM by .net core mvc and EF which needs a lot of DB connection to retrieve and update information. From time to time I face this error during debugging, this is a big project with...

3

Solved

I have asp.net core project which runs on Asp.Net Core V2.1.0 which has signal r integrated. I have downloaded a sample project from aspnetbrolerplate. When I try to run the application it gives me...
Shakti asked 10/7, 2018 at 15:19

4

I am working on Asp.Net Core app I want to change the configuration settings after running the application I am using IOptionsMonitor, but it is not detecting changes In Startup.cs -> Configurat...
Unfounded asked 23/3, 2018 at 16:18

2

Solved

I have this bit of code and when running in .NET 4.8 gives a different result than .NET 8 var cultureInfo = CultureInfo.CreateSpecificCulture("ar-KW"); var date = new DateTime(202...
Disenthrall asked 14/10 at 5:41

3

Solved

I am new to asp.net core and I created an app with Asp.Net Core 2.2 +EF using Identity Core to create a registration page and I got this error after I ran the app and introduced some test data(emai...
Neutrino asked 19/9, 2019 at 17:59

3

I'm working on a Blazor 8 application and I'm having trouble with browser caching of my static files. When I make changes to the CSS files, the changes are not immediately visible because the brows...
Stalky asked 30/11, 2023 at 9:23

2

Solved

I'm going to return a bad request result in my action filter. I have two choices: context.result = new BadRequestResult(); or context.result = new BadRequestObjectResult(); It seems there are coupl...
Maillot asked 9/7, 2020 at 15:8

5

I am a beginner in Angular and tried to implement global error handling in the application for this purpose I create appErrorHandler class and implement ErrorHandler and I inject Toast Service on t...
Oversold asked 9/1, 2021 at 16:46

5

I'm working on macOS Big Sur and Visual Studio .net core 5. I think the issues started after allowing Visual Studio to install updates (I wasn't expecting any issues), after a few hours dotnet comm...
Anguilla asked 21/12, 2021 at 9:40

2

Solved

I'm working on an ASP.NET Core 5.0 project which has a service that accesses an API. Based on the code below, I'd expect the HttpClient supplied to ToornamentService's constructor to contain the de...

2

Solved

I was looking at a way for caching responses from an API endpoint developed in .NET Core. The request to the API must have a valid Authorization header as part the requirement. I came across a fe...
Kansas asked 14/8, 2019 at 9:29

8

Solved

On our new company laptops we are running into issues running containers in docker desktop from visual studio. We tried a bunch of things which were unsuccessful. Any help / thoughts would be great...
Ecclesiasticism asked 17/5, 2022 at 2:27

3

Solved

If we have such controller endpoint in Asp.Net Core: [HttpGet("/api/resources/{someParam}")] public async Task<ActionResult> TestEndpoint([FromRoute] string someParam) { string som...
Printery asked 26/7, 2020 at 15:49

4

Solved

I need database connection string in two places in appsettings.json. Is it possible to introduce common variable or json-path related references into json file to avoid potencial problems? It wo...
Ericaericaceous asked 16/10, 2019 at 12:34

3

Solved

I am writing integration tests for my app which uses .net5 I have used WebApplicationFactory with IHostBuilder for setting up environment. Custom fixture -> public class TestFixture<T> : W...
Surber asked 15/11, 2021 at 12:13

2

I have an EF model with a notification emails property. The notification emails are saved in the database as string separated by ';'. I added a conversion to retrieve the data as a ICollection in t...
Mindi asked 13/5, 2019 at 8:58

3

I have Asp.net Core Identity version 2.0 Set up and running. I am finding that _signinManager.SignoutAsync is not logging out user once they have signed in with Google. When I go back to my Login M...

3

While trying to display currency with the attribute [DataType(DataType.Currency)] and using @Html.DisplayFor(model => model.Variable), the format is not displaying correctly on my OS X computer ...
Chapel asked 11/9, 2017 at 21:51

3

I'm trying to use external login provider in my IdentityServer4. I followed the quickstart, and everything was working fine, now I'm trying to add Microsoft login. I added this code in IS4's Startu...
Infiltration asked 16/9, 2020 at 16:13

2

I was reading Resource-based authorization in ASP.NET Core on learn.microsoft.com and I am confused about complexity required to check author of a document. In this example we need to create Opera...
Chickaree asked 8/1, 2020 at 20:54

6

I'm developing an authorization system on ASP.NET Core 2.1 which requires both resource level and scope adherence before granting access. That is, I must be an author of a book (there can be multip...
Immingle asked 24/2, 2019 at 12:55

14

Solved

My project does not add reference to another in the same solution. I created a project for a website and and abstracted all the parts of the program into .Net Class Libraries (My models in a diffe...
Bowra asked 7/9, 2019 at 23:50

3

Solved

.NET Core 3.1 supports DataTable/DataSet, DataRow, DataView, etc - which was not available when the OP created the following question based on my research, it seems like .net core does not suppor...
Egeria asked 18/2, 2017 at 9:6

4

Solved

I'm writing a Blazor app and obviously I want to get some components rendered in there. I've just tried adding a basic navigation element to my main layout but it's not rendering. I can see the ele...
Enclave asked 12/8, 2018 at 1:57

© 2022 - 2024 — McMap. All rights reserved.