4,059 questions with ASP.NET Core tags

Sort by: Updated
1 answer

call an api in C#

I have the following code: namespace TwilioSendMessages.Controllers { [Route("api/[controller]")] [ApiController] public class SMSController : ControllerBase { private readonly IWebHostEnvironment _webHostEnvironment; …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,059 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.
284 questions
asked 2024-03-18T04:07:46.5366667+00:00
Anjali Agarwal 1,326 Reputation points
commented 2024-03-19T05:58:23+00:00
JasonPan - MSFT 4,021 Reputation points Microsoft Vendor
0 answers

How to add accessible name ( aria-label ) in @DropDownListFor in razor?

I have filter dropdown and trying to add comply with 508 compliance. I used aria_label, aria-label and aria_labelledby but unable to see accessible name for the DropDownListFor. I see No ARIA attributes under ARIA Attributes on Chrome Browse tool. How…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,059 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,202 questions
asked 2024-03-18T17:56:37.2133333+00:00
OneWorld 0 Reputation points
commented 2024-03-19T03:25:14.29+00:00
JasonPan - MSFT 4,021 Reputation points Microsoft Vendor
4 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.
685 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,059 questions
asked 2023-12-19T20:12:20.84+00:00
UMUT CAN 5 Reputation points
answered 2024-03-19T02:31:34.14+00:00
Hoang Anh Vu 0 Reputation points
0 answers

.NET Authentication .NET 7 Vs .NET 8 in my simple API service

I’m working on a relatively simple .NET Core web API service that performs CRUD operations on a database. Not sure what's the best way to implement authentication. Here’s the situation: In .NET 7, I had to manually define all the authentication…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,244 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,059 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.
284 questions
asked 2024-03-18T18:49:31.74+00:00
Sebastian Meckovski 0 Reputation points
commented 2024-03-19T02:20:07.38+00:00
Brando Zhang-MSFT 2,636 Reputation points Microsoft Vendor
0 answers

IIS 10 with Windows Authentication not working anymore HTTP Error 401.2 - Unauthorized

I have created an application with asp.net core mvc v8 that works with Windows authentication in IIS 10. Setting: Authentication: all are disabled except Windows authentication. I have it mounted on a server and I need it to work on my local network. And…

Internet Information Services
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,059 questions
asked 2024-03-18T14:34:06.6566667+00:00
Luis Cáceres 0 Reputation points
commented 2024-03-18T18:45:33.38+00:00
Lex Li (Microsoft) 4,242 Reputation points Microsoft Employee
1 answer

How to troubleshoot registration errors particularly in the RegisterModel page and carefully review the server-side registration process to implement sweetalert pop up.

I can not register with this code. I am encountering registration errors despite the notification popping up but i would get is error message and can't register, how to address issues with the server-side registration process or with how the form data is…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,244 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,059 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,053 questions
asked 2024-03-18T07:09:55.7933333+00:00
MiKhel Navarra 20 Reputation points
edited an answer 2024-03-18T12:27:07.67+00:00
AgaveJoe 25,841 Reputation points
10 answers

How to implement rotativa package to my asp.net core mvc?

How to implement rotative package for print functionalities in my mvc project? How to implement methods to my controller, repository, interface and to my view? This is my controller: public async Task<IActionResult> PrintFoodItem(string item,…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,059 questions
asked 2024-03-11T01:52:27.5133333+00:00
MiKhel Navarra 20 Reputation points
answered 2024-03-18T08:35:20.2133333+00:00
MiKhel Navarra 20 Reputation points
0 answers

MSAL package issues

We are trying to migrate our application from angular 15 to angular 17 and come across compatibility issues with MSAL library. Is there any alternative to make this work with angular 17 or alternative package to this?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,244 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,059 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,202 questions
asked 2023-12-21T06:02:39.2266667+00:00
Jothivel, Nandhini Priya 0 Reputation points
edited a comment 2024-03-18T06:35:02.81+00:00
Konrad Viltersten 5 Reputation points
0 answers

Azure B2C Authentication with OWIN for ASP.NET MVC Application - Login is not prompting for credential after successful Logout

We have an application that is built using ASP.NET MVC. We have implemented Azure B2C authentication with OWIN (Open Id Connect) framework. Login functionality is working fine for the first time however, we have another requirement that the application…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,059 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,202 questions
Microsoft Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
2,598 questions
asked 2024-03-13T21:58:55.2566667+00:00
Basu, Sayantan 0 Reputation points
commented 2024-03-18T06:31:44.1266667+00:00
Shweta Mathur 26,161 Reputation points Microsoft Employee
1 answer

How to Fix "The ConnectionString property has not been initialized." In ASP.NET Core 8,MVC in visual studio 22

I am working on a project called:"MecoManageMovies" Using ASP.NET Core 8, C# MVC in Visual Studio 22 In Update_Datebase in PM, I get:"The ConnectionString property has not been initialized."

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,059 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,482 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,404 questions
asked 2024-02-18T17:24:48.8866667+00:00
Merlyn Coleman 0 Reputation points
commented 2024-03-17T18:13:59.2166667+00:00
Bruce (SqlWork.com) 53,251 Reputation points
1 answer

Using entire json in Azure container apps secrets

Hi all, I have an asp.net 8 application and using configuration system of asp.net. This app is hosted in azure container apps. There are used secrets and via environment variables are passed configuration to asp.net configuration (options) system. For…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,059 questions
Azure Container Apps
Azure Container Apps
An Azure service that provides a general-purpose, serverless container platform.
238 questions
asked 2024-03-15T10:44:18.2466667+00:00
Jan Sr 0 Reputation points
answered 2024-03-17T15:43:57.0933333+00:00
Bruce (SqlWork.com) 53,251 Reputation points
5 answers

Reload the page to restore functionality, Blazor Server .NET 8

I am here to complain about the famous error: Could not reconnect to the server. Reload the page to restore functionality. I develop Apps using .NET 8 and Blazor Server My customers use the App on mobile phone but if they turned off the screen for while…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,244 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,059 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,343 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,053 questions
asked 2024-03-10T19:51:17.2366667+00:00
Waleed 1 Reputation point
commented 2024-03-17T15:41:25.2366667+00:00
Bruce (SqlWork.com) 53,251 Reputation points
3 answers

Setting ASPNETCORE_ENVIRONMENT variables system wide for BLUE GREEN setup

Hi, we have a number of environments (CI, QA, STAGING, BLUE, GREEN) where we have set the ASPNETCORE_ENVIRONMENT variable for the entire environment at the machine level. this is set in the applicationHost.config in the system.webServer area as…

Internet Information Services
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,059 questions
asked 2023-04-18T20:32:38.25+00:00
Lance Lyons 86 Reputation points
answered 2024-03-17T09:57:16.2966667+00:00
jacqueline callaghan 0 Reputation points
2 answers

How to use two existing user tables in implementing two-factor authentication using Asp.Net Core

I am working on a legacy Asp.Net Web Forms application which is nearly 18 years old. Currently it has two users tables: 1. TempUser and 2. PermUser. It uses a simple form based authentication where either of the users enter their username/password and…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,059 questions
asked 2024-03-15T16:18:10.1866667+00:00
Sherpa 161 Reputation points
answered 2024-03-16T01:47:11.2933333+00:00
SurferOnWww 1,716 Reputation points
1 answer One of the answers was accepted by the question author.

Why does ASP.NET Core log an unhandled exception when using a global exception handler?

Hi, I'm currently developing a REST API with ASP.NET Core 8.0.3. There I want to use a custom exception handler that handles undhandled exceptions. As mentioned in the docs I created a GlobalExceptionHandler class that implements IExceptionHandler. My…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,059 questions
asked 2024-03-15T11:37:51.4966667+00:00
Al Onestone 20 Reputation points
commented 2024-03-15T14:04:02.7433333+00:00
Al Onestone 20 Reputation points
0 answers

What Is the Best Way to See Raw Data Stream Being Passed from SQL to .NET Application?

I am running some functions on application startup for my .NET application. This mostly involves running a bunch of scripts on my SQL database to ensure plans are cached. These queries are generated from EFCore-compiled queries. In doing this, I…

Azure SQL Database
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,244 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,059 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,404 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,632 questions
asked 2024-03-14T19:52:31.8+00:00
Mike-E-angelo 436 Reputation points
commented 2024-03-15T11:45:18.6366667+00:00
AgaveJoe 25,841 Reputation points
1 answer

Compatibility between .NET CORE 8 and SQL SERVER 2012

Hi, I would like to ask the following question: Is the framework .NET CORE 8 compatible with SQL SERVER 2012? Can the .NET CORE 8 Entity Framework run in a backward compatibility mode to support SQL Server 2012?

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,059 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,404 questions
asked 2024-03-15T05:32:25.55+00:00
ps-rizwan 1 Reputation point
answered 2024-03-15T10:34:02.34+00:00
AgaveJoe 25,841 Reputation points
1 answer One of the answers was accepted by the question author.

How to achieve seo friendly collection/item urls with .net core mvc routing

Hello, I would much appreciate some advice on page routing in .net core MVC. I would like my page links to have seo friendly text urls rather than ids. My site comprises of categories (painting subject collections) and items (paintings). Each…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,059 questions
asked 2024-03-13T21:02:03.1166667+00:00
Karen Comber 20 Reputation points
commented 2024-03-14T18:30:39.5266667+00:00
Karen Comber 20 Reputation points
1 answer

How to fix DateTime Culture Info Issue?

Hi everyone, I'm developing an HR application using Angular 13 and a .Net 6 Web API. I'm facing a challenge related to handling different time zones for users. The Scenario: The application is deployed in the AWS Asia/Mumbai region. When users from…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,244 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,059 questions
asked 2024-03-14T09:37:27.1633333+00:00
Praveen Kumar B S 0 Reputation points
answered 2024-03-14T16:06:12.15+00:00
Bruce (SqlWork.com) 53,251 Reputation points
2 answers One of the answers was accepted by the question author.

Azure DevOps Build pipeline failing at Publish step after upgraded to dot net 8

I am trying to upgrade my ASP.Net Core 2.2 project to Dot Net 8. We have ReactJS as a front end and using node 16.16.0 version which were working fine on dot net core 2.2 project. After project upgrade to dot net 8 it’s working fine on my local machine.…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,244 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,059 questions
asked 2024-03-13T12:31:03.9266667+00:00
Amit Thore 41 Reputation points
accepted 2024-03-14T14:43:50.0633333+00:00
Amit Thore 41 Reputation points