Category "c++sharp"

Using join method on Entity Framework cause trouble

I got this error An unhandled exception of type 'System.StackOverflowException' occurred in EntityFramework.dll when I use join for listing data from the data

How to set 2 routes point to the same controller in ASP.NET MVC 5

I have an ASP.NET MVC 5 web site which has a controller MyFirstController. That way, I can load the index view by using https://example.server.com/MyFirst. On

Score updating automatically without any prior collisions

I am a newbie to C# and am currently trying to create a scoring system for Ruby's Tutorial. So I am trying to have the score update each time Ruby fixes a robot

.NET Multi-language support for unsupported ISO 639-2 cultures

I am currently developing an ASP.NET 4.8 MVC single-page application that is expected to support multiple languages. From various resources, I found that one wa

ModelState showing invalid, but the value is there?

I hope this makes sense what I am trying to do I have an application built with RazorPages that I am adding server side validation to for a Uni Project I have a

How to properly prepare JsonWebKey for API request?

{ "client_name": "apk1", "scopes": [ "full" ], "jwks": { "keys": [ { "kty": "RSA", "e": "AQAB", "use": "sig"

Control the capacity of a queue (or a list)

I have a class public class ProductionQueue { /// <summary> /// Gets or sets the title. /// </summary> /// &

winverify trust results 2148204800 only in windows server 2012 r2 standard VM

We are doing the MSI validation using below code. WinTrustData wtd = new WinTrustData(fileName); Guid guidAction = new Guid(WINTRUST_ACTION_GENERIC_VERIFY_V2);

How to add a method in a property C# (like something.ToString())

I'm creating a custom class in c# and I want to add a method in a property So, a custom method in a property for example it's like the ToString method. But I wa

MASL OAuth Supporting Multiple Authentication flows

I have a client application that accesses my WebAPI (1) using Integrated Windows Authentication and the Authorization code [Authentication flow]. Now I need to

How to get highest value from string Split() c#

so I want to print the oldest persons age (for example person writes: Patrick,50 Steven,25) the code will print: age of the oldest: age Obviously this is an exe

Parsing FtpWebRequest ListDirectoryDetails line

I need some help with parsing the response from ListDirectoryDetails in C#. I only need the following fields. File Name/Directory Name Date Created and the F

WaitForSecondsRealtime not working as expected

So decided to give game dev a try, picked up unity,Now I decided to create a simple ping pong game. My game has Bat.cs class, ball.cs, and GameHandler.cs. The G

visual studio with c# SocketException: No connection could be made because the target machine actively refused it 127.0.0.1:8080 error

I am getting this issue: No connection could be made because the target machine actively refused it 127.0.0.1:8080.I use Sikuli4net library but scrn.click dont

C# - Calculating HMAC from using params list, json body and a secretkey?

How do I do this? I'm lost. The header parameters: new KeyValuePair<string, string>("checkout-account", MerchantId), new KeyValuePair<string, string>

Why ConcurrentDictionary TryUpdate() method requires indicating oldValue?

When calling TryUpdate you should specify old value besides key, why is it required ? And additional question why TryUpdate method (and others similar) have whi

cppflow model loading hangs unity

I'm trying to load a tensorflow graph model using cppflow in c++. I am able to load the model when I define the model loading globally in a standalone applicait

Having trouble to run a program in C#

enter image description hereenter image description here I was trying to run a program on C#. Anyone know what the reason is and what the solution is?

ASP.NET Core - Entity Framework Core - Drop Down List - DbContext SaveChanges Issue

I'm new to using EF as well as ASP.NET Core. I'm working on a simple web application and I am getting an error when I go to save a new record. When the DbCont

c# - elsa workflow - child workflow - how to get workflowInstanceId of parent workflow

I have an elsa workflow parent which is calling some child workflows. Every child workflow has some custom activities (based on SendHttpRequest elsa activity).