Category "c++sharp"

XmlException and CryptographicException when running blazor web server app

I receive these two exceptions when I run my blazor web server app: XmlException: Root element is missing. CryptographicException: An error occurred while tryin

How do I add new DataSource to an already Databinded CheckBoxList

i'm building a web form that show Database's item(Tables, Rows, FK,...) I have a CheckBoxList of Tables (chkListTable) which will show a new CheckBoxList of Row

How to update Url used by UnityWebRequest to InputField?

I want the user to be able to change the ID of the link, which is why I used InputField to get their input. Unfortunately, I can't seem to figure out, how to ma

SignalR WebSocket Closed with status code 1006 (no reason given) (only on the remote server after deployment)

I'm working with a project which combines angular app on a client-side and .net core 6 web API app on the server-side. To provide real-time communication betwee

401.0000007 Error while trying to get the DHL Interface C# code. Followed DHL document

I have been trying to connect to DHL interface but i cannot get the token access key from C# code. here is my current code. Please let me know if you have a sol

Xamarin - Shell.Current.GoToAsync($"//...") performance too slow on Android

I have a Xamarin project and I'm using visual studio 2019. I consume an API to access data and for my LoginPage flow I used routing in shell. So here is my AppS

QuestPDF: Changing max number of pages

I'm migrating an existing report from iText to QuestPDF, and I am new to both of the packages. I'm not finding much help online for questions about QuestPDF in

Call POST asp-action from _layout.cshtml FORM to controller doesn't work

I have this form: <form method="post" asp-controller="Auth" asp-action="RegisterUser"> <div class="form-group ms-1 my-1"> <input class="for

Deserialize array that was Serialized with BinaryFormatter, without using BinaryFormatter to deserialize

BinaryFormatter is now obsolete for security reasons. Unfortunately, there is a ton of old legacy records that were serialized to array using the BinaryFormatte

How to filter datagridview using multiple checkboxes using ComboBox

I want to filter the datagridview by checking / unchecking one or more of the treeview checkedboxes and should display me the selected item in the datagridview

DLLs not working after installing Visual Studio Setup Project

I have a C# project that I am creating which uses a few DLLs located in a separate folder in my project. I have added these files into the application folder on

Deserialize array that was Serialized with BinaryFormatter, without using BinaryFormatter to deserialize

BinaryFormatter is now obsolete for security reasons. Unfortunately, there is a ton of old legacy records that were serialized to array using the BinaryFormatte

Tag in PasswordBox is not displayed as placeholder

I made a style that shows the tag of the password box as a placeholder by binding it. However, I used the Attached Property in the style, but the tag does not s

C# properties and "tostring" method

I was trying to understand properties better and I came across this page with this example: https://www.tutorialspoint.com/csharp/csharp_properties.htm using Sy

How to do a for loop in html(razor) using c#

Hello guys i am trying to create a table with all information i have taken from an api in .cshtml.cs and to show them in the html page. But i can't quite figure

Synchronously acquiring the Response.Content of asynchronous HttpClient.SendAsync, in .NET Standard 2.0

How can I properly extract an HttpResponseMessage Content property (of type HttpContent) in .NET Standard 2.0 plain synchronous manner, acquired after using asy

Elastic Search Upgrade Nest.dll 7.17.1

After upgrading Nest.dll from 6.8 to 7.17.1 I'm getting the following runtime exception after executing this piece of code: if (client.Indices.Exists(IndexName)

Await not returning in SpecFlow async test step

I'm having trouble with some async SpecFlow unit tests where an await is never returning. I think that it is to do with the SpecFlow SynchronizationContext, but

Difference between Garbage Collection and a For Loop destroying objetcs

I have this code that creates 5500 objetcs of a class and then it outputs the the total allocated bytes and total memory so that way I can see the changes in th

Get the JSON Schema's from a large OpenAPI Document OR using NewtonSoft and resolve refs

I'm currently looking extracting all of the JSON Schemas from a large OpenAPI spec. I've been using the following NuGet packages: Microsoft.OpenApi v1.3.1 Micro