Skip to main content
0 votes
0 answers
9 views

Unhandled exception in Visual Studio 2022 .Net Core Web Api project

Using Visual Studio since the early 2000's currently at Visual Studio 2022 Professional, vanilla install. I've uninstalled everything, ran install-cleanup and re-installed fresh. Environment: IDE: ...
ma11achy's user avatar
  • 132
1 vote
0 answers
6 views

Unable to Invalidate Amazon Cognito IdToken

I’m working on a POC to implement user authentication using Amazon Cognito and the Amazon SDK for C#. My implementation utilizes the SRP authentication flow with MFA challenges. While I can ...
Kent Prince's user avatar
0 votes
0 answers
33 views

Least invasive way to open a file without disturbing any other process using it?

I have a .NET6 application running on Windows that has to open and read a bunch of files. I want this to be as non-invasive as possible, me opening these files should never interfere with any other ...
Fabian's user avatar
  • 531
0 votes
0 answers
8 views

Parallel Send to WebSocket using ClientWebSocket

Regarding ClientWebSocket Microsoft documentation states that Exactly one send and one receive is supported on each ClientWebSocket object in parallel. Issuing multiple sends or multiple receives at ...
Learner's user avatar
  • 55
0 votes
1 answer
13 views

Run service on application shutting down asp.net core

I need to implement logic that executes before an ASP.NET Core application shuts down. Is there a built-in solution for tracking application shutdown events? While I can add the logic after calling ...
Firuz's user avatar
  • 84
-2 votes
0 answers
22 views

HashPassword at the time of login

public async Task<bool> CheckPasswordAsync(Users user, string password) { if (user == null || string.IsNullOrEmpty(password)) { return false; } // Assuming the password hash is a ...
Bharti Singh's user avatar
0 votes
2 answers
72 views

Dependency Injection works in API, but failing in a .NET 8 console application

I am trying to utilize a library written to add Sharepoint functionality. Here is how the SharepointClient class is constructed in the library. public class SharePointClient : ISharePointClient { ...
Tanveer-Ibn- Haresh's user avatar
0 votes
1 answer
75 views

The problem of LibraryImport automatically exiting in .NET 9

I have an existing .NET 8 project that has been running fine and I want to upgrade it to .NET 9. I need to reference a C++ dll file in the project, and I have always referenced it this way: [...
Melon NG's user avatar
  • 2,962
0 votes
0 answers
43 views

Lock out a user using ASP.NET Core Identity

Has anyone figured out a way to lock out users using ASP.NET Core Identity? I've found you can set LockoutEnd to a datetime in the future and that user will not be able to log in. However, users don't ...
Jonathan Wood's user avatar
1 vote
0 answers
20 views

WPF Wizard: How to grey out the "Next" button when no radio button is selected yet

I want the "Next" Button of the Wizard to be only accessible once a selection has been made for the radio button. <Window x:Class="WpfWizard.WizardWindow" xmlns="...
theProdigy126's user avatar
0 votes
1 answer
11 views

Nullable diagnostic CS8621 raised without reason

I have a razor component in a separate project that defines a search parameter like this: [Parameter, EditorRequired] public Func<string, Task<IEnumerable<T>>> Search { get; set; } = ...
Alex's user avatar
  • 843
0 votes
1 answer
64 views

AddOpenApi - Adding Error Response types to all operations - .NET 9

I am upgrading a project from .NET 8 to .NET 9. The default support for Swagger UI and Swagger Docs has been removed and replaced with the AddOpenApi() and MapOpenApi(). In my Swagger json file, I ...
Dawood Awan's user avatar
  • 7,208
1 vote
1 answer
22 views

MassTransit JobConsumer concurrency not working

I'm trying to configure JobConsumer to run long running tasks. Regardless of the SetConcurrentJobLimit parameter, the tasks are run sequentially, only 1 at a time. MassTransit setup services....
alspirkin's user avatar
-1 votes
1 answer
57 views

How can I tag a value as not expected to be null?

I have a function that's correctly specified as returning a potentially-null object. My code calls that function but in a way where it isn't going to return a null. MyClass? MyFunction(string x); /* .....
billpg's user avatar
  • 3,281
0 votes
1 answer
43 views

Db Concurrency issue with post likes

I have a like method, the method should add users likes records to a post, and also add the like count, this a commom issue for concurrency. what is actually bothering me is the maxRetryAttempts = 50, ...
user19304257's user avatar

15 30 50 per page
1
2 3 4 5
3050