Category ".net"

IQueryable Result set not getting correct data

I have an object Student, which has a navigation property to Class: public class Student { public virtual List<Class> Classes {get; set;} } public cla

Change to array triggers change in other object

I am currently working on a chess game and I want to implement a Redo button. The way i am doing this is, that the I have a list of GameStateContainer class whi

Can't use GitHttpClient from Powershell, Newtonsoft.Json version conflict

I'm trying to consume Azure DevOps .NET API, specifically the Git client, from Powershell 5.1. There is a copy of all client libraries under C:\Program Files\Mi

Want to show/hide Div Query - JavaScript - based on what a sql query returns

My project is a MVC c# Asp.NET project. I want to check if an attachment has been loaded, if there is an attachment it shows the div that contains the attachmen

projects missing from dotnet6 uno winui project

I'm getting this response when trying to create a new project: dotnet new unoapp-winui-net6 -o unoapp The template "Multi-Platform App net6 (WinUI)" was creat

Are there specific issues with .NET Core apps and System.Reflection.Assembly.LoadFrom(...)?

I'm using a tool I wrote that makes a call to the following line in order to inspect a few things, including the assembly version: var assm = System.Reflection.

How to get full stack trace from exception object, when debugging in windbg?

I have a dump file which was dumped from a app pool crash in IIS. A thread contains System.NullReferenceException. I am able to locate the NullReferenceExceptio

Im not able to mock ServiceBusReceivedMessage and ServiceBusMessageActions

we want to write unit-test for servicebus message trigger. we are using Azure.Messaging.ServiceBus nuget package [FunctionName("serviebustrigger")] publi

.NET 6: How to use method overloading in console app Startup?

.NET 6 offers boilerplate-removal in console applications Startup class. I try to run this simple test code: Console.WriteLine("Hello, World!"); static void Te

Grpc.Core.Internal.CoreErrorDetailException: Failed to pick subchannel

I have this following error (sometimes) when I call the Google Analytics Data API v1 by a .NET application : Unhandled Exception: , DebugException="Grpc.Core.

Hot reload does not work with .NET MAUI starter project

I'm using Visual Studio 2022 (17.2 Preview 4) to use .NET MAUI for windows. When trying to hot reload with the default project it gives the error "Hot reload ca

EF Core group by date and count value for previous dates

I have a table like Date Balance A Balance B --------------------------------- 2022.03.01 100 200 2022.03.01 200 500 2022.03.02 300

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