Category "c++sharp"

HttpContext.Request.Form threw an exception of type 'System.InvalidOperationException' - why?

I have a strange problem. We are using C# for an ASP.NET MVC application, and JavaScript with jQuery and Data Tables for the frontend. In the frontend, a part o

Unity: Runtime-Terrain-Editor How to raise a circle

I'm trying to create a terrain editor, that works on runtime. At this point I can raise a square but have problems to raise a circle-shape. I saw this post and

Problem running DAPR with docker-compose in ASP .NET core 3.1

I'm trying to run multiple microservices with docker-compose relying on DAPR to establish communication between them. However, even though developer shell logs

OnItemDataBound in Datalist on how to show and hide labels and linkbuttons

I have a datalist with some labels and link button. I want to hide and show based on some stored procedure. The stored procedures are woprking fine in SQL Serve

How to solve BinaryFormatter Deserialize 3th party object Exception in C#?

In my project, I have a function which is used for loading objects from files: public static ObjectBase LoadObject(string _filePath, string _name) { Object

Why am I getting a SignatureDoesNotMatch error when object key contains grave accent marks?

I have been trying to replicate backup files on S3 bucket and one of my machines, which belongs to french culture, and the images it generated contains grave-ac

Database operation expected to affect 1 row(s) but actually affected 0 row(s) entity framework core

I have the following code try { using (var context = await PrepareDatabase()) { // Update temp roles by removing one row, this

How to log retries from Polly with ILoggerFactory

Or: How to log from a static method. From https://github.com/App-vNext/Polly you have examples like this one where a logger is magically available: Policy .Ti

how to hide form1 by clicking button in form2

I designed a form for login that named as form1, and have 2 more form form2,form3 form2 items showing in panel from form1 and what I want to do when I click the

EF Core 3, optimize lots of Include/ThenInclude

I have a query like this return await _ctx.Activities .Include(a => a.Attributes) .Include(a => a.Roles) .Include(a =

WCF call to endpoint not updating the query string parameter

We are making for WCF calls to endpoints like below: First Call: http://TESTSERVER:11033/Services/GetServiceDetail?Userid=Test1 Subsequent call: http://TESTSE

Parsing JSON data and display it as a table

How do I to get the first timestamp value off of the first row using C# and Newtonsoft.Json? How do I display this data in a table with headers beaId, bfiId, ti

When I try to save a QR code from the Zxing library I get an error with the BarcodeWriter class

Currently I want to store my generated qr code as an image in the phone gallery that executes it and then almost at the same time upload it as a backup to Amazo

Labels not appearing in Grid despite being children of it

I'm relatively new to Xamarin and I've been trying to programmatically add labels to a grid but each time they don't appear on the screen. Here's the code : for

In my WPF control, can I hide the validation control based on the size of the adorned element's row?

I have a user control with many sub controls within a grid. Since there are many controls per row, I'm controlling the visibility of the controls by setting the

Unity2D how do i calculate jump height using Velocity & Gravity

i would like to calculate the jump height. but i don't know how Example: RightBody2D rb = this.GetComponent<RightBody2D>(); // Do jump rb.velocity = new

Setting up SSL certificate in Visual Studio

I have a fresh install of Visual Studio Community 2019 on a new computer. I started a web app project, ran it for the first time, and then when prompted to acce

Visual studio does not recognize newly added class

I am having a weird issue here, i am using vs 2019 and one of my projects refuses to recognize any newly added c# classes, i can not use it anywhere else in the

How to generate heap overflow error using c#

I want generate a heap overflow error and slow down the system, however I have created alot of objects on class level, later on creating that class object milli

Getting an IServiceProvider from Ninject

I'm currently working at a discord bot and the CommandHandler needs an IServiceProvider for the Dependency Injection but I do use Ninject does anyone know a way