Category "c++sharp"

Unable to verify checksum for avformat-58.dll

The following is a crash dump produced by my video streaming application written in .NET Core 3.1 with Windows Forms 32-bit. I'm trying to workout how to best i

returns 403(forbidden) when using authentication scheme in .net core

I am doing authentication in my web application with JWT Security Tokens and a custom authentication scheme. I'm generating tokens when a user login I created

Passing @Html.DisplayFor() - values from view to controller

I'm having these classes: public class ProductViewModel { public IEnumerable<Product> Products { get; set; } } public class Product { public in

ECDH with HKDF using c#

What is the best way to implement a elliptic curve diffie hellman using HKDF as key derivation function in windows using native windows functionallity. I couldn

How can i make dll.config to be part of Nuget package

Since dll.config is not supported by .NET and while creating nuget packages dll.config are not part of the package. Is there a way that i can have dll.config a

Save Mail in MIME format (*.eml) in Outlook Add-In

I want to write a little Outlook addin (C#), which saves a selected mail (MailItem) to disk in plain MIME format (.eml). The MailItem.SaveAs() method only allow

Does cross-platform C++ require building separately on every single platform?

My question actually has two variants, but for some context, I have a C++ *.DLL that I use with Unity using P/Invoke. It's built on Windows 10 with MSBuild (pla

Learning Mongodb and having a simple issue with MongoDB

I have the following C# code as I'm learning MongoDB but I get the following error even though this code is straight out of the mongodb documentation! Is there

ASP.NET Web API and OpenID Connect: how to get Access Token from Authorization Code

I try to get OpenID Connect running... A user of my Web API managed to get an Authorization Code of a OpenID Connect Provider. How am I supposed to pass this co

Designer View Disappeared (Visual Studios C#)

I am making a soundboard and I accidentally closed the design view tab for it. I pressed shift + f7 - nothing happened. I right clicked on forum1.cs in Solutio

Using the testing tools, need to write a function that makes the test cases pass for IndexOf with a string and a character

I have the test cases that my teacher wants us to implement using testing tools available in Visual Studio: str c Result ________________________ null

JSON.Net serializing Enums to strings in dictionaries by default - how to make it serialize to int?

Why does my serialized JSON end up as {"Gender":1,"Dictionary":{"Male":100,"Female":200}} i.e. why do the enums serialize to their value, but when they form th

DataTables warning, Requested unknown parameter 'CustomerID' for row 0, column 0

I'm trying to implement datatables to my MVC ASP.NET Core with MySql project so i followed a step-by-step tutorial but i can't fix this error: " DataTables warn

Does a SQL connection close with "using" if the connection comes from a static class?

Am I closing my SQL connection correctly, by placing it inside a "using" block? This is how I grab a new connection, execute a query, and return the results:

ASP.NET Core Dependency Injection error: Unable to resolve service for type while attempting to activate

I created an .NET Core MVC application and use Dependency Injection and Repository Pattern to inject a repository to my controller. However, I am getting an err

Extent Reports won't provide the report for me

I'm trying to provide a report for a simple QA Method but the code wont generate any report for me, please help! namespace CasinoClubTests { [TestFixture]

Call a method on a dynamic object by name

I'm trying to create a "wrapper" around a dynamic object so I can keep method names on dynamic object matching the names of the methods in the wrapping class.

What is the best way to store some data in VSTO addin?

I have developed one outlook add-in, that has to be On or Off. to do that i have declared one static variable as shown below, ThisAddIn.cs public static bool

What SQL Error codes should be allowed to retry?

We have a SQL Server 2014 AlwaysOn Availability Group that we connect to via standard C# SqlConnection objects. We want to catch the exceptions that are happeni

How to Get the Index of ListView Row on Button Click

I am making a wpf Application and encountered a Problem. I have used a listview and added a Button in it via Xaml. <ListView x:Name="list_View" Grid.Colu