Category "c++sharp"

EntityFramework is very slow to compare strings because create a nvarchar sqlparameter instead of varchar

I have this sample query: context.BarcodeTipiDoc.AsQueryable().Where(d => d.Barcode.CompareTo(minBarcode) > 0); That query runs very slow because Entit

.Net 6/7, C#, desktop three-tier app: use gRPC or not?

.Net 6/7, Windows/Linux, C# mostly. I am developing a set of applications on a three-tier architecture. There are many clients (up to ten in the normal case) re

Expression can't be evaluated, because there is a negative frame on top of the stack

I'm creating a test station program in C# where I communicate with a test pcb through a ftdi to Uart cable. All works fine but sometimes my application crashes.

Angular and .Net Core Project VS 2022: An unhandled exception occurred: Project 'Leon\AppData\Roaming\ASP.NET\https\<projectName>.pem' does not exist

Hello I am building an Angular/.Net Core project and creating the projects by following Microsoft's suggestion, https://docs.microsoft.com/en-us/visualstudio/ja

Specflow is not executing tests in Visual Studio 2019

I have a very weird behavior with Specflow that only applies to one team member. Everyone else have no issue what so ever. The VS2019 testrunner is correctly d

How to fix C# Warning CA1416 in vscode?

I'm just starting to learn C# following Brackeys on Youtube. Upon writing along I get this problem pop up in vscode: { "resource": "/d:/OneDrive/Programming/You

Dynamicly adding StackLayout

So what I wanna do is have a stacklayout, with entries etc. Added when I set it in the code. For example, I have 3 entries, once they are all filled I want a se

Visual Studio Nuget Update - Access denied to \packages\System.Security.Cryptography.X509Certificates.4.3.2\.signature.p7s is denied

Hi currently getting the above error when trying to restore or update packages via Nuget on VS2019 16.8.2. The project was built on anothe rmachine then moved t

How to abstract away an implementation that requires runtime data during its construction?

I have some trouble with dependency injection. Assume we have the following code: [Snippet 1] public class FooBar { public FooBar (){} public void DoSome

C# HTTPS Server on Ubuntu

I'm trying to get an HTTPS connection working on Ubuntu from my C# HTTP server. I've enabled HTTPS in my HTTPListener as you would on Windows, however I am unab

Can't access User Secrets in ASP.net core 3.0

My question is simple. I have an ASP.net core 3.0 app, I added secrets using visualstudio and pasted my secrets into the secret file normally. Then inside my P

C# programm can't find my workspace with MSBuildWorkspace

Hi I am trying to analyze my CsProj using Roslyn. I'm having issues finding my solution. This is my code: using System; using System.Collections.Generic; using

Does CefSharp support the promises of the JavaScript?

JavaScript code below works in the console of the Browser. But when i put this code in CefSharp, CefSharp returns null. Im using CefSharp 100.0.120-pre. Does Ce

Correct way to retry HttpClient requests with Polly

I have an Azure function that makes a http call to a webapi endpoint. I'm following this example GitHub Polly RetryPolicy so my code has a similar structure. So

FileStream.ReadAsync blocks UI if useAsync is true, but doesn't block UI if it's false

I read about the useAsync parameter in this FileStream constructor: FileStream(String, FileMode, FileAccess, FileShare, Int32, Boolean) I tried to use the Fil

The type initializer for 'Google.OrTools.ConstraintSolver.operations_research_constraint_solverPINVOKE' threw an exception

I have a google routing web service. it works in a local run project. but when I upload it on the host I get this error message: The type initializer for 'Goog

Rx.Net - process groups asynchronously and in parallel with a constrained concurrency

Playing with System.Reactive trying to resolve the next task - Break an incoming stream of strings into groups Items in each group must be processed asynchronou

GenerateFeatureFileCodeBehindTask task failed unexpectedly

when I try to build I am getting this error. I am using VS studio 2019, and Specflow 3.9.69 Severity Code Description Project File Line Suppression State Error

Error "Cannot bind argument to parameter 'Name' because it is null" when running PowerShell script from C#

AFAIK, the only way to change the type of an Office 365 mailbox to Shared is via Exchange Online Powershell, and seeing that I have to do so from an ASP.NET Cor

ASP.NET MVC Core Consuming Web API with Arrays?

I am having difficulty and although I thoroughly (I think) researched the web, including here at SO, I cannot seem to find what I am looking for -- or I am bein