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.

.net
0 votes
0 answers
6 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....
Onur's user avatar
  • 1
1 vote
0 answers
11 views

WPF on .net 4.8 has no useful stacktrace

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 ...
J. doe's user avatar
  • 11
0 votes
0 answers
7 views

Is it recommended using NextAuth.js v5 and a separate backedn 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 ...
YYS's user avatar
  • 1
0 votes
0 answers
7 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 ...
Kaizer69's user avatar
  • 403
0 votes
0 answers
17 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 ...
Flack's user avatar
  • 5,821
0 votes
0 answers
48 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 ...
Dan's user avatar
  • 9,807
0 votes
0 answers
7 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 ...
Iain Stanford's user avatar
0 votes
0 answers
12 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 ...
Tal B's user avatar
  • 1
0 votes
0 answers
8 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. ...
Manuel's user avatar
  • 635
0 votes
0 answers
12 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. ...
pabud's user avatar
  • 1
0 votes
0 answers
17 views

How do i add Wheel Scrolling?

I have a project that converts MIDI inputs into keyboard actions, specifically optimized for Minecraft. However, I'm struggling with implementing a scrolling function. I've tried various solutions, ...
snoopti's user avatar
  • 11
-1 votes
0 answers
6 views

migrating old framework project to new .net

i was wondering if some people could help me think, and/or confirm I am going in the right direction. We have a large solution with a lot of projects. We have made Repo's and domainlogic for most of ...
Thierry Verhaegen's user avatar
0 votes
0 answers
12 views

Integration Tests with Custom Authentication in ASP.NET Core Returning 401 Unauthorized

Description: I'm setting up integration tests for an ASP.NET Core application using the minimal hosting model in .NET 6. I am trying to mock the authentication process using a custom authentication ...
Hasan Kanaan's user avatar
-1 votes
0 answers
24 views

Does WPF not run GC and destroy objects on application exit?

I am working on a WPF application. I had noticed that destructor (finalizer in c#) of the class is not being hit when application is closed. Also I had noticed that IDisposable.Dispose method was not ...
azhar rahi's user avatar
0 votes
0 answers
43 views

How to prevent checking for null multiple times when using the nullable feature in C#?

Scenario: I have this code, which retrieves an access token. private async Task<TokenResponse> GetTokenResponse(Credentials credentials, CancellationToken cancellationToken, string? scope = null)...
Sirvis's user avatar
  • 5

15 30 50 per page
1
2 3 4 5
22615