4,234 questions with ASP.NET Core tags

Sort by: Updated
1 answer

Updating app service from .NET 6 to 8

I'm trying to update my asp.net core backend from .NET 6 to 8. I've updated the target framework for the projects, changed the docker images to version 8, and updated the exposed ports. It runs as expected locally. (In the past month, I've updated a…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,451 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,234 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,004 questions
asked 2024-04-30T20:53:38.6433333+00:00
Rebekah Williams 0 Reputation points
edited a comment 2024-05-02T13:32:54.71+00:00
Azizkhon Ishankhonov 195 Reputation points
1 answer One of the answers was accepted by the question author.

how to use signalr in minimal api?

can not use AddSignalR and I can use AddSignalRCore but there will be error. I created the ASP.NET Core Web API (native aot).

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,234 questions
asked 2024-04-29T13:33:56.15+00:00
mc 3,701 Reputation points
accepted 2024-05-02T01:10:14.1633333+00:00
mc 3,701 Reputation points
1 answer

*System.Threading.Tasks.TaskCanceledException: The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing

Hi, Why my Polly Timeout handler not working? I still getting: "System.Threading.Tasks.TaskCanceledException: The request was canceled due to the configured HttpClient.Timeout of 100 seconds…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,234 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,306 questions
asked 2023-11-07T09:14:10.64+00:00
winanjaya 146 Reputation points
answered 2024-05-01T17:24:47.3066667+00:00
William Saylor 0 Reputation points
1 answer

What is the difference between AddHttpClientInstrumentation and AddAspNetCoreInstrumentation

In Asp.net core, to provide auto trace instrumentation, we can do the followings. services.AddOpenTelemetryTracing(providerBuilder => { providerBuilder …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,234 questions
asked 2022-09-16T22:57:23.02+00:00
andrew choi 1 Reputation point
answered 2024-05-01T14:34:25.1066667+00:00
Liam Bao 0 Reputation points
5 answers

Error: 'Package restore failed rolling back package change for' while running Scaffold-Dbcontext in Entity Framework Core 7.0.14

Hello, I'm working on a project using .NET Core 7 and encountering an issue when running Scaffold-DbContext with Entity Framework 7.0.14. The error message I'm getting is "there was an error running the selected code generator package restore failed…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
701 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,234 questions
asked 2023-12-19T20:12:20.84+00:00
UMUT CAN 5 Reputation points
answered 2024-05-01T12:35:50.3466667+00:00
Ian Hewitt 0 Reputation points
2 answers One of the answers was accepted by the question author.

Add Items to List Randomly

I am fetching 50 questions from Api https://supaquizapi.azurewebsites.net/api/Questions Loading into list and deleting 40 questions randomly. Now I just to add 10 questions randomly to Questions List<InQuestion> res = await GetApiData(); …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,234 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,364 questions
asked 2024-04-30T08:09:59.47+00:00
Maui Learner 480 Reputation points
accepted 2024-05-01T10:16:55.2566667+00:00
Maui Learner 480 Reputation points
0 answers

OutputCaching issue in .NET 8.0

Hi, I have implemented the Output Caching in ASP.NET Core 8.0 and deployed the same S3 bucket and Lambda function and its exposed through AWS API gateway. After implementation output cache and I have tested the local swagger API through postman first…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,451 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,234 questions
asked 2024-04-26T11:48:11.7033333+00:00
Venkat 1 Reputation point
commented 2024-04-30T18:36:17.5333333+00:00
Venkat 1 Reputation point
2 answers

Dynamically pass the B2C sign-in policy in .NET 8

I am developing the web application using .NET 8 with Asp.NET MVC and using Azure B2C tenant for Authentication. And it will be hosted in the Azure App services that configured with two domain urls. Based on the requested Urls, I wanted to pass the…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,234 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,801 questions
asked 2024-04-19T16:58:01.86+00:00
Ragu 0 Reputation points
answered 2024-04-30T15:55:04.2+00:00
Ragu 0 Reputation points
1 answer One of the answers was accepted by the question author.

How to Sum, Join, Union, Group By Month And Year Using LINQ Query

I have two tables. I want to find the sum of the data in one table and the subtraction of the second table. I am trying to explain the matter by attaching an image below. Note here that I don't know which table's data will come first. Maybe the data of…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,234 questions
asked 2024-04-24T09:55:08.01+00:00
jewel 801 Reputation points
accepted 2024-04-30T10:16:36.6933333+00:00
jewel 801 Reputation points
1 answer One of the answers was accepted by the question author.

Application exception when trying to get response from server

Register.cshtml 1. ``````xml <button type="submit" class="btn btn-outline-primary btn-sm ml-4 mt-4" asp-page-handler="GenerateOtp" style=" width: 150px;"…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,234 questions
asked 2024-04-29T07:21:39.1033333+00:00
Surya Chandra Mohan 20 Reputation points
commented 2024-04-30T07:18:43.6366667+00:00
Surya Chandra Mohan 20 Reputation points
1 answer

Support of Azure Notification Hubs’ Firebase Cloud Messaging legacy API will be retired by 1 July 2024

I am using ASP.NET Core Web API to send push notifications to Android and iOS devices using the method given below. I am not using any API endpoint directly. Should I change anything in this? string jsonPayLoad = string.Empty; …

Azure Notification Hubs
Azure Notification Hubs
An Azure service that is used to send push notifications to all major platforms from the cloud or on-premises environments.
270 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,234 questions
asked 2024-04-24T05:33:45.3866667+00:00
Vijay Pratap Singh 21 Reputation points
answered 2024-04-30T04:35:52.8833333+00:00
SnehaAgrawal-MSFT 18,701 Reputation points
1 answer

An unhandled exception occurred while processing the request. ApplicationException:

Register.cshtml 1. 1. xml @page @model FaceAdminApp.Pages.Auth.RegisterModel @{ ViewData["Title"] = "Register"; } @if (Model.IsPhoneNumberPresent) { <div…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,234 questions
asked 2024-04-29T07:34:13.99+00:00
Nandini S 20 Reputation points
answered 2024-04-29T20:03:50.9266667+00:00
Bruce (SqlWork.com) 57,731 Reputation points
1 answer

Customize the EmailConfirmation and 2FA token expiration in .NET 8.0

Is there a way to extend the 2FA and Email confirmation token expiration timespan with email in .NET 8.0? I am using the Microsoft.AspNetCore.Identity and Microsoft.AspNetCore.Authentication classes to use the 2FA with…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,234 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,364 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
304 questions
asked 2024-04-27T00:03:30.5266667+00:00
Francisco A. Henríquez N 0 Reputation points
accepted 2024-04-29T17:04:38.0533333+00:00
Francisco A. Henríquez N 0 Reputation points
0 answers

An unhandled exception occurred while processing the request. ApplicationException:

Register.cshtml @page @model FaceAdminApp.Pages.Auth.RegisterModel @{ ViewData["Title"] = "Register"; } @if (Model.IsPhoneNumberPresent) { <div class="container"> <div class="row…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,234 questions
asked 2024-04-29T10:37:59.57+00:00
Nandini S 20 Reputation points
commented 2024-04-29T13:13:20.7033333+00:00
Jerry Fu - MSFT 561 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

how do I uninstall Microsoft.NETCore.App 6.0.25 and Microsoft Microsoft.WindowsDesktop.App 6.0.25

I have remove .net using Add or Remove program but when I do dotnet --list-runtimes I still see and I am not sure how to uninstall them. Microsoft.NETCore.App 6.0.25 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.25…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,234 questions
asked 2024-04-27T21:26:07.1366667+00:00
David Ghoussoub 41 Reputation points
accepted 2024-04-29T12:17:33.64+00:00
David Ghoussoub 41 Reputation points
0 answers

Direct API POST method to another URL

Good morning, afternoon or night!! Dear all, I will need to be "listening" to an Access device that will be sending a Json in the POST Method. To do this, I created a (simple) API to do this monitoring and respond with a True or False. Problem:…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,451 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,234 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,364 questions
asked 2024-04-27T13:11:19.82+00:00
Marcelo Nogueira 20 Reputation points
commented 2024-04-29T10:09:31.17+00:00
AgaveJoe 26,161 Reputation points
1 answer

.Net core deployed application not supporting Chinese font in PDF.

I have chines font in my code when the app is deployed in app service and there is a logic to download the PDF file with the Chinese font, but the font is not visible.

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,234 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,306 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,004 questions
asked 2024-04-29T06:30:59.03+00:00
Deepak Ramesh (SX/EDA2) 0 Reputation points
edited an answer 2024-04-29T09:05:24.9833333+00:00
JasonPan - MSFT 4,386 Reputation points Microsoft Vendor
2 answers

Reuse legacy COM component in ASP .NET core Web API

I have a legacy COM dll which exposes business logic via COM objects. Its implemented using VC++. I am in process of modernising my application for web. Initially I wanted reuse this COM component without any change. A single instance of COM object only…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,451 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,234 questions
asked 2024-04-26T16:04:18.72+00:00
Rajesh Subramanian 0 Reputation points
edited the question 2024-04-29T07:04:10.69+00:00
Jiale Xue - MSFT 35,556 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

Custom ApiController Model Binding type conversion error

According to the Model Binding documentation: In an API controller that has the [ApiController] attribute, invalid model state results in an automatic HTTP 400 response. So when I send an invalid type in the request body (e.g. int instead of string),…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,234 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,364 questions
asked 2024-04-24T10:30:29.13+00:00
iKingNinja 60 Reputation points
accepted 2024-04-28T11:08:20.8766667+00:00
iKingNinja 60 Reputation points
1 answer

Blazor Culture in the Route

Is it recommended to add the language (culture) in the route e.g. site.com/en/page-name or only page name is sufficient e.g. site.com/page-name? How to I change the culture to de-DE if you paste the URL like the following? mysite.com/de/home Thank…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,234 questions
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,413 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
304 questions
asked 2024-04-26T18:27:26.8766667+00:00
Kuler Master 246 Reputation points
commented 2024-04-27T17:51:27.7266667+00:00
Kuler Master 246 Reputation points