Category ".net"

Create WebApplication extension method in external library

I'm trying to create an extension method to register some routes in an external library using C# .NET 6. I can'f find a way to do it because i cannot reference

IIS 7.x server error with HTTPS deployement

Am using IIS V7.5 with windows server for deploying Angular + .Net 4.5 fullStack application. Am using multiple instances at same site with different versions o

VB.NET, How to change the User-agent of the web browser control

There is a way to change The User-Agent of web browser control and it works! I changed the User-Agent by using the following code: WebBrowser1.Navigate("https:/

.Net Framework Debug window is not working

I have a problem of debugging. I have the window created with the buttons, labels and everything, but when i try to debug it, the UI/GUI doesn't show up. I am o

how do you sort time zones please?

Hi I'm using the following to populate a drop down list. I would prefer the list was sorted alphabetically on ID rather than the default. ReadOnlyCollection zo

empty response - Docker Container ASP.NET CORE 6

I got stuck on this for quite some time and i don't know why it doesn't work. I looked into posts similair to mine but i can't fix it, (tried checking the firew

How to speed up building .net solution in docker

My current setup: App.sln src\ ----BaseProject\ -------------Dockerfile -------------BaseProject.csproj ----ProjectA\ -------------Dockerfile -------------Proje

ASP.NET Core 3.1 MVC: setting IgnoreNullValues to true in Startup still renders NULL properties

I have an ASP.NET Core 3.1 project. I am using .AddJsonOptions() in startup with and setting IgnoreNullValues to true. I've created a simple test, and it still

Adding details in custom exception handling

I am currently developing a custom exception middleware and I also have my own exceptions. The goal is to be able to have a common library for multiple APIs and

BackgroundService not restarted by SCM

Goal: Running a .net 6.0 BackgroundService on Windows that is restarted automatically when an unhandled exception occurs. Minimal example: Program.cs IHost host

.NET 6 problem: Bearer error="invalid_token" error_description="The signature is invalid" in SwaggerUI

I am currently trying to make authenticator when a specific user logs in and gets the weathercontroller information. It says that the jwt token is invalid. So I

"System.ComponentModel.Win32Exception (0x80090308): The token supplied to the function is invalid" when TLS13 is enabled

After adding the below registry key to enable TLS1.3 on Windows Server 2022 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Proto

how to fix the thread tried to read from or write to a virtual address for which it does not have the appropriate access

Last month i was experiencing some issues with games after i installed new RAM. i went from (2x4GB) 3000MhZ to (2x8GB) 3200MhZ and since then i kept getting cra

How to create coinmarketcap api to track total and circulating supply

I want to create an API endpoint that displays only Total Supply as a numerical value in CryptoID like this, http://chainz.cryptoid.info/grs/api.dws?q=totalcoin

Windows or Visual Studio can't find the latest installed .NET SDK due to bitness

I've successfully installed the latest .NET SDK, but Windows doesn't recognize it. This is manifested by one of the following failures: dotnet --list-sdks does

Adding additional records to existing relationship not working

I am trying to add a new Template to an existing Client, but when I try to add the Template with an existing ClientID, it instead adds a new Template with a new

Unsupported Media Type on postman with form-data

I am facing an issue when trying to post form-data on postman. It works when I use Raw JSON but not with form-data.I've created a web api using .net core and I

C# - Save XML file as PDF as Raw Image (not converting)

I am trying to save xml file as PDF as it is. In other words, I am trying to create PDF file that shows content of XML like a screenshot (like raw screenshot).

DirectX 11 render BGRA32 Frame

First time trying to render something and I have big troubles... I am using DirectN library and SwapChainSurface class from KlearTouch.MediaPlayer. I am trying

How to exclusively set the value of a DataGridViewCheckBoxCell?

I have a List<Car> objects that have a bool property named Marked. I want to check / uncheck the Cell corresponding to this property, in a way that only o