Skip to main content

Questions tagged [.net]

Do NOT use for questions about .NET Core - use [.net-core] instead. The .NET framework is a software framework designed mainly for the Microsoft Windows operating system. It includes an implementation of the Base Class Library, Common Language Runtime (commonly referred to as CLR), Common Type System (commonly referred to as CTS) and Dynamic Language Runtime. It supports many programming languages, including C#, VB.NET, F# and C++/CLI.

-1 votes
1 answer
26 views

Coding and decoding byte array in string are not identical

I have to read a varbinary column from SQL Server, and send it to a json. I tried some test conversions byte[]/string and vice-versa, but I cannot understand what is wrong. For example: string s = ...
elle0087's user avatar
  • 876
0 votes
2 answers
14 views

Authorize actions in command handler

I have a problem with controllers authorization in C#. I use JWT authentication with token and role-based authorization in controllers. Let's examine this endpoint. [HttpDelete("{userId}/post/...
JacobDev's user avatar
0 votes
0 answers
9 views

Issues with VLC Displaying FFmpeg Stream from NamedPipeServerStream: Freezing and No Display on Late Start

Disclaimer: This is a follow-up question to: Streaming an updating folder of images with ffmpeg without restarting the script. After implementing my NamedPipeServerStream as a dynamic input (which ...
Roy Raihenshtein's user avatar
2 votes
0 answers
36 views

.NET SQL Deadlocks (randomly) not picked up by SqlCommand

I'm really struggling with something, and I was hoping that I could get some advice or if someone could point me in the right direction with this. I have a program that processes entries concurrently ...
macmatthew's user avatar
0 votes
0 answers
6 views

.NET solution that uses third party hardware and DLLs

My team and I are writing a .NET application to run in a Windows environment. We will be using hardware from four-ish different vendors, that each comes with their own dll (the term is unmanaged dlls, ...
Nikolaj Eriksen's user avatar
0 votes
0 answers
19 views

WPF program sometimes has touch failure, but the mouse can click

WPF program uses a touch-screen all-in-one machine, so you can click on the screen or click with the mouse. When you start the program, everything is normal. After using it for a while, there is a ...
user24744521's user avatar
2 votes
2 answers
40 views

How to Refresh IConfiguration

I am using .Net 8 DI to load IConfiguration on startup. It will be loading key-values from azure keyvault. But, after few hours the key-values would change. So how to refresh IConfiguration ...
Paul's user avatar
  • 21
0 votes
0 answers
13 views

Free and Open-Source PDF Libraries with MIT/Apache License Supporting Hebrew and English for .NET Web API

I'm developing a .NET Web API and need to generate PDFs that support both Hebrew and English text. I'm looking for free and open-source PDF libraries that meet the following criteria: License: Must ...
Sandeep's user avatar
  • 11
0 votes
0 answers
24 views

GIF image format detection - MAUI [duplicate]

I have a carousel view to display the network image and its move dynamically on every 5 sec ,If the image is gif that should be completely played before moving to next one for that I have to detect if ...
Janani Veeramanikandan's user avatar
1 vote
1 answer
29 views

How to manually set the Frame Rate of a .NET Maui App in Android?

Background Info I have found several resources on setting the frame rate of an Android application: https://developer.android.com/media/optimize/performance/frame-rate https://developer.android.com/...
mike's user avatar
  • 101
-2 votes
0 answers
18 views

How to fix errors that suddenly appeared without any changes occurring? [closed]

I am writing a web application in vsc, using .net and react. Everything works well, but suddenly while I was looking through files I got few errors: The type or namespace name 'DbSet<>' could ...
Dorm's user avatar
  • 1
-2 votes
0 answers
11 views

Get elevation data from a TIF data using LibTiff [closed]

I have a TIF data with its world file (tfw). I want to get the coordinates x, y , and z from it using C# .NET 8.0. Can anyone tell me how can I do the job using this library? An example for a console ...
NewbieInCSharp's user avatar
4 votes
2 answers
78 views

Will a class be garbage collected if it is subscribed to some event but does nothing with it?

Consider the following class which subscribes to an event but does nothing with it: public class Class1 { public Class1() { SystemEvents.PowerModeChanged += ...
ispiro's user avatar
  • 27.3k
-1 votes
0 answers
25 views

"Close-to-native" ways avoid `callvirt` calls

I have a very simple Manager<->Component architecture: https://gist.github.com/Civ01/adcfc2bfac06c34bdc9827761dccd148 I have sucessfully found a way to avoid virtual calls on a Manager using ...
Civ01's user avatar
  • 29
0 votes
0 answers
19 views

Random test failures in kafka integration tests with TestContainer

I'm experiencing inconsistent failures in my Kafka integration tests using TestContainers. The tests involve simple produce and consume operations along with database seeding, but sometimes they pass ...
Sandro Revazishvili's user avatar

15 30 50 per page
1
2 3 4 5
22617