Category "c++sharp"

asp.net 6 EF using MySql Database not working

I am trying to connect my Web API build in asp.net 6 with MySql and I am having a lot of trouble My Service looks like this builder.Services.AddDbContext<Tic

Arbitrary Value JsonDiffPatch.net diff function output

I am trying to find the changed values on website. For that I have written a iterator which will hit the website and get the html output. I have saved that html

Build Project with MSBuild programmatically - NuGetSdkResolver or InvalidProjectFileException error

I want to build a tool which is capable of building C# projects. For that I did the following thing: var buildOutput = new List<string>();

How to get the file_id of a wopi host integration?

I've deployed a Wopi client as mentioned in the documentation and now i'm trying to deploy a wopi host, but i'm new to .net enviroment and i don't know how to g

How to Encrypt Windows Identity value?

I'm using x = System.Security.Principal.WindowsIdentity.GetCurrent().User.Value; which outputs the users windows identity. Here is an example of what the outp

Constructor car calculator program

I am trying to write a program with the instructions below. The program does work currently, but it does not fully meet the specs. I think I'm very close, but I

Blazor TypeError

Blazor application throws error whenever i try to call methods in api. I've tried different httprequest methods but nothing changed so far, still struggling to

ASP.NET and Spring - Singleton or Scoped/Prototype

Im really confused, Daily I work with java and spring and in Spring-community it is almost obvious that Repositorium/DAO and Services are Singletons (which is d

Casting an object within a MongoDB document to date time within a filter definition builder

I am hoping someone can help me as I am new to Mongo DB or point me to a work around, I have a property within a Mongo DB document which is of type object, but

Error in selenium c# witch WebDriverException

OpenQA.Selenium.WebDriverException: "The HTTP request to the remote WebDriver server for URL http://localhost:61601/session/bf47076dd5340edf30b904f946dae6f2/url

Can't see anything on the Xamarin ListView (DataBinding - MVVM)

I tried to use some DataBindings on the listview but nothing is listed. Model.cs public class Post { // Columns inside of the Database table [PrimaryKe

Weird Raycast Behavior with Unity 2D in C#

I'm having problems where a raycast2D I am doing in Unity for casting spells in a game is behaving weirdly. It doesn't always go in the direction it is supposed

c# - clone array of list of objects not working [duplicate]

I'm trying to clone array of list of objects. the clone modified when the original list modified (one of the properties of Page object). how d

i am receiving an error while returning `<IEnumerable<RiskValue>`.. ASP.NET [closed]

var result = JsonConvert.DeserializeObject<Risks>(jsonData); var finalResult = result.Value.Where(x => x.ID == 5).ToList

My C# WPF webscraper returns error when more than one result is found

I am working on a WPF XAML application that scrapes certain websites for products. I have the search part working and it finds what I'm looking for. But as soon

Performance of c# FileStream.Seek vs FileStream.ReadBytes. Why is the latter faster?

In my application I need to frequently move the position pointer of a file stream forward a small number of bytes. Experimentation with using FileStream.ReadByt

Is there any way to get Graph API event reminder through subscription?

We have multiple reminders like 5 minutes , 15 minutes and 30 minutes. We store them in our own database and send maximum time reminder with graph API create ev

Develop C# on Mac OS X Lion [closed]

Faced with the problem of programming on the Mac on the old version of the operating system Lion 10.7.5 in C#. Can anyone recommend an IDE tha

JetStream: How to make Push Subscription with Durable consumer? (i get "No interest")

I try to make Durable and Delivery consumer, but i get "No Interest" as result. It is "Active" When i create PushSubscribeOptions like this: PushSubscribeOption

How to translate this SQL into LINQ, with correlated subquery single table

The raw SQL uses correlated subquery for single table, any possibility to translate this with single LINQ Query? SELECT * From dbo.Products AS P1 WHERE SalePric