Category "c++sharp"

How can I create an object in C# during program execution, specify the type and assign a value?

Help me, is it possible in C# to make a dynamically created class whose number of properties and their types are not known in advance? For example, there is a P

C# Deserialize dictionary with complex properties names to JSON string

I have the following dictionary, each dictionary key potentially needs to be split by '.' and represented as json object/property/array etc. var data = new Dict

Naudio 'NoDriver calling acmFormatSuggest' error on wav exported with imovie

I am trying to convert a .wav to an .mp3 file. My code usually works but now I have gotten a .wav file that was exported with Imovie and I get the error 'NoDriv

IIS - Access denied to directories and files on the novell network

I'm trying, through the action of a button on my website, to open a file that is on my company's network. Running the application only through visual studio, th

Cannot find how to do equality for the object I am dealing with POCS collection of POCS object

Consider a simple POCS object FeeInfo (yes I know an object would normally be called simply Fee, but the usage of it makes the class name FeeInfo make more sens

OAuth2 with Gmail API - Redirect

As Google will disable the "Less secure app access" option, I'm implementing a Windows Forms Application (.NET Framework) for sending emails with OAuth. I logge

.NET Core: Event handling at calling a third party 32-bit dll from a 64-bit c#

I'm going to migrate a .NET Framework 4.* application to .NET 6. Main application is compiled as 64bit and I need to use a 32bit (.NET 6) dll hosted as out-of-p

Blazor Server set multiple default values for select drop down list

I have a Blazor server app (.net 6) page that has a select drop down list, which is set to allow multiple selected items. I need to set default values, when th

How to Get the length of the Characters in grid using Jquery in C# MVC

i want to get the number of characters in Grid from the below Jquery script Even though i tried by length(data) it shows that length is a property not a functi

Visual Studio 2019 - Docker 4.1.1 - Web App Stops Working After Adding Container Orchestration

This is sort of strange. As soon as I add docker orchestration in Visual Studio 2019 my Web Application stops working. These are the exact steps that I am takin

Currently able to calculate total neighbors, I need just the neighbors that are alive

I have a bool [,] board that stores if the cell is alive or dead. The code I have provided is correctly telling me the total neighbors for each cell, the proble

Why does Event Grid serialize my already serialized data?

I am trying to get into dotnet and Azure and so I build small solution that triggers a azure function by http with a count that then requests the given amount o

dotnet watch run -c $(Configuration) with hot reload

I want to launch my Blazor app with specific configuration and have hot-reload enabled. When I launch with: dotnet watch Hot reload is enabled and everything i

how to Check Client connection status in Blazor web assembly

I have a Blazor webasemmbly app, it's using asp.net core as backend and Blazor wasm as frontend. I have a class that can check the HTTP issues like notfound, Ba

Error handling with Azure Function ServiceBusTrigger

I have an Azure Function as below. I came to know that ServiceBusTrigger provides a retry mechanism and by default retry five times and after that write a messa

Unity FPS Controller camera only moves when mouse movement stops

Using unity FPSController asset, here's the code for actually moving the camera called in LateUpdate() method. private void CameraRotation() { // if there i

Why is await HttpContext.SignInAsync("MyCookieAuth", claimsPrincipal); throwing No sign-in authentication handlers are registered? (Razor Page model)

I'm trying to do a simple user authentication with the following code public async Task<IActionResult> OnPostAsync() { if (!ModelState

Visual Studio 2022 Crashes when Adding SqlDataSource using any MS Access Database in ASP.NET C# Web Project

When adding a "SqlDataSource" using any version of MS Access database the app simply crashes when you "Test Connection". This happens in the designer when usin

.Net Core 'asp-append-version' interfering with CSP nonces in Umbraco 9

I have a very simple TagHelper which will add the current CSP nonce to a specified tag. This is all working fine until I start using asp-append-version along wi

How can display Picker item of firebase realtime using xamarain forms and add to firebase when select item

I want to display a picker items from firebase how can do this ? <Picker x:Name="AppointmentPatientName" Title="Patient Name" > <Picker.Ite