Category ".net"

HTTP Post request method does not execute. How to use HttpClient?

I'm trying to make a post request using HttpClient. The expected json which I'm trying to post is stored in var result and looks like : { "ID": 142, "Statio

JetBrains rider IDE => Hosting Environment

enter image description hereI am trying to move from Visual Studio 2022 to JetBrains rider with my .NET full-stack project. I am using Webpack for my front-end

No suitable constructor found for entity type 'CoordinateSystem'

I'm trying to generate a migration file with a spatial column in it (Geometry) and I'm getting this error No suitable constructor found for entity type 'Coordi

FromBody with a "empty" values return null Model (Guid and Enum)

I'm having a problem to validate certain types of values in my model (using fluent validation and FromBody). I have this model: public class PostAcess { pub

Build Deployment Location in WPF

How can I get in WPF the build deployment location for an app already installed on the machine and then display the info about deploy? Thanks for ur time!

Implementation of HttpClient request limiter and buffer

In our project, we have a few services that make requests to a 3rd party API, using a key. This API has a shared rate limit between all endpoints (meaning reque

Can't get Code from Azure Active Directory from Post because of redirect

I need assistance with a company website I'm working on that should be linked up with Azure Active Directory. I have read those Azure Active Directory Docs. Our

Azure function .net 6 return error 500 after deploy

I've migrated a project from .net core 3.1 to .net 6.0. I've resolved/updated all nugets and my functions runs well on local environments (I've tested on two pc

C# AzureAD joined device - retrieve token for Graph API silently

I want to create Graph API client as logged in user. The device is Azure active directory joined device. Documentation says I should use Integrated windows auth

Using C# HttpClient to POST File without multipart/form-data

I'm trying to interact with a API that doesn't support multipart/form-data for uploading a file. I've been able to get this to work with the older WebClient but

Sequence points missing in some portable PDB files

Context I'm developing a documentation generating tool for .NET libraries, which extracts types from assemblies via reflection and relevant documentation from t

WebSocket from HTTPS website to different port, self-signed certificate

I am facing issues when trying to connect from a browser via WebSocket to a server. Website is hosted on a default port (80, 443, configurable - this is s selfh

Dotnet Unit tests failed once but works on the second run

I'm facing a problem when I want to run unit test on my c# project. I have the same behaviour using Visual Studio or command line. Here's my process: Ensure tha

PostgreSql and EntityFramework Unable to create an object of type

when I am trying to use this command dotnet ef migrations add InitialCreate I am getting error like : Unable to create an object of type 'BlogDbContext'. For th

Generically Register All Concrete types for Lazy Loading in DI

I want to setup Lazy Loading of registered types in a generic way that does not require me to register each one individually. I can create an extension method t

What is the best practice to handle long external process in ASP.NET page?

An example will be something like: User clicks a button on a webpage I created with ASP.NET. My app calls an API hosted on a third party server. The user sees

Can we update the configurations from the advance section of the Azure portal programmatically?

I am trying to call an API multiple times with the change in the configuration files. Can we do the changes in the configuration files at runtime in the code be

.NET Worker Service: Failure processing application bundle, bundle header version compatibility check failed

I've developed a Worker Service in .NET (.NET 5) which runs successfully. I'm then publishing the application using the following publish command. dotnet publi

Is there any version of Selenium basic for .NET 4.8?

My workstation has only .NET framework 4.8 activated, and I have no admin priviledges to active .NET 3.5 in control panel. Is there any version of Selenium basi

Specifying cs file to build with dotnet CLI

Suppose I have two files in my current working directory: // file1.cs Console.WriteLine("file1"); //file 2.cs Console.WriteLine("file2"); In powershell, I do