Category "asp.net-core"

ASP.NET Core 3.0 - Can't Update-Database

I just created the project using the command dotnet new angular -o <output_directory_name> -au Individual and scaffold identity then I installed Microsoft

Areas do not work in ASP.NET 6 with Angular project

I have created an dotnet angular project with the command: dotnet new angular -o my-new-app My app is working fine. But now I want to add areas in the controll

Difference between @bind and @bind-value

What is the difference of using @bind and @bind-value? I made this simple example, and testing it in the browser, I didn't see any difference. <p>@@bind

Using Attribute and ActionFilters for logging request and response of controller and actions

I am trying to find an elegant way of logging every request and response in my Web API using Filters in Asp.net Core 3.1 rather than have them in each action a

Update a dynamic created JS html table after a row is deleted

I have an HTML table dynamically created via JavaScript. After filling in some fields, clicking the "Add" button adds a new row to the table. After inserting a

Where is Asp.net core 3.0 nuget packages?

I went to Nuget.org to fetch Microsoft.AspNetCore.Mvc.Core 3.0.0 but didn't find it, Is there any reason for Microsoft for not pushing these packages?

Formatting DateTime in ASP.NET Core 3.0 using System.Text.Json

I am migrating a web API from .NET Core 2.2 to 3.0 and want to use the new System.Text.Json. When using Newtonsoft I was able to format DateTime using the code

Global route for all ApiControllers in .Net 6

In all of my projects i put this code in top my controllers : [Route("api/[controller]/[action]")] [ApiController] public class ValuesController : ControllerBas

Multiple Objects stored in database ASP.NET Entity Framework

Can I make the below changes to my databse whilst maintaining the one-to-many relationship? Would my Airport class need to change at all? Existing Flight class:

What is the difference between services.AddAuthentication() and services.AddAuthorization() in asp net core?

I have the following code and i want to understand what is the difference between those two extension methods. What each one do? services.AddAuthentication (Jw

VS2022: how to make ASP.NET Core 5 app show it's console window

In VS2019, when I start my ASP.NET Core 5 app, which just exposes an API, if that matters, a console window pops up for that app. There used to be some setting

aspnetcoremoduleV2 missing from iis modules after running the runtime bundle

I dont have aspnetcoremoduleV2 in iis modules, even after installing the runtime/hosting bundle so I cant deploy or test any core service P.S: I used to hav

Running .NET 5 Api under Kestrel from Visual Studio 2019 ignores launchSettings.json applicationUrl setting

We are having an "only on my machine" issue that nobody can figure out. We have a .NET 5 Api that we run under Kestrel for development purposes. On every other

How to fix "AADSTS90102: 'redirect_uri' value must be a valid absolute Uri." error in Microsoft Graph

Following this procedure: https://docs.microsoft.com/en-us/graph/auth-v2-user I'm trying to get a refresh token from this microsoft end point: https://login.m

Include custom WWW-Authenticate header in 401 Unauthorised response when using Microsoft.Identity.Web

Following instructions on making MS Office connect to my Asp.NET Core Web API, I am attempting to present a login redirect to MS Office for failed authenticatio

ASP.NET Core stream video from the OpenCVSharp capture

I want to stream video captured from the webcam using ASP.NET Core application. I also need to do some manipulations with the frames, that's why I'm using OpenC

Set configuration part in startup with static parameters not json file in .net core

I have this line of code in my test solution . I want to config ravenoption in my test code. public IHost host = null; public IDocumentStore documentStore = nul

How to turn on CircuitOptions.DetailedErrors?

I'm getting this message in the console when running a server-side Blazor app: Error: There was an unhandled exception on the current circuit, so this cir

How to run python script from C# code by using command

I have a script file(run_edr.py) in my local machine and when I run it by using "cmd" and the following command then the script works perfectly. The script take

How to display default value in dropdown editor for grid column

This is my grid: var grid = Html.Kendo().Grid<UserVM>() .Name("Grid") .DataSource(dataSource => dataSource .Ajax() .Events(even