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…
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…
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; …
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…
.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…
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…
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,…
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?
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…
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."
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…
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…
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…
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…
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…
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…
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?
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…
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…
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.…