1,623,843 questions
0
votes
0
answers
5
views
OpenIddict 4.x ID2043 — Is it possible to support dynamic tenant subdomain redirect_uri?
I’m using OpenIddict 4.x with ASP.NET Core and the authorization code + PKCE flow for a SPA.
I want to support multi-tenant subdomains, where each tenant has its own frontend host, e.g.:
https://...
0
votes
0
answers
25
views
How can I get BLE to work with Windows 10?
I am having problems with BLE on Windows 10.
I have tried several test applications that all work fine on my development machine, but on Windows 10, version 1607 (OS Build 14393.8519) I get strange ...
3
votes
0
answers
28
views
Upgrading Visual Studio extension from 2019 to 2026, how to replace text?
I have a Visual Studio extension, and I'm trying to upgrade it from Visual Studio 2019 to 2026 (which should be compatible with 2022, so in theory it should work with both 2022 and 2026 when I'm done)....
2
votes
0
answers
38
views
WPF InlineUIContainer displaying images incorrectly
I have encountered a problem with the way InlineUIContainer allocates size for an image when used in a TextBlock and I cannot find a way to work around it.
Here is a simple WPF application that ...
Tooling
0
votes
0
replies
3
views
How to enable Razor/Blazor LSP support in Neovim using lazy.nvim?
I am currently using lazy.nvim to manage my plugins and csharp-language-server for C# development. While C# files work perfectly, I cannot get LSP features (completions, diagnostics, or go-to-...
2
votes
0
answers
72
views
Creating a DLL called from C#
I work in the trucking industry where we use a J1939 interface called RP1210. This standard defines how 32 bit DLLs are to be created for a common interface to J1939 (CAN Bus) hardware devices.
I have ...
1
vote
2
answers
94
views
Why does modifying a List<T> inside a foreach loop throw an exception in C#? [duplicate]
I am iterating over a List<int> in C# and attempting to remove elements based on a condition.
var numbers = new List<int> { 1, 2, 3, 4, 5 };
foreach (var n in numbers)
{
if (n % 2 == ...
0
votes
3
answers
89
views
Cross-thread mutation with Task - is it allowed?
I'm not the C# guy, yet I got project where in few places I found something similar to
public class Program
{
private static int[] value = new int[1];
public static async Task Main()
{...
-1
votes
0
answers
27
views
xUnit tests fail when launched from Solution Explorer
When I run my tests from the Solution Explorer (clicking "Run" from the tree), 13 tests from my test suite fail. This is 100% reproducible.
When launching the same tests from the Test ...
0
votes
2
answers
37
views
Warning UseKestrel() port issue
Building...
✔ HTTPS configured on port 7260 using localhost certificate.
warn: Microsoft.AspNetCore.Server.Kestrel[0]
Overriding address(es) 'http://localhost:7001'. Binding to endpoints defined ...
1
vote
0
answers
20
views
GoogleAuthenticator (2FA) fails validation on mobile browsers but works on desktop in C# & ASP.NET MVC
I am implementing Two-Factor Authentication in a C# & ASP.NET MVC project using the GoogleAuthenticator NuGet package (v3.2.0).
The issue: the authentication works perfectly on all desktop ...
3
votes
1
answer
137
views
Terminating a hung thread in a C# .NET desktop app
Is there any way in a C# desktop application with .Net to terminate a thread that has hung due to a problem in an external library? Because when creating the thread with Task.Run() we have no control ...
0
votes
2
answers
41
views
I need to access the "canSeePlayer" property in the playerController script from enemies script
I have tired as much as possible but to no avail. I need to code it such that I can use it even if there is multiple objects with the same code I can use it. I am using a simple ray cast to check if ...
3
votes
1
answer
81
views
Why ReadManyItemsAsync<T> uses very high RU and does essentially full table scan?
I have a hierarchical Partition Key and for some reason, when I use C# SDK to do ReadManyItemsAsync<T> it charges a flat high RU (currently 900 RUs!) which is dependent only on the total number ...
1
vote
0
answers
54
views
Can't disable antiforgery for endpoints
I have a trusted server that should be able to send a post request with HMAC and an id of the user to my server (both servers have the same db with same users), so that user doesn't have to log in ...