Category "c++sharp"

Unable to Write json variable c# getting an error

I get an error when I try to serialize or update a json file. I just want to update the value of "balance" inside a json file and I got the idea here... I can't

form.show doesn't show all the content on the form like forms.showdialog

I am currently developing a GUI that helps users pick a test to run for a DUT. The program controls a bunch of lab equipment via visa com drivers and logs the d

Hangfire RecurringJob "does not contain a method with signature"

I am using Hangfire configured in my WebAPI .NET Framework 4.7.2 application. I am configuring it inside the Global.asax.cs My dependency injection chain is con

GRPC-Web + Blazor CORS Issue

I'm trying to create a Blazor WASM application that will call a GRPC gateway using grpc-web. The description of the Gateway Service is: syntax = "proto3"; impor

'Server failed to authenticate the request' when attempting to generate SAS URI for (Azurite) Azure BLOB storage

I've combed through at least a dozen different versions of this problem but none of them have so far produced an answer to the one I'm having. I'm attempting to

How to remove BOM from an encoded base64 UTF string?

I have a file encoded in base64 using openssl base64 -in en -out en1 in a command line in MacOS and I am reading this file using the following code: string file

Why is my recursive descent parser right-associative

I'm writing my own programming language, and I have the tokenizer (lexer) all done. But for parsing, I'm having trouble writing a recursive descent parser. It s

Web Api Return File with additional data

I'm returning a file as follows: public async Task<IActionResult> GetFile(string id) { try { Get

How do you multiply a quanternion by a vector3 in unity?

I have this code: private Transform player; // Start is called before the first frame update void Start() { player = Object.FindObjectOfType<PlayerIdenti

Power BI embedded report in Angular 7 code is not exported with visual filters applied

We have embedded Power BI report in Angular 7 code and when we try to export using Power BI provided service it is not exporting applied filters instead it down

C# - Random Generator exclude last number from Array

I've just started my first little project in C# and with WinForms and I am stuck on this one feature for a few days now.. I have an Array with about 60 PictureB

Best way to determine if a user can view a window

How can I determine if a user can see a window (fully or partially) at the screen using WPF/C#? I tried to define this using WindowState, but the window may be

WebRequest vs FileWebRequest

I am going through the example exam questions for Microsoft exam 70-483 "Programming in C#". There is one question the answer to which I don't understand and c

Regex for DateTimeOffset validation in url?

How to validate the date and time in the url that is the correct DateTimeOffset format? DateTimeOffset format (basically starts with 4 digits of year and end wi

Display a PDF file from SQL Server database using C#

I already uploaded PDF files into my SQL Server database as binary data file. I want to retrieve this file and open it with Adobe Reader on my form. Please hel

ASP.NET Core YARP Reverse Proxy multiple listen ports

I want to Reverse Proxy multiple ports, with YARP. 0.0.0.0:5001 => RemoteHost.com:7001 0.0.0.0:5002 => RemoteHost.com:7002 0.0.0.0:5003 => Remote

Blazor wait for ef core to finish request

So right now I get a Error: System.InvalidOperationException: A second operation was started on this context before a previous operation completed. Because bla

Image.FromStream throws Parameter is not valid error only on linux

I have some Unit Tests made in .net core that checks if the file which is uploaded from angular frontend is actually resized on the backend. I have a service th

Output how many duplicates in an array

I'm looking to output the number of duplicates for each int in an array e.g. the array 1,2,3,4,1,1,3 would output 1:3, 2:1, 3:2, 4:1. at the moment no matter ho

Dotnet 5 scaffold changing table names

I have a database with tables like this: productos parametros before .net5 when I run the Scaffold command dotnet ef dbcontext scaffold "..............." "Pomel