asp.net-core-2.2 Questions
5
Using ASP.NET Core 2.2 and Identity Server 4 I have the following controller:
[HttpGet("posts"), Authorize]
public async Task<IActionResult> GetPosts() {
var authenticated = this.User.Iden...
Arrowworm asked 18/9, 2019 at 17:45
9
I am trying to host an ASP.net Core Web Application in a windows service. I am able to create a self contained deployment and created the windows service. My web application is configured to have p...
Filtration asked 11/12, 2018 at 12:25
5
I have a web api project with running fine when i ran through visual studio, able to build the image also.
but when i run using the command
docker run -d -t -p 8000:83 8fbf296e2173
shows no erro...
Incommunicative asked 4/4, 2019 at 5:38
7
Solved
I upgraded my project to .NET Core 2.2.x and got an obsolete warning regarding the following code - both lines:
public void Configure(IApplicationBuilder app,
IHostingEnvironment env,
ILoggerF...
Kaylenekayley asked 18/12, 2018 at 20:7
3
Solved
I created an .Net Core Web Api with an Angular ClientApp with the templates from Visual Studio.
When building the project also builds the contained Angular App with the params set in the .csproj ...
Incandescent asked 8/4, 2019 at 11:59
6
Solved
When running my webapp (in vscode), the debug console is filled with lines like these:
Loaded '/foo/bar/dotnet/shared/Microsoft.NETCore.App/2.2.4/System.Private.CoreLib.dll'. Skipped loading sym...
Thorma asked 15/4, 2019 at 6:49
18
Solved
I'm building a .NET Core MVC on the latest version 2.2. I have a problem when I make changes to the CSHTML file and refresh the page, my changes are not reflected in the browser. I have to restart ...
Extension asked 5/12, 2018 at 20:7
3
Solved
I know that in asp.net-core 2.2, I can get the action name as follows:
ControllerContext.ActionDescriptor.ActionName
but I am looking for a way to get the controller name of the current request/...
Alaster asked 31/8, 2019 at 22:12
28
Solved
I'm setting up the first site in IIS on Windows Server 2016 Standard.
This is a NET Core 2.2 application. I cannot get the site to show.
I am getting this error:
HTTP Error 500.0 - ANCM In-Process...
Schulein asked 1/5, 2019 at 17:5
1
I am using ASP.NET Core 2.2 for a web server, In each time a user login to the website, after entering a correct email & password, I need to send a message containing a 4-digits PIN Code to use...
Hardhack asked 7/5, 2019 at 7:39
38
Solved
After upgrading my project to ASP.NET Core 2.2, I tried to run the application (locally of course) and the browser displayed an error message like in the below screenshot.
no more errors notifi...
Firstling asked 18/2, 2019 at 21:22
4
Solved
I have a method in my basecontroller class that adds data to tempdata to display pop-up messages.
protected void AddPopupMessage(SeverityLevels severityLevel, string title, string message)
{
var ...
Auberon asked 10/6, 2019 at 14:38
4
Solved
The ConsoleLoggerProvider has four constructors:
ConsoleLoggerProvider(IConsoleLoggerSettings)
ConsoleLoggerProvider(IOptionsMonitor<ConsoleLoggerOptions>)
ConsoleLoggerProvider(Func<Str...
Lake asked 9/12, 2018 at 9:9
8
Solved
I am using Dotnet Core healthchecks as described here. In short, it looks like this:
First, you configure services like this:
services.AddHealthChecks()
.AddSqlServer("connectionString",...
Cornerstone asked 25/1, 2019 at 9:21
3
Solved
I am adding claims to the Claims Principal Identity and signing the user in. On subsequent requests, the added claims are available in the Claims Principal anywhere in the application, but only for...
Shatzer asked 27/2, 2020 at 3:56
3
Solved
I'm using aspnetboilerplate solution developed with ASP.NET core 2.2 .
The backend is deployed on azure and it uses the SQL server provided.
Sometimes, when the backend has a lot of requests to han...
Tiller asked 20/11, 2020 at 16:38
4
Solved
I have an application that is written on the top of ASP.NET Core 2.2 framework.
I have the following controller
public class TestController : Controller
{
[Route("some-parameter-3/{name}/{id:int...
Advowson asked 13/7, 2019 at 19:37
2
Solved
On an ASP.NET Core 2.2 controller I have the following:
var principal = this.User as ClaimsPrincipal;
var authenticated = this.User.Identity.IsAuthenticated;
var claims = this.User.Identities.Fi...
Inanna asked 18/9, 2019 at 10:27
6
I am using an ASP.NET Core 2.2 ApiController and I have the following:
[ApiController]
public class PostController : Controller {
[HttpGet("posts")]
public async Task<IActionResult> Get() ...
Corroborate asked 3/5, 2019 at 16:39
2
Solved
I am using Refit to call an API using a Typed Client in asp.net core 2.2 which is currently bootstrapped using a single BaseAddress from our configuration Options:
services.AddRefitClient<IMyAp...
Canea asked 29/10, 2019 at 16:52
7
Solved
Thursday night, I was working on a project built in ASP.NET Core 2.1 (being prepared for ASP.NET Core 2.2) running on my local IIS 10.0 (not IIS Express) and was able to run it without any issue. F...
Analogy asked 2/3, 2019 at 16:49
4
Problem
I am trying to handle the 'Reset password' user-flow in my application. Upon clicking the 'Forgot Password' link, the OnRemoteFailure OpenId event is successfully triggered, successfully re...
Nich asked 8/8, 2019 at 9:42
3
Solved
I deploy my code to IIS on Windows Server 2016 and I am trying to understand the effective difference between selecting Portable vs win-x64 in the Publish/Settings/Target Runtime dropdown.
Will th...
Eupatorium asked 19/12, 2018 at 23:35
7
Solved
.NET Core configuration allows so many options to add values (environment variables, json files, command line args).
I just can't figure out and find an answer how to populate it via code.
I am wri...
Gilleod asked 3/4, 2019 at 14:37
2
Solved
I'm storing some key generated by users in a IDistributedCache set up.
The key are long lived and they can be manually revoked by an user, if the user knows each one of them:
public void ConfigureS...
Spheroidicity asked 9/4, 2019 at 19:3
1 Next >
© 2022 - 2024 — McMap. All rights reserved.