Category "c++sharp"

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

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