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.
40
questions
-1
votes
0
answers
16
views
Correct way of COM port paralleling
I have to make a program in C# to program some micro controllers. The controllers a programmed via a UART to USB adapter that windows recognizes as a COM device.
The programming is fairly simple, I ...
0
votes
0
answers
2
views
C# NFC-Project with PCSC Library - An error has occurred: An attempt was made to end a non-existent transaction
I have integrated the pcsc library to work with an nfc scanner (ACR122U ISO14443A/B ). I am trying to read the data from the NFC tag, but I get this error: An error has occurred: An attempt was made ...
0
votes
0
answers
19
views
Alternative For Type.IsSerializable
We used in an application
if (!value!.GetType().IsSerializable)
return;
In the meantime the IsSerializable property is obsolete (Formatter-based serialization is obsolete and should not be used.)....
0
votes
0
answers
15
views
OpenIDDict is not generating tables for .net framework OWIN and entity framework
I am implementing OIDC for my legacy application which is based on .net framework v4.6.2. While following the documentation from OpenIDdict website, it does not create tables which OpenIddict requires....
0
votes
0
answers
26
views
System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime, Version=4.1.2.0
I am trying to create a .Net Standard 2.0 library (I am using visual studio 22)
I encountered the following problem while running the project:
Unhandled Exception: System.IO.FileNotFoundException: ...
-1
votes
1
answer
22
views
If Migration is not sent to the database, UseExceptionHandler Middleware will not work. Why?
I added a new property in a entity class. I didn't create migration. After that, I tried to use UseExceptionHandler middleware. It successfully triggered error action method but the view didn't appear....
0
votes
0
answers
27
views
WPF on .net 4.8 has no useful stacktrace [duplicate]
The company I work at has an old WPF .net 4.8 desktop app running in production.
They are using log4net > application insights to log the errors. The errors are all there but some stacktraces seem ...
0
votes
0
answers
16
views
Is it recommended using NextAuth.js v5 and a separate backend like .Net 8 Web Api?
I am new in Next.js and it turorials recommend using NextAuth.js for authentication and authorization.
My current app will use .Net 8 Web API as backend and have supported authentication and ...
0
votes
0
answers
12
views
RabbitMQ Client .Net Core Timing Out under load after rabbitmq upgrade. Consumer System.TimeoutException
We have a system that was running RabbitMQ 3.8.5 with RabbitMQ.Client 5.2.0. Part of the way the system uses rabbit is by creating a consumer to wait for a specific command from a different executable ...
1
vote
1
answer
35
views
How are BeginXXX methods used in the asynchronous programming model usually implemented by .Net libraries?
I understand that the Task-based Asynchronous Pattern (TAP) is now the preferred way to write async code but I was reading up on previous patterns to see how async code used to be written.
When ...
0
votes
0
answers
57
views
Check if object is awaitable
I have a method that returns an object that can be any type. If the object instance is awaitable, I need to await it and get its result. I know I can check for the object to be a Task/ValueTask or ...
-1
votes
0
answers
9
views
Why is my FOV Perspective Matrix4x4 looking Orthographic (DotNet and SkiaSharp)?
Brief overview, you can image I'm drawing points of a 3D schematic onto a Canvas, think CAD.
I have points in 3D XYZ Vector3 coordinates, and I've got a model, view, projection matrix all setup. I've ...
0
votes
0
answers
13
views
How to Share ReSharper Configuration Across Multiple Git Repositories
I'm working on several projects across different Git repositories, and I want to maintain a consistent ReSharper configuration across all of them. To achieve this, I'm considering storing the ...
0
votes
1
answer
13
views
C# .NET set DCD Data Carrier Detect on Serial Line
I need to write a Modem emulation, and so I need to set the DCD "pin" inside my C# .NET application. The SerialPort Class does only have a method for CDHolding, which reads the DCD state.
...
0
votes
1
answer
27
views
.Net/Blazor Server - Images delivered by API not cached in browser
I am working on a Blazor Server App that also includes a minimal API that is used for several tasks including serving request for image files that are stored in a database instead of the file system.
...