Category ".net"

How to display (Google) Maps on .Net Maui

I'm playing around with .Net Maui. I'd like to add a map to my demo app. Unfortunately it seems that the map control has not been migrated yet. Also it seems th

Delete messages from MSMQ queue without iterating on all messages

I have a cleanup method triggered by a timer and each time I verify if I reach or not the max size defined in a configuration file. The cleanup method will dele

Omit last page on NUMPAGES Aspose .net

I'm looking for a solution in ASPOSE .Net to decrement the NUMPAGES. Reason is that I don't want to count the last page of the document. Here is what I tried so

"Array dimensions exceeded supported range" when creating a dataframe

I'm getting this exception when trying to create a DataFrame with only 50 millions rows. Any ideas how to avoid this problem? [Exception] [JvmBridge] Array dime

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