asp.net-core-2.2 Questions
1
We are building an ASP.net application using Entity Framework core with Azure DevOps and targeting IIS with MSSQL server 2016.
Our test server is a local Windows 2016 machine containing both IIS a...
Newness asked 18/1, 2019 at 11:25
1
Solved
The application is deployed as an (32-bit, .NET Core 2.2) App Service on Azure. It works fine when using the standard AspNetCoreModule instead of the newer AspNetCoreModuleV2 that supports th...
Cosmology asked 3/1, 2019 at 10:45
3
Solved
I understand that the order of registration for middleware may matter. However, it's not given that it's necessarily the case.
I noticed that UseDefaultFiles() needs to precede UseStaticFiles() (w...
Longitudinal asked 31/12, 2018 at 15:7
2
Solved
I am creating a c# .net core 2.2 web API for my next project. My question is when returning data should I return the object or IActionResult OK(returnObject)?
The reason I ask is I am using swagge...
Powerless asked 31/12, 2018 at 12:19
1
Solved
I've updated my project to .net core 2.2 and it seems like CORS is making problems that weren't there in 2.1.
I'm running my app on this URL: http://*:5300
I've added this code in the Startup.cs:...
Chrissy asked 26/12, 2018 at 12:53
1
How can I track events on adding, updating or deleting entity rows with Linq2Db?
I need to recalculate some data in db on this operations, what is the best way?
On Entity Framework I use my custo...
Scornful asked 25/12, 2018 at 19:18
1
Solved
When I power my APIs with Swagger, I follow one of those guids and I always put the MVC injections before Swagger injections like this.
services.AddMvc();
services.AddSwaggerGen(_ => { ... });
...
Spectacled asked 25/12, 2018 at 20:24
1
Solved
How to keep the session alive after the browser is closed for 15 minutes using Identity in Core 2.2?
I have an application written using C# on the top of ASP.NET Core 2.2 framework.
I am using Identity to user management and user control. Currently, everytime a user closed his/her browser and ope...
Arv asked 23/12, 2018 at 20:7
1
After upgrading the ASP NET Web API project framework to the Core 2.2 version, the OData route configuration fails. It throws "Cannot use 'Microsoft.AspNet.OData.Routing.ODataRoute' with Endpoint R...
Vortex asked 13/12, 2018 at 10:31
2
I'm new to dot-net core 2.x, so...
I would like to change the type of the Id in asp.net core 2.2 IdentityUser from string to int.
All the examples I've found via google (and the stackoverflow sea...
Ampliate asked 12/12, 2018 at 18:56
2
Solved
In the launchSettings.json I have the following. It works and I can access Swagger and the rest of the page using https://localhost:44300.
{ ...
"iisSettings": {
"windowsAuthentication": false, ...
Now asked 5/12, 2018 at 19:23
1
Solved
What is the best way to model the current user in a query? I'm creating a razor page application. I need to be able to attach the current user when I am executing queries and commands. Is there a r...
Arber asked 22/10, 2018 at 23:43
© 2022 - 2024 — McMap. All rights reserved.