340,622 questions
0
votes
0
answers
12
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
8
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
23
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
19
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
20
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
39
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
48
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
18
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
0
answers
26
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 ...
0
votes
0
answers
24
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
21
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
40
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
25
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
33
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
30
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
9
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
27
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
30
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
34
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
26
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
15
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, ...
0
votes
0
answers
5
views
.NET for Android Release Not Building
I am working on creating the Release version of my .NET for Android app. When I select Debug mode, everything builds fine with no problems. However, if I switch to Release mode, I receive errors about ...
1
vote
0
answers
27
views
KafkaFlow Batch Processing Large Batches Not Working as Expected
I have a .NET app that is using a Batch Consumer with the KafkaFlow library. I am trying to consume large batches of messages (250K) and insert them into a database. I seem to have a configuration ...
0
votes
0
answers
37
views
How to remove white flash from NET.MAUI Blazor app?
I was building a cross-platform app for a client, but this app required dark mode. But every time the user launched the app, they would get a blinding flash of white, which ruined the user experience ...
3
votes
1
answer
71
views
Constructor invocation syntax in PowerShell 4.0 and lower without using New-Object
I ran across some older code today that piqued my curiosity. I'm aware of 2x different syntactical ways of instantiating .NET objects in PowerShell 4.0
# Using New-Object to pass multiple args to the ...
0
votes
0
answers
5
views
.NET upgrade didn't update web.config or app.config framework settings
I have a solution with 6 projects, all of which were running .NET 4.0. I went into each one and updated them to target .NET 4.8 (Properties-->Application-->Target framework).
After this, when I ...
0
votes
0
answers
29
views
Replacement for WPF Adorners in WinUI
Have a pet project that I'm seeing if I can move from WPF to WinUI. I think it will mostly go fine after updating namespaces/interfaces etc, but it seems like I might be stuck on getting some custom ...
0
votes
0
answers
14
views
OAuth does not redirect user to Docker-hosted login page
I'm building a Blazor WASM app and I need to authenticate users via a 3rd party service (eventually, it will be Office 365). For testing purposes, I ran the Keycloak Docker image in which I created a ...
0
votes
0
answers
26
views
Moq verify property init
How do i verify an init-call with Moq? I have the following property defined in an interface:
public string Text { init; }
I want to verify that init was called with a specific parameter. Is that ...
0
votes
1
answer
37
views
Binding Property Not Found - MAUI .NET 8
I'm working on a .NET MAUI project and I'm running into the following error:
[0:] Microsoft.Maui.Controls.Xaml.Diagnostics.BindingDiagnostics: Warning: 'IsAudioEnabled' property not found on '...
0
votes
0
answers
47
views
Refused to connect. /sign-oidc
In my .NET Blazor application, the after successful authentication using Azure B2C (Azure sign-in log shows 'Success'), the error page is returned with the URL https://localhost: /signin-oidc
Error #1
...
0
votes
1
answer
32
views
Azure function flex consumption plan bash execute
In azure function .NET 8 isolated worker on linux flex consumption plan, is it possible to execute bash script in code by invoking .sh file stored in project?
0
votes
0
answers
24
views
Apache Iceberg with .NET for AWS S3 Tables
We are looking to test out the new AWS S3 Table features with our existing .NET application. Currently we are outputting Parquet files utilizing the NuGet package Parquet.NET to produce those files/...
0
votes
0
answers
22
views
System.BadImageFormatException with MetaQuotes.MT5ManagerAPI64.dll in .NET 8 Docker Container
I am running a .NET 8 application inside a Docker container, but I am encountering the following error when the application tries to load MetaQuotes.MT5ManagerAPI64.dll:
Unhandled exception. System....
0
votes
0
answers
19
views
DryIoc matching Func arguments to specific dependencies of resolved service
I have the following simplified example:
var container = new Container();
container.Register<D>();
container.Register<C>();
var c = container.Resolve<Func<int, int, C>>()(2, 4);...
0
votes
0
answers
9
views
CANape integration with .net
I want to integrate.net application with CANape where I can load the cna file add the data to calibration and measurement and then saving to MDF file but I am getting COM Exception while loading cna ...
0
votes
0
answers
33
views
ConnectionMultiplexer exception caused when trying to invoke webAPI endpoints -
I am facing an exception(ConnectionMultiplexer) message when trying to access a .NetCore 8 webAPI endpoint. I tried to use repositoryPattern in my project so there's a GenericRepository interface. I ...
0
votes
0
answers
6
views
Configure source-generated JSON serialization for all types in assembly
I'm building ASP.NET Web API for AOT publishing and need to configure source-generated JSON serialization for it, as reflection-based serialization will not work for AOT.
According to documentation I ...
0
votes
2
answers
15
views
IdentityServer token issuer claim missing port number in issued JWT token
I have a strange issue with tokens issued by my local development IdentityServer (happens both with IdentityServer4 and with Duende IdentityServer).
The IdentityServer on my local dev machine is ...
0
votes
0
answers
16
views
Set Custome PaperSize of Printer into CrystalReportViewer in C#
I want to set the Custome PaperSize of the Printer into CrystalReportViewer>Print Report>Preferences>Advance>Paper Size in C#.
I tried this solution But it can't be set to "9x6".
...
2
votes
1
answer
36
views
System.Text.Json.JsonException: 'Read unrecognized type discriminator id 'new-type'
I have a json document, that constantly increases the list of discriminators.
My problem is that I can't get the "UnknownDerivedTypeHandling" to work.
System.Text.Json and .net9.
// https://...
-1
votes
1
answer
57
views
ASP.NET Core & EF Core : concurrency exception not thrown despite working rowversion
This is part of my method which creates reservations of books:
var book = await _context.Books.FirstOrDefaultAsync(b => b.Id == id);
if (book == null || !book.IsAvailable)
{
return ...
0
votes
1
answer
36
views
Could not load type 'Swashbuckle.AspNetCore.Swagger.Info' from assembly Swashbuckle.AspNetCore.Swagger
I am trying to migrate the .Net Core WebApi project from the version 2.1 to 8.0. But getting error -
TypeLoadException: Could not load type 'Swashbuckle.AspNetCore.Swagger.Info' from assembly '...
1
vote
0
answers
17
views
Is Managed code with DirectX Distributed with Product Code
I am trying to understand the distribution terms for the Managed DirectX libraries. I am particularly looking for information on whether these libraries are distributed alongside the product code or ...
0
votes
0
answers
15
views
How to trigger initialization of InternalSecurityPermissions.AppPathDiscovery in .NET Web API when running MSTest unit tests?
I am trying to use the MSTest testing framework to write unit tests for an ASP.NET Web API that uses the Oracle ManagedDataAccess library to connect to our database. The Oracle library is trying to ...
-1
votes
1
answer
21
views
How can I debug IIS w3wp.exe in VSCode without running it as administrator?
I’m trying to debug an application hosted on IIS using VSCode, but I’m running into a permissions issue. When I open VSCode as a standard user, I cannot see the w3wp.exe process in the list of ...
0
votes
0
answers
17
views
System.Resources.MissingManifestResourceException when Form and resx are in project folder
I have a legacy .NET Framework Winforms application that I am migrating from the old csproj file format to the new SDK-Style format. I did this by creating a new SDK-Style project in the solution ...
-3
votes
0
answers
22
views
Can someone help me with this please System.NullReferenceException: Object reference not set to an instance of an object? [duplicate]
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using api.Dtos.Comment;
using api.Extensions;
using api.Helpers;
using api.Interfaces;
using api....