Category ".net"

Inno Setup: Verify that .NET 4.0 is installed

I have a component that requires .NET 4.0 to run, how can my Inno Setup installer verify that it is installed, and if not, prompt the user to install it?

How to send form-encoded List<long> from SwaggerUI?

I'm getting 400 Bad Request on sending List<long> from SwaggerUI to .net application Swagger Response : {"statusCode":400,"message":["The value '"1","2",

How to get the file_id of a wopi host integration?

I've deployed a Wopi client as mentioned in the documentation and now i'm trying to deploy a wopi host, but i'm new to .net enviroment and i don't know how to g

Blazor TypeError

Blazor application throws error whenever i try to call methods in api. I've tried different httprequest methods but nothing changed so far, still struggling to

Group elements of the data set if they are next to each other with LINQ

I have a data set (ex. 1, 1, 4, 6, 3, 3, 1, 2, 2, 2, 6, 6, 6, 7) and I want to group items of the same value but only if they are next to each other minimum 3 t

Cancellation doesn't go as expected

The while loop currently blocks the thread as it retries forever until the connection is established. I expect it to retry forever but it shouldn't block the th

How to edit appsettings in Azure pipeline?

I'm trying to edit appsettings (.net) in azure pipelines, it's for differents environments(production, development, etc..) For example I want to change this val

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