Category "c++sharp"

Custom Tooltip on LineChart (lvChart)

I closely follow step-by-step lvChart Customizing Tooltips in trying to build a custom tooltip for LineChart points. But I get empty tooltip content. Other than

LINQ query returns error "The expected type was 'System.Int32' but the actual value was null."

So this is the query: from c in Contents join cs in DepartmentSharings on c.ContentId equals cs.ContentId select c.PrivateCategoryId.Value When I run this I

Could not load file or assembly 'Microsoft.IdentityModel.Protocols.WsFederation

I have a ASP.NET legacy project to which ADFS authentication needs to be added. So I did the same but when I run the application, I keep getting this error:

Cannot load System.Web.HttpContext error with razor pages and WebMail

I've been having trouble getting WebMail to work sending an email using a contact form using This Official Microsoft Tutorial. My current issue is that I'm get

XAML/MVVM help for implementing screen grid

As a complete beginner to XAML/MVVM I would like to request some help with implementing a 24x14 letter screen. The XAML implementation is quite easy I think wit

Best practice to handle concurrency in EF Core and ASP.NET Core?

Currently I'm doing the following when inserting/updating and entity: public async Task<IdentityResult> UpdateAsync(Model model, CancellationToken ct = de

Efficient long multiplication with double word result

I am trying to optimize the multiplication code of a 31.32 fixed-point math library written in C#. The (incorrect) pseudo code is: long result = (a * b) >&g

Trying to submit a payment, to a 3rd party payment gateway, through POST request :S

I am mimicing a user buying a product on a website: www.footlocker.dk. All that works fine, the HTTP session adds the product to cart, submits delivery informat

VS Code / OmniSharp - how to set path to dotnet SDK / CLI tools explicitly

I'm using Visual Studio Code. On my machine, I have two separate installations of the Net Core SDK / dotnet CLI tools; an outdated version (netcore 1.1) in the

What exactly is 'UseAuthentication()' for?

I have a question regarding authentication in ASP.NET Core 2: what exactly is the call app.UseAuthentication() for? Is it a basic prerequisite so that I can i

Visual Studio 2022 .razor code block is flickering

I am using Visual Studio 2022 Enterprise. While working with .razor files I have a strange flickering. Since a while my syntax highlighting is broken. As you ca

Is there any possibility for document paragraph-level tagging and filtering, e.g. by VBA or C#?

The MS Word document has the ability to mark tags at the file level, which can be used from Windows Explorer to make it easier to search for files by document&r

Retrieving a value in one class that is set in another

I hope you are all doing well. I've been having a small issue in a task for university, I have a variable in a class named Alpha where I want the value to be ch

C# - Get all environment variables in sorted order

I'm trying to get a sorted list of all environment variables for logging purpose using System.Environment.GetEnvironmentVariables() which returns an IDictionary

Unity fails to build due to IL2CPP

I made a archive of Unity for New 3DS, trying to use it myself tho it appears to give these errors even tho i have IL2CPP installed SETUP: Unity - 5.6.5f1 (New3

error 1503 the service didn't respond to the start or control request in a timely fashion

I have installed a Windows Service for my project, this error pop out when I start the service. error 1503 the service didn't respond to the start or contro

log4net in .NET core 6

I used to use .NET core 5, but now I'm trying to use .NET core 6, it seems the old Startup.cs is mixed now with Program.cs. The thing is that I'm trying to add

Entity Framework Database First .Net Core

I have a .Net Standard 2.0 class library project and I want to add Entity Framework to it. I have added the Entity Framework Core package to the project but no

Blazor PWA Inputfile and send it to API Server

I am working on a system composed of a Blazor PWA app and an API Server. A user should be able to upload a file (a simple text file) through an InputFile compon

Constructing an OpenXmlElement from bitmap picture to append into a Run instance

I have the following code: string replaceValueString = parameterValue.ToString(); Run replaceRun = new Run(); replaceRun.Append(new Text(replaceValueString)); c