asp.net-core Questions
1
I am trying to execute a simple default Graphql app on Visual studio 2022 on .net 6 and 7.
When the app is executed from visual studio I get the error "localhost is currently unable to handle ...
Clavius asked 11/10, 2023 at 6:1
4
Solved
I am using Serilog to log information about an asp.net core 2.1 application hosted on IIS. When exceptions occur, I am informed by email. The thing is, some exceptions happen without hurting the ap...
Cartercarteret asked 29/8, 2018 at 19:17
3
I am using Asp.net 6 web API in my project and I am confused about understanding routing functions. Previously when we build API we use to use following middleware
app.UseRouting()
...Other middle...
Woodworking asked 29/4, 2022 at 20:57
5
Solved
I followed these links:
Prepare your identity server
How to delete samesies cookies
These are my settings:
services.AddIdentityServer()
.AddApiAuthorization<ApplicationUser, ApplicationDbCo...
Crosspatch asked 9/3, 2021 at 10:52
3
Solved
I have an angular 8 application under Visual Studio Professional 2017 Aspnet Core. If I run the application via angular cli with ng serve (or npm start) it works well, I can access the application....
Woolly asked 26/12, 2019 at 21:42
4
I have one .Net Core Razor pages app which is trying to call a .Net Core API with a class library created using Refit.
I have created one Refit API interface which uses a model with enum as one of ...
Affirm asked 23/8, 2021 at 6:40
9
Solved
I have a WebAPI project and I do a post-build process that calls "swagger.exe", which is a tool provided by NuGet Package. To install globally it, I used the following command:
dotnet too...
Knudson asked 27/7, 2022 at 0:50
1
According to learn.microsoft.com ASP.NET core implements the Synchronizer Token Pattern to mitigate CSRF.
The Anti request forgery mechanism has many drawbacks impacting users:
ex 1: login page ope...
Ligni asked 8/10, 2019 at 16:18
5
Solved
I am building a simple Asp.Net Core app in linux(pop os). I am using VueJs + Aps.Net Core 3.1.101
I am trying to do a POST call to my app and my model is like below:
public class AddConfigurationC...
Unclassical asked 8/2, 2020 at 20:38
5
I have an app built using .NET8 Blazor with InteractiveServerRenderMode.
App.razor is configured like in Template you get when you create Blazor Server App with Global Interactivity and Identity.
I...
Bespread asked 4/3 at 17:45
4
Solved
I've tried all the solution available at StackOverflow and VS developer community but I'm unable to resolve the error saying.
A product matching the following parameters cannot be found:
channelI...
Dogwatch asked 30/11, 2017 at 16:24
3
Solved
So I'm working on a custom dotnet cli tool as described here. I'm getting started with it and can run my console app using dotnet run, but it's going right past my breakpoints when trying to debug....
Urus asked 26/7, 2020 at 16:55
8
I am using Asp.Net Core and ASP.NET Identity and when I get a Claim type I get something like
"type":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier",
"value":"123"
How to...
Briefing asked 30/3, 2016 at 17:18
2
Solved
I try to deploy my .net core site to Azure via Publish context menu in VS2017 and occasionally (about 1 in 3 deploys), I get the error below.
Web deployment task failed. (Web Deploy cannot modif...
Lament asked 27/9, 2017 at 18:8
3
Solved
What is the code-first approach to set the default value of a database column in entity framework core?
Attempt #1: Using the DefaultValue attribute on the model doesn't seem to work
[DefaultValue(...
Harwill asked 14/12, 2020 at 22:33
5
I have an ASP.NET Core Web API 3 app that implements a REST API and uses a JWT bearer token for authorization, and Swagger (Swashbuckle).
My controller has the [Authorize] filter on it, like:
[Ap...
Byronbyrum asked 10/4, 2020 at 23:49
3
Solved
ASP.NET Core (Version: 2.2.102)
I am building an API to return Portos and Especies, but anytime that I access /api/portos (as defined in the controller), I get this error:
InvalidOperationExcep...
Phillada asked 17/1, 2019 at 15:56
5
Solved
I'm using ASP.NET Core as a REST API Service.
I need access to request and response in ActionFilter. Actually, I found the request in OnActionExcecuted but I can't read the response result.
I'm try...
Spiegelman asked 5/12, 2018 at 6:37
3
Solved
I have a Blazor Web Assembly app on dotnet 5. I've added a Microsoft.AspNetCore.Components.Forms.InputFile control to a component. This causes a "Choose Files" button to be rendered.
How ...
Faenza asked 14/4, 2021 at 19:29
5
Kinda confused here, super simple hello-world example of localization in ASP.Net Core 2.0. My About page is set up to render two localized strings:
From the view (using IViewLocalizer)
From code ...
Fritillary asked 30/1, 2018 at 19:12
2
Solved
I have a UserContext Service where I'll put some basic functionalities ("IsAuthenticated, GetUser etc...)
In order to do that, I need to pass the HTTPContext from my WebAPI Controller to my Class ...
Kenney asked 21/6, 2017 at 18:10
11
I copied the following project from win 8.1 to windows 7 and deleted the Migration folder. Now when I run PM> Add-Migration MyFirstMigration -context BloggingContext command in VS2015 I get the ...
Caesarea asked 20/7, 2016 at 16:50
10
Solved
I have an ASP.NET Core Web API and a separate React app. The Web API uses Windows Authentication. When deployed to the server, I don't have any issues, but when I try to run the app locally, I get ...
Bewitch asked 15/9, 2021 at 16:59
2
I define my strong typed SignalR hub exactly by MS Rules
public class OutputMessages : Hub<IOutputMessages>
{...}
than inject my SignalR hub to conctoller by the same way
public class Applic...
Daphinedaphna asked 23/8, 2020 at 0:52
4
Solved
I've got an older asp.net core identity database, and I want to map a new project (a web api) to it.
Just for the test, I copied the Models folder, and the ApplicationUser file from the previous p...
Northeasterly asked 16/1, 2017 at 14:58
© 2022 - 2024 — McMap. All rights reserved.