Category "c++sharp"

preventing the item to add to the dictionary

In addition to this question: I want to create a hierarchical list in a 3 level category. My data are in the following ways: var appCategoryList = new List<A

How to use Performance Profiler with Instrumentation on Asp.net Core app in Visual Studio 2022

How do you get instrumentation performance data from an ASP.NET Core web app using VS 2022 tools? We now an app with an ASP.NET Core Web API and MVC app pair. T

how to create a godot project directly from visual studio 2019

is it possible to create a new Godot project just like creating a new c# form app in visual studio ?

C# - Adding condition to func results in stack overflow exception

I have a func as part of specification class which sorts the given iqueryable Func<IQueryable<T>, IOrderedQueryable<T>>? Sort { get; set; } W

Azure sign-in into two different applications (with two different users) using OpenIdConnect middleware

I have two Azure enterprise applications to which I need the user to sign in. He might sign in with different active directory users. The 1st app is used to aut

Azure Storage (classic) vs Azure Storage (V2) code not working for V2 storage

I have a worker role running and checking to see if data exists in a storage hosted on Azure. My code works when I use the connection string for a classic type

c# Microsoft Graph permissions to read mails

I have the following list of permissions on Azure AD: my ASP.NET Web Core app has the following config: { "AzureAd": { "Instance": "https://login.microso

Can I use different namespace as variable depending on the configuration?

For example, I have two namespaces, provided by other dlls. and cannot be modified. namespace A_Build { public class D {} public class E {} } namespace A

How to projection fields for a dictionary (C#, MongdoDB)

I am trying my luck here, I have a model which is like the following public class RowData : BaseBsonDefinition { . [BsonExtraElements] [BsonDictionaryOption

How to avoid duplication logic in the code?

I have two methods: static public async Task Delete( Guid id, string path, ViewModelCollection<ProfileData> collection ) {

Error while fetching data using FindAsync in C#

I am getting this error "A second operation started on this context before a previous operation completed. This is usually caused by different threads using

IndexOutOfRange (IsAllDigits Method)

I am novice in C# and just learning it. I am sure that you will consider this question dumb but I really can't understand the real reason for the following in t

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