Category "c++sharp"

HTTP Post request method does not execute. How to use HttpClient?

I'm trying to make a post request using HttpClient. The expected json which I'm trying to post is stored in var result and looks like : { "ID": 142, "Statio

save map bookmark for each user login using .net and javascript

I want to create Bookmark widget, and I want each user can save his own bookmarks. and when login to the application can see only his bookmarks. for this I have

What thread runs the code after the `await` keyword?

Let me just post a simple example: private void MyMethod() { Task task = MyAsyncMethod(); task.Wait(); } private async Task My

How to apply filter in child tables using Linq

Net application. I have one entity with child entities. I have to filter based on child entity values. For example in the below query, var sourceProposal = pro

C#; How to Loop Through/Wrap Enumerations when Incremented?

Say you have a byte value equal to its max value, so byte aByte = 255;. When you increment a value past its max value, it usually wraps around to its minimum va

Claims added from Profile service not included in asp.net core 6 Identity with Duende Identity Server

I have below config public static IEnumerable<IdentityResource> GetIdentityResources=> new List<IdentityResource> { new

Creating an installation with template on Azure NotificationHub generates 2 registrations

I'm creating an API to register a device (mobile app - push notification) into the Azure Notification Hubs using Installations, but every time that I create a n

The type 'T' must be a reference type in order to use it as parameter 'T' in the generic type or method 'TableClient.QueryAsync<T> [duplicate]

I'm using 12.0.0-beta.6 of the Azure.Data.Tables nuget package. When I try to invoke TableClient.GetQueryAsync it gives me the error: "The typ

BsonSerializationException: Creator map for class has 2 arguments, but none are configured

I have a TextSearchJob object to store on MongoDB. I am rather new with the database and I don't know why I have this error with the IDictionary version (on the

In C#, when a variable passes through a function/method, will the original variable change?

I am confused by how a function can change a variable passed through it. For example, if I created a variable t = 1, and pass a function by adding 2 to it, insi

JetBrains rider IDE => Hosting Environment

enter image description hereI am trying to move from Visual Studio 2022 to JetBrains rider with my .NET full-stack project. I am using Webpack for my front-end

The XAML Designer has exited unexpectedly. (Exit code: e0434352)

Xaml Designer keeps crashing, more info: Error The XAML Designer has exited unexpectedly. (Exit code: e0434352) Visual Studio Specs: Microsoft Visual Studio Pr

Error Unabled to add User controls to a form

I get these two error messages, when trying to add a User Control to a Form. Worked fine for long, no problems. Now the Design won't show the already added User

Load referenced data types from custom Identity UserManager

I have a custom IdentityUser called ApplicationUser: public class ApplicationUser : IdentityUser { public ICollection<Board> Boards { get; set; } } W

Attempting to INSERT values into a MySQL DB from C# code within a form, but getting "Column cannot be NULL

All - thanks in advance for your time. So, background info - I am trying to create a form for contact registration using C# to pass the information into my MyS

there`s an error in uploading image to firebase storage from Asp.net MVC the folder path isn`t shown(ex:super-market-7f7a3.appspot.com/)

theres an error in uploading image to firebase storage from Asp.net MVC the folder path isnt shown(ex:super-market-7f7a3.appspot.com/) controlerpage1 controlerp

Remove Model properties in WebAPI POST but keep for GET in Swagger

I have a few properties that capture timestamps when data is inserted or updated in the database. I don't want these properties visible in Swagger in POST reque

Entity Framework 6 unable to update related models

I have list of models that are attached to a product model, insert is working, but when updated Entity is only updating the product model and ignoring the relat

C# DBConnection.Open() Invalid Cast Exception

I am trying to connect to a database using the DBConnection class. Everything works fine on the development pc as well as some other computers, however there ar

"The instance of entity type cannot be tracked" error when adding detached entity tree

I am unable to add the Deal entity because Buyer and Seller are referencing the same city "City1". I work with detached entities here because I receive the whol