45,897 questions
Advice
0
votes
1
replies
75
views
Custom "OAuth2" in .NET
OAuth2 is a common standard for authorization. However, I see some simple implementations (for me, they have nothing to do with OAuth2) where they simply expose an endpoint and expect client_id and ...
1
vote
0
answers
54
views
How to resolve .NET dependencies that use different assemblies but have the same name
I'm working on a project that uses RFID scanners from two different vendors (Impinj and Vulcan). Impinj provides a library through Nuget called OctaneSDK, and Vulcan uses a library provided by ...
1
vote
0
answers
41
views
Using Mass Transit, is there a granular way to override the headers on error messages when there is a fault?
On errors in my service (while consuming a message) Mass Transit will attempt to send the message to an '_error' queue and will fail due to an SQS hard limit on message Attributes:
MassTransit....
0
votes
1
answer
41
views
Publish profiles are suddenly being ignored
I have an existing solution with several projects. I have created publish profiles for some of those projects. This was done a long time ago and those publish profiles have been working well.
But ...
0
votes
1
answer
51
views
In a Blazor Web App (Unified), can the Server project access EF Core directly, or is a separate Web API required?
I'm confused about the recommended architecture for Blazor Web App (Unified).
Blazor is often introduced as a frontend framework, similar to Angular or React, which usually means the frontend talks to ...
3
votes
2
answers
115
views
Powershell 7.4.5 attempting Add-Type of Oracle.ManagedDataAccess.Core gets error loading System.DirectoryServices.Protocols
I am attempting to write a script to connect and load an Oracle database in Powershell 7.4.5. The issue is when attempting to
Add-Type -Path <Path to ManagedDataAccess.(Core)dll
Powershell throws ...
2
votes
1
answer
108
views
Using Directory.packages.props GlobalPackageReference only seems to work with ManagePackageVersionsCentrally
I have a legacy monolithic application with 180 projects. All of these projects are in the SDK format, although some of them still use the .NET 4.8 target framework.
I want to add a package reference ...
0
votes
0
answers
90
views
Microsoft.Extensions.Logging log level configuration not working
In appsettings.json
{
"ApplicationInsights": {
// https://docs.microsoft.com/en-us/azure/azure-monitor/app/asp-net-core
"ConnectionString": "SECRET"
},
&...
0
votes
1
answer
73
views
Why I am facing with Docker dotnet 401 error during Mysql setup in dotnet test container?
I am trying to use TestContainers library to easy my integration testing and I need to create a MySql container for this matter and this is my code:
public sealed class MySqlContainerProvider : ...
0
votes
3
answers
239
views
Singleton using Lazy<T> vs Singleton using static field initializer [duplicate]
I am storing some settings for my application in a JSON file located alongside the application .exe. I want to load these settings only once, lazily, the first time one of them is needed. So for ...
0
votes
1
answer
98
views
Unable to find route .NET Maui
I have a flyout menu defined like this in XAML:
<FlyoutItem Title="Portfolio Summary" IsVisible="{Binding ShowUserMenuItems}">
<ShellContent ContentTemplate="{...
0
votes
1
answer
72
views
QuestPDF doesn't render text in Azure Functions
I use QuestPDF package to generate a PDF from a SVG template in my .NET 9.0, isolated-worker Azure Functions on Linux, like this:
var pdfBytes = Document.Create(container =>
{
container.Page(...
1
vote
0
answers
47
views
AzureClientFactory BlobServiceClient Variables
I couldn't find a complete working example of uploading a file to Azure Blob with .NET Core, so I'm confused with the different snippets that I saw. This is what my code looks like:
My Secrets:
{
&...
1
vote
0
answers
36
views
SimpleIdServer: Setup an SPA PKCE client by code on the IdServer
Using simpleidserver 6, I am trying to implement a dedicated Id server for an SPA application using PKCE.
This SPA authenticates with no pb if it is setup for other Id servers like Azure EntraId or ...
1
vote
1
answer
69
views
Binding Custom Control to Parent ViewModel Commands
I'm trying to bind IncreaseQuantityCommand and DecreaseQuantityCommand from my ExplorePageViewModel to buttons in a custom control ProductCard. The commands don't execute when the buttons are clicked, ...