Category "c++sharp"

Moving from HttpWebRequest to HttpClient

I would like to update some legacy code from using HttpWebRequest to use HttpClient, but I am not quite sure how to send string to the REST API I am accessing.

IdentityServer4.Stores.ValidatingClientStore Invalid client configuration for ... client no allowed grant type specified

Hi I am getting the error... "IdentityServer4.Stores.ValidatingClientStore Invalid client configuration for ... client no allowed grant type specified" when u

Making request without refreshing page with blazor

Please i am new to blazor, I am building a pet project and i want to make a call to the server to do so validation if the text entered into an input textbox is

why is Intellisense not working in my VS Code?

I am working on vs code. When I open any folder the IntelliSense is not working when I hover the mouse over any text. It was working before but now I don't know

.NET 6 (stable) IConfiguration setup in Program.cs

This appears to be a similar problem but none of the answers are fitting for my code...: Read appsettings.json in Main Program.cs This is extremely similar but

How can I make it so when my player collides with an enemy, it disables movement input until player touches the ground?

So, I want to make it so the player loses control when it collides with an enemy. I already got a thing set up to make the player fly off towards the direction

Top-down motion with Unity causing errors

I am a first time programmer watching a tutorial on making a 2d, top-down game. My goal for this specific section of code is just to make the player walk around

Unity's Universal Render Pipeline performance problem? (2D)

I never got real answer for this. I open this new empty project (total blank but with one GameObject) I ended up getting 2500FPS, alright? Makes sense. The mom

NLog not contains filter doesn't seem to work

I am using NLog 4.6.8 and have the following simple NLog.config and Program.cs NLog.config <?xml version="1.0" encoding="utf-8" ?> <nlog xmlns="http:

Saving picturebox WITH backgroundimage to file [duplicate]

is there any way to save a picturebox (Windows Forms) with it Backgroundimage to a file? I tried to store the picturebox.Image into a bitmap b

NLog not contains filter doesn't seem to work

I am using NLog 4.6.8 and have the following simple NLog.config and Program.cs NLog.config <?xml version="1.0" encoding="utf-8" ?> <nlog xmlns="http:

Game works fine in editor, not in build

I am working on a game and i have a script to save the stats for characters. The same script is used for hero and for the enemies. There are actually 2 scripts

Install A folder from the web into a directory with C#

I am trying to make an installer app for an aircraft for X-Plane 11. I need to find a way to get a folder and install it to a user defined directory. How do i d

How to make vscode act like Visual Studio IDE when pressing Enter within curly braces

Say I'm writing function: after I've pressed 'ENTER': after formatting: Is it possible after second step (pressing 'ENTER') to get result like in Visual Stud

Avro ICallback is obsolete but what is the replacement?

Avro ICallback<T> is marked as obsolete: using System; namespace Avro.IO { /// <summary> /// Obsolete - This will be removed from the publi

Javascript: get a BadRequest error from a Web Api .Net 6 using fetch

I have a little trouble using fetch, This is javascript code: function loginJS() { const login = document.getElementById('login'); const nome = documen

Using SocketIO with Unity Quest 2 vr as client and Node.JS as server

Me and my team are building a VR game for the Quest 2 with Unity written in C#. We have a program that is the server that is written in JavaScript (Node.JS), th

How to implement offset based pagination for nested collection in HotChocolate GraphQL?

I've been trying to add Offset pagination for a collection inside an entity. I understood that I cannot use the [UseOffsetPaging] attribute directly. So I tried

Add Swagger description to minimal .NET6 APIs

I have a small project in .NET6 that contains minimal APIs like that one app.MapGet("/clients", async (IClientRepository repo) => { var r

Entity Framework. How to map class with nested Enumeration class

I am using an Enumeration class like this public class SizeUnit : Enumeration { public static SizeUnit Inch = new SizeUnit(1, nameof(Inch)); public static