Category ".net"

Description: The process was terminated due to an unhandled exception. Exception Info: System.CannotUnloadAppDomainException

After a user closed the application. If the user have not had a reboot. Next time when this user try to open the application will have an error : The * applicat

Description: The process was terminated due to an unhandled exception. Exception Info: System.CannotUnloadAppDomainException

After a user closed the application. If the user have not had a reboot. Next time when this user try to open the application will have an error : The * applicat

Unable to install service fabric runtime

Update By looking at the processes under Task Manager, I was able to locate the installer for Service Fabric Runtime (the first of the two components that are a

.NET MAUI Build Error somerandomstuff1084

When I run my MAUI Blazor project without any packages installed, it runs fine. The trouble starts when I try to download EF Core packages (specifically base, t

How can I query for keyboard input in a GUI app without using a pre-built input form?

In a console app, I could put Console.ReadKey() in an infinite loop, and I have what I wanted. But how can I do that in a GUI app? Let's say I'm using the new M

Take a screenshot and compare it with another image using playwright.net - C#

I m trying to take a screenshot of a section on the page and compare it with another image already saved using playwright and .NET. I managed to take the screen

razor pages culture value is lost after redirecting to identity pages

I have created razor pages web application with multiple language support, it is reading the first part of URL and tries to show the content with the correspond

System.Timer in .net core not tracking time correctly

I have this piece of code: public void StartTimer(string roomName) { var roomTimer = GetRoomTimer(roomName); var room = GetRoom(roomName);

Project currently contains references to more than one version

I am getting the following error. I tried to add references but I was unable to find a System.Web.Http in it. Please advice how to resolve this issue? The proj

How to invoke awaiting js fuction in razor pages c#

I'm using SignalR. I want to send updating request by websocket for each elements in foreach to update timer. But i'm getting error.Maybe connection can not get

.NET/EF Core - simple identity

Is it okay to do the identity without using ASP.NET Core Identity? I ask because registration for me is teaking data from user, hash password and put data with

How to get notifications using signal r based on selected value on client browser

Here is the code of server side i.e of NotificationHub where i intend to add some logic by which i get realtime update from database based on client send value

.NET 6 System.IO.FileNotFoundException: Could not load file or assembly System.Linq, Version=6.0.0.0

I am trying to migrate a project from .NET Core 3.1 to .NET 6. I have followed the official migration guide from Microsoft. During build in startup.Configure I

Visual Studio does not recognize a referenced assembly?

Opened an old project from years ago. Build fails because Visual Studio (2019) does not recognize an assembly that is clearly there - specifically, Autofac. You

Send files from flutter web to .net api

I'm trying to send files to .net api, but api response me {"mensaje":"startIndex cannot be larger than length of string. (Parameter 'startIndex')"} void _ha

Convert Bouncy Castle RSA sign to .NET 5 sign

I'm trying to remove the dependency on Bouncy Castle for a PowerShell module, whilst keeping it cross platform. Currently I have the following code: function In

How to prevent WebRequest Conflicts between Multi Methods in .NET?

'm new here so please bear with me. Happy to clarify if any questions/clarification. In all my processes I have LogHandler method via WebRequest which basically

Docker .NET Framework is triggering error Access to the path 'C:\RoslynCompilers-3.6.0\tools\csc.exe' is denied

I am trying to run a simple ASP.NET application in a Docker Container. Unfortunately, this application is a .NET Framework (not .NET Core), and because of that,

nSwag Client: Is there a better/easier approach to affect PropertyNameCaseInsensitive?

We are attempting to integrate System.Text.Json into our REST API and rest clients, previously using Newtonsoft. We are using nswag CSharpClientGenerator.Genera

Cannot authenticate using API Key with NLog.Targets.ElasticSearch

I cannot get NLog.Targets.ElasticSearch to connect to a local ElasticSearch instance using an APIKey. My nlog.config has the following: <target xsi:type=