My Web API stops responding to requests for no reason on CentOS 7
I'm running a .NET Core 6.0 web API project on CentOS 7, my project has around 50 APIs inside. However, somehow it always stop responding to requests after a few hours. I checked journalctl many times and it didn't show any error. I used 'ps aux' command…
![](https://techprofile.blob.core.windows.net/images/YykzxgI8WU-FS8_8mZ06MQ.png?8D9F28)
Cancellation Token signal not being received by the application code
looks like there is a limitation as it can be read here https://github.com/dotnet/aspnetcore/issues/20229#issuecomment-623289191 https://learn.microsoft.com/en-us/answers/questions/391343/cancellationtoken-in-controller-endpoint-hosted-in but is there…
After updating to Azure.Identity from 1.10 to 1.11, I can no longer authenticate console application.
I have a small LOB console application that needs to authenticate against Entra ID. The console app uses an IPublicClientApplication for acquiring the token interactively (since I need an MFA claim). Doing it this way, would trigger a pop-up window to…
How to close Bootstrap modal in Blazor WASM?
Hi, In my Blazor WASM (.net 6) application, I am displaying a modal popup as follows. <!-- Modal --> <div class="modal fade bg-transparent" id="templatemo_search" tabindex="-1" role="dialog"…
![](https://techprofile.blob.core.windows.net/images/PjYbsbDfukmsOVQ24l7Rxw.png?8D8DBE)
how to solve the error "Microsoft.Data.SqlClient.SqlException (0x80131904): A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - La chaîne de certificats a été"
Hi I try to connect my asp.net core api to a sql server database I encounter an error like: "Microsoft.Data.SqlClient.SqlException (0x80131904): A connection was successfully established with the server, but then an error occurred during the login…
System.NullReferenceException: 'Object reference not set to an instance of an object.' model was null
model { public int VehicleID { get; set; } public int VehicleTypeID { get; set; } public string Brand { get; set; } public string Model { get; set; } public int Capacity { get; set; } = 0; public bool IsActive { get; set; } } controller //…
How to fix An operation was attempted on a nonexistent network connection. (0x800704CD)
Hi guys I got an exception error like the below stack trace. I suspect the problem is when reading the response data, or reading the data for the request. Could you tell me why this exception occurred and how to fix it? Exception Type :…
Passing another parameter from Index.cshtml to ActionResult Index in StudentsControler.cs
I am able to pass a Search string and a Sort string parameter from Index.cshtml to ActionResult Index in StudentsControler.cs. I have added 3 button and need to pass either True if button1 or False if button2 or NULL if button3. It is much like Search…
Filter Records in ASP.NET MVC
The following code searches students by students name and it works fine. I want to add 3 radio button (Enrolled, Not Enrolled, All Students) and filter records based on the radio button selection. How do I do it? Also, is there a way to put these…
InvalidOperationException: No connection string named 'PayMyRentEntities' could be found in the application config file
Working on Migrating .NET Framework to .NET core 6. I am trying to run the application which is not able to read the connection string from appsettings.json file. I have shown the appsettings.json file as well. Please let me know what I need to do. Old…
Issue with View ActionResult on Button Click in MVC 5
The following code works fine and display student enrollment records on the page. Right before the table element, I have 3 buttons to filter out records based on the button that was clicked. In the controller, I added a function "IsEnrolled". …
Will MIP SDK be supported newer versions of .Net core?
Will MIP SDK be supported on newer versions of .NET core?
Has the development of classic ASP been stopped at Microsoft side and if yes, when?
Dear Microsoft team, we have an application, which was developed with classic ASP. We have found the information, that ASP.NET is the successor of classic ASP. The question is, has the development of classic ASP been stopped at Microsoft side and if…
![](https://techprofile.blob.core.windows.net/images/CL9sTc5zkUClnOVlnXO8DA.png?8DC921)
My EmailConfirmed is not working
Hi, I'm new to this, so I'm not so good, your help is my pleasure, thank you. I am having a problem with login, the API emailConfirmed still works when I give it token and userId. As far as I know, the EmailConfirmed doesn't confirm itself. I think I…
There is no ViewData item of type 'IEnumerable<SelectListItem> Error
Hello everyone and thanks for the help in advance. I am trying to populate a select list from viewdata and a receiving the error "There is no ViewData item of type 'IEnumerable<SelectListItem>' that has the key 'codes'". My controller…
Handling MRNs (Medical Record Numbers) with Compensating Transactions in .NET Core Micro services using the Saga Pattern
In a hospital management system built with micro services using .NET Core and Entity Framework, how can we ensure data consistency when generating Medical Record Numbers (MRNs)? Since MRNs cannot be deleted, how can we handle situations where a…
How my NormalizeEmail always null?
Hi, I'm new to this, so I'm not so good, your help is my pleasure. I have a problem, when I sign up for an account, it is okay, but when I log in, as far as I know, the NormalizeEmail is always null, and I don't know why, I try to cover in the…
Concurrency Handling in Entity Framework Core with Transactions and Master Data
Question: We have two tables: Orders (transaction table): Stores order details and references a customer using CustomerID. Customers (master table): Stores customer information. The Orders table has a RowVersion column for optimistic locking. The…
Blazor server logout on SignalR connection break
My Blazor server-side application logs out the user whenever the SignalR connection breaks. For example, when I lock my phone for half an hour and then return to the site, I'm logged out. How can I prevent this from happening?
![](https://techprofile.blob.core.windows.net/images/uy7N8lB-HEqeyK5HuTWvNQ.png?8D9DF5)
Why is the blazor css isolation not working?
I have an AppLogin.razor component and its css file is AppLogin.razor.css. They are working fine. I have a UserLogin.razor component and its css file is UserLogin.razor.css. The working mechanism is as follows When you login from the AppLogin.razor…