Category "c++sharp"

Inheriting 2 base classes in .NET not possible?

So I am reading that in .net it is not possible to inherit a second base class. How then Can you create an object that serves 2 functions from 2 classes? For ex

How to play sound from .sf2 files in C#?

I'm trying to code a music composer app for my final year project in C# and I can't find any APIs or relevant code that can help me play sound from .sf2 files.

Missing cursors in WPF

Windows Forms has the cursor types Cursors.NoMoveHoriz, Cursors.NoMoveVert and Cursors.Default. These identifiers do not exist in WPF. Is there a way to obtain

Measure bandwidth usage of application using C#

My application uses two separate ethernet-based devices. Each device is assigned a static IP. I want to show the bandwidth usage by each device separately. The

C# ASP.NET Core DI with logging

I'm looking for DI solution for the following problem. I'm writing a custom SeriLog sync that requires a dependency from my serviceprovider. I can't seem to fig

OData Queries on Entities with Dynamic Fields

I am using OData on a dynamic model. The MyObject data is stored in two different ways on the database - in a main MyObject table and in a secondary table of ke

IOCelot Builder does not contain definition for AddAdministration

I'm using .Net core 6 and i get an error on the AddAdministration("/administration","secret") when trying to supports changing configuration during runtime on m

Can anyone tell me why my token API is returning null?

I have an API that returns some information. That API requires an access token. Problem is the JSON is always NULL. My var response and var content is always NU

WebView2 and MVVM in WPF - PostWebMessage

I have created a web application using angular and now I want to load it in a WPF application using WebView2 (not electron). That all works well. However, I als

Improve the build speed of Visual Studio -For Big Project

I have a large .NET project in C # that includes 78 library projects and one MVC project. Most of the projects are related and have been used in the MVC project

Why am I receiving 401 Unauthroized from CardPoint API when using test credentials

I am trying to test CardConnect's API, and whenever I make a request to https://fts.cardconnect.com:6443/rest/auth I receive an unauthorized response. I've trie

.NET6 calling oracle stored procedures with params and refcursor

First time I am using .net6 with entity framework trying to call stored procedure. CREATE OR REPLACE PROCEDURE get_registration ( IDIn IN Number DEFAULT nu

Introducing a new subclass to an established system using inheritance which violates the Liskov Substitution Principle

Question: are there any design principles other than the Liskov Substitution Principle to consider when introducing a subclass with a subset of existing base fu

Error deleting locked file on publishing a webservice over Visual Studio

I'd like to publish a webservice in visual studio 2022 over the context function "Publish..." to a remote server folder, on which internet information services

How Read File Path From a .dat file then open the program When Pressing The Launch Button?

I have a problem Where I cant make my program automatically read the given file path inside the .dat and be ready to launch the program when pressing launch fil

How to get RecurringJob from ElectStateContext?

I try to implement IElectStateFilter and get RecurringJobId for current job from context. Is it there a way to get RecurringJobId for BackgroundJob.Id from cont

unable to send an email after deployment of website using asp.net mvc 5

I am trying to send an email using asp.net MVC 5 I use the number of repositories for email it's working on local but after deployment, it's not working where I

MySql.Data.MySqlClient.MySqlException: 'GetBytes can only be called on binary or guid columns'

I'm developing an app in C# with .NET and MySQL database. I need to be able to insert and retrieve images in and out of the database and I have a column named '

Trying to connect to an FTP server from Azure App service

I am trying to upload/download some files from Azure VM directly through a Azure App service, but the app returns this error: System.Net.WebException: The remo

Apache Ignite C# Client Connection configuration for kubernetes

We are following the below article to establish C# client connection to the Ignite Cluster, both of them deployed in the Kubernetes. https://ignite.apache.org/d