340,646 questions
0
votes
0
answers
3
views
How to correctly group a list of users by their nested list of values with linq?
I have List with this dependencies:
class User
{
public string Id {get; set;}
public List<ManagerGroup> ManagerGroups {get; set;}
}
class ManagerGroup
{
public string RoleId {get; set;...
0
votes
0
answers
11
views
What is the recommended way to convert a PriorityQueue to an array in C#?
I'm really having a hard time with Microsoft's implementation of PriorityQueue because it's missing most of the extension methods that you'll find in other collections. There is no ToArray method, ...
0
votes
0
answers
7
views
.Net 9 mvc production environment file not found in javascript bundle
In an .Net 9 MVC applcation, I use <environment> to include unbundled javascript files in the development environment, and a bundled of the minified version of the same files in the production ...
-2
votes
0
answers
8
views
Did SpecFlow hide all example projects on their GitHub?
Trying to access Specflow + Playwright example projects , but githut is displaying 404
https://github.com/SpecFlowOSS/SpecFlow.Actions/tree/main/Plugins/SpecFlow.Actions.Playwright
Tried different URL'...
0
votes
0
answers
5
views
"IDX10500: Signature validation failed." error with self-hosted KeyCloak and API Gateway Ocelot
So as stated in the title, I am having issues with the token validation in dotnet application. Here is the program.cs code:
using Microsoft.AspNetCore.Authentication.JwtBearer;
using Microsoft....
1
vote
1
answer
32
views
Dispose stream correctly in a method when it returns the stream?
I have this code in a method:
using (var stream = response.GetResponseStream())
{
if (stream == null)
return null;
MemoryStream memStream = new MemoryStream();
stream.CopyTo(...
0
votes
0
answers
7
views
Failing to build sharpsnmplib samples in VS2019 could not load file or assembly System.Text.Json
I cloned the sharpsnmp lib samples and had been trying to build them with VS2019 but getting the following error:
Error NETSDK1060 Error reading assets file: Error loading lock file 'C:\src\c_sharp\...
0
votes
1
answer
13
views
Is this use of using an appropriate way to dispose of resources being that a DataSet is returned in a WCF method?
Is this use of using an appropriate way to dispose of resources being that a DataSet is returned in a WCF method?
public DataSet SearchName(string LastName, string FirstName, DateTime DateOfBirth)
...
0
votes
0
answers
10
views
How can i keep the authentication state when dealing with Microsoft Graph API SDK and blazor in InteractiveAuto mode?
my application use Microsoft Graph SDK (Microsoft.Graph) and Blazor on .net 9.
The authentication is currently setup to use the Microsoft Authentication on the server side like this:
builder.Services....
0
votes
0
answers
5
views
I'm creating an OpenID Server, what do I return from the jwks request
I have a working webapp that acts as an OAuth2/OpenID server.
It is all working fine with many clients, but I have come across a new client that requires the jwks endpoint to work.
My server uses ...
0
votes
0
answers
22
views
Azure CI/CD pipeline "Sequence contains more than one matching element"
I have an Azure devops pipeline setup to build and deploy a docker image to our azure container registry.
The application is a simple file generator that gets hosted in an Azure web app. When a new ...
1
vote
0
answers
16
views
System.Diagnostics.EventLog#WriteEvent() can't find a specific event ID
Background
As described in this question, I am trying to use System.Diagnostics.EventLog#WriteEvent() as an alternative for New-WinEvent and Write-EventLog cmdlet.
Problem
I tried to write the ...
0
votes
0
answers
15
views
What "Server" runs on application server for .Net and Python?
This is probably a dumb question but I was wondering what web-server runs on the application server for .Net and Python applications.
I know that we need to install ColdFusion server or PHP server if ...
0
votes
0
answers
9
views
EasyNetQ ErrorQueueNamingConvention together with quorum queues
I'm using classic queues today but want to start moving to quorum queues (because classic queues aren't supported anymore).
I have a custom error strategy (DefaultConsumerErrorStrategy) and error ...
0
votes
0
answers
11
views
System.Management.ManagementException: 'This method is not implemented in any class '
I am trying to create a new BCD object but when running this I am getting Above Exception
Also with different i have tries but does'nt work
ConnectionOptions connectionOptions = new ConnectionOptions
{...
0
votes
1
answer
18
views
How to receive Enum as String in a Dotnet API?
I have a dotnet API application documented with swagger. In one of my end-points I receive a DTO like this:
public class CreateCooperativeUserDTO
{
[Required]
public required string Name { ...
-1
votes
0
answers
15
views
Show custom "Site Under Construction" page while publish my dotnet source code on Azure server from visual studio 2022
When I publish my website on Azure server from visual studio 2022 using publish profile,
then while updating .dll file if any customer try to reach my website then It is showing "Site Under ...
0
votes
0
answers
15
views
Delete all custom Domain certificates AppService
I created a form where I can add but also delete a custom domain and certificate.
I delete the domain in the following way:
var hostBinding = hostnameBindings.Get(_customDomain);
if (hostBinding != ...
1
vote
0
answers
34
views
How can I detach an included navigation property in EF core?
I have the following code:
var items = _context.DbSetName
.Where(c => ...)
.Include(c => c.NavigationProperty)
.AsNoTracking()
.ToList();
But ...
0
votes
0
answers
12
views
SpotifyAPI Get Recommendations Endpoint has been Deprecated
I'm building an application that is utilizing SpotifyAPI. One of the features I'm trying to implement is a search bar where users can search for their favourite tracks, but before even typing anything,...
0
votes
0
answers
12
views
.NET 8.0 - InvalidOperationException: Cannot provide a value for property 'bookingData' on type 'BerHUB_reverse.Components.Pages.CreateBookingPage'
today I've got the following error code:
InvalidOperationException: Cannot provide a value for property 'bookingData' on type 'BerHUB_reverse.Components.Pages.CreateBookingPage'. There is no ...
1
vote
0
answers
63
views
How can I ensure there’s always a "full" constructor that includes all fields in certain classes?
I have a codebase where certain classes need to support a custom deep copy mechanism. To simplify this, I want to enforce that these classes always have at least one “full constructor” that takes and ...
0
votes
0
answers
19
views
Is .Net Core WebAPI + .Net framework service combination leads delay in response?
we have .Net Core WebAPI calling .Net framework service for db using entity framework,
is this leads any functionality issues?
we are facing 503 issue if we hit APIs continuously to fetch so info.
...
0
votes
0
answers
26
views
.NET / C#: How to ignore GenerateDocumentationFile for source generated .g.cs files
My .csproj file uses
<GenerateDocumentationFile>true</GenerateDocumentationFile>
to indicate that we will be auto-generating documentation.
A given package I use creates loads of code ...
1
vote
1
answer
36
views
.Net MAUI Web authenticator using Azure Functions as Backend
I'm following this example for .NET MAUI Web authenticator to integrate google authentication in my .NET MAUI app.
https://learn.microsoft.com/en-us/dotnet/maui/platform-integration/communication/...
1
vote
0
answers
13
views
Azure Notification Hub Payload Errors while sending Template Notification
I'm trying to figure out how to use Azure Notification Hub. After reading the documentation 10 times I'm still not able to send any succesful template notifications with .Net and the Microsoft.Azure....
1
vote
0
answers
17
views
How do I add security Headers to my SOAP Service
I'm trying to call a WCF service from a WSDL given to me by the 3rd party which I'm trying to integrate with, they gave me a sample request that my code should generate, it contains wsse:Security ...
0
votes
0
answers
24
views
How to set BuildInParallel="false" in a .NET SDK style .csproj?
How can i set BuildInParallel="false" in my .csproj?
In the following example, .csproj has two build targets for net6.0 and net8.0. In default they are run in parallel build processes in ...
0
votes
0
answers
15
views
SessionNotCreated using Selenium in the Chrome Docker Container
I created a .Net application using Selenium. Everything is working fine locally, but when using my application in a Docker container I'm always receiving the following exception
System....
2
votes
1
answer
31
views
How to Set SPATIALITE_SECURITY Environment Variable in .NET for SQLite/SpatiaLite?
I’m developing a .NET application where I’m using SQLite with SpatiaLite for spatial data processing. To enable all SpatiaLite functions, I need to explicitly set the SPATIALITE_SECURITY environment ...
1
vote
0
answers
9
views
Assimp .NET Model Animation went wrong (DEFAULT VALUES?)
I made today a skinned mesh, and i tried out my Blockbench model with a animation and saw that the keyframes of this model that set to 0 not set into the model, so my question is now how can i ...
-1
votes
0
answers
20
views
CSLA .NET Dynamic Root List and Blazor DataGrid Databinding in C# [closed]
CSLA is a framework for which it is not easy to find examples of illustrations
I am working on a project and I would like to have an example of how to Binding Data between Dynamic Root List and a ...
0
votes
0
answers
35
views
Delete command is not working for List View in .NET MAUI
Somehow my DeleteNotificationCommand is not working, I can't figure out why? I am new to MAUI, any help would be appreciated.
The command is not even getting triggered since, it's not hitting the ...
0
votes
0
answers
8
views
Why Castle.DynamicProxy could not create proxy class when origin class has a decimal paramter method
Old .net framework 4.8 project, use AutoFac.
I want to use AOP to instrument every method , but some class throw exception : System.Decimal is not a supported constant type.
There are a lot of methods ...
-1
votes
0
answers
48
views
textbox is blinking on winforms
textbox is blinking when i update textbox bt a timer.
private void timer1_Tick(object sender, EventArgs e)
{
if (count < lk.Length)
{
if (lk[count] == '\r' && count + 1 < ...
-2
votes
0
answers
50
views
Injecting a default value in Console.ReadLine
I have a console app (.NET 9 C#) that takes a few values from the user and processes them one input at a time.
Prompts:
Enter your Query: []{SELECT * FROM Product}
Narrow Query: [WHERE Product.Price &...
0
votes
0
answers
22
views
Unexpected workload after Visual Studio install
I'm looking for anyone to elucidate why, on the same machine, using the exact same install script for Visual studio 2022, the newest version (17.12.35521.163) comes with an older maui-windows workload ...
0
votes
1
answer
52
views
Azure Tenant setup for .NET Blazor WASM calling Web API + Microsoft Graph
Overview: I would like to create a solution for an organization using MSAL. The company seems to have users under a single Azure AD tenant. My solution should use a Blazor WASM UI with a .NET API ...
1
vote
0
answers
25
views
Problem with JWT Authentication in .NET web project
I want users to redirect to 2 different views after logging in depending on the role from the token:
Customers: after logging in, the project will use: Views/Home/...cshtml, site.js, site.css, ...
0
votes
0
answers
25
views
.net 9 - Make JSON deserialization more performant? [closed]
I'm dealing with an app that is meant to consume thousands of events per sec. The particularity here is that those events are very, VERY similar to one another. They not only follow the same schema, ...
-4
votes
0
answers
43
views
How do you generate an S3 URL/Link to a file only for internal users in the Organization to use? [closed]
We don't want anyone outside of the organization to be able to access the S3 files. Looks like the pre-signed URL will not work.
1
vote
1
answer
29
views
.Net MAUI Assets file doesn't have a target for 'net8.0' for Class Library
This is where VS drives me crazy. I have a solution that has a .NET MAUI Hybrid project, plus a Class Library project. All was fine and I was able to deploy it about 5 times, and then all of a ...
1
vote
1
answer
48
views
How to configure the Rate Limiter of the StandardResilienceHandler
I'm writing an application that connects to another HTTP service. I want to rate-limit my outgoing requests to that external service.
Ideally, I want to use the standard resilience handler as ...
0
votes
0
answers
35
views
ConfigureAwait(false) causing slow downs
This is a .NET 9 WPF project and as far as I know when awaiting Tasks ConfigureAwait(false) extension should be used here.
The Voltage property binds to a sliders Value.
FireAndForgetSafeAsync also ...
0
votes
0
answers
14
views
Snowflake: GetInsertCommand Exception: Dynamic SQL generation is not supported against a SelectCommand that does not return any base table information
I am using the .net Snowflake.Data library V4.2 in a .Net 8.0 Web API application.
When I make a GetInsertCommand call I get the following error:
Dynamic SQL generation is not supported against a ...
1
vote
1
answer
35
views
How to modify WebView2 content in all tabs in a Winforms TabControl?
I'm trying to fix the problem that I cant delete webview2 html texts in any tabs but the first tab. Why?
Code that clears webview2 html text:
private async void button6_Click_1(object sender, ...
0
votes
0
answers
33
views
How to properly handle double-clicking the back button in .net MAUI?
I have a main page:
MainPage : ContentPage
There are also pages that I navigate to using
await Navigation.PushModalAsync(NewPage);
When I have several pages in my stack and I press the Back button ...
0
votes
0
answers
41
views
How to pass current user information to infrastructure layer in DDD and Onion Architecture?
I am implementing DDD and Onion Architecture in a solution is based on .NET Framework and I will be using Autofac for dependency injection.
The entities tracked with Entity Framework all need audit ...
-1
votes
0
answers
27
views
I need a silent updater for my project Console app .Net Framework and how can i make MSI setup installer? [closed]
I’m currently working on a project for a company where I’ve built a console application in .NET Framework. The app runs in the background without user interaction and monitors hardware components like ...
-2
votes
0
answers
16
views
Problem with SSL Provider when connecting to SQL Server [duplicate]
When I tried to connect to a database server, a dialog appear:
A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, ...