Category "c++sharp"

How do you keep .NET XML parsers from expanding parameter entities in XML?

When I try and parse the xml below (with code below) I keep getting <sgml>&question;&signature;</sgml> expanded to <sgml>Why could

How to solve the error that prevents clickonce app to start

BACKGROUND: I'm having a problem with a ClickOnce WindowsForms NET 4.8 App that now is composed of a Solution with 2 projects. All began after auto generated ce

ASP.NET Web API Google OAuth keep return "Access Denied"

I need to integrate my ASP.NET Web API with Google and Facebook OAuth. I was following all the steps from https://bitoftech.net/2014/08/11/asp-net-web-api-2-ext

Displaying .ply Point Cloud in C# using Helix-Toolkit

I'm trying to create a Point Cloud from a .ply File which holds vertices (v x y z r g b) and their color recorded from a Kinect v2. What I've tried so far: At

How to change WPF Rectangle Style Programatically

[EDIT] *I had forgotten to include the Exception returned 'System.Windows.Style' is not a valid value for property 'Fill'* This is my first post, I've alread

Create EXCEL from html table using C#

I am trying to create an excel sheet for shipping products using C# and HTML table. The image shown below is my HTML as it looks in the browser. What I am tryin

How to delete an email account ( one added in Tools->Account Settings -> Email) through C#

I tried to delete the root folder associated with an email account using Outlook Namesapce's Remove Store method but it throws an error saying it is associated

RabbitMQ Sample not working in WPF

I'm trying to use rabbitMQ under a WPF application.I've followed the sample that are present on rabbitmq site. The sender is a console application that does

Why are numbers with many significant digits handled differently in C# and JavaScript?

If JavaScript's Number and C#'s double are specified the same (IEEE 754), why are numbers with many significant digits handled differently? var x = (long)123412

Set a custom "forwarded" message to Mail Item via VSTO Outlook 2013 Plugin

I am developing a VSTO Plugin for Outlook 2013 (or higher) that allows users to forward mail contents and sender/recipient data to some other program. The sendi

Swashbuckle and Web Api method with ModelBinder

I have a C# WebAPI project with a method that uses a custom ModelBinder for its input parameter. When I look at the Swagger UI that Swashbuckle generates, rathe

Download file with WebClient or HttpClient?

I am trying to download file from a URL and I have to choose between WebClient and HttpClient. I have referenced this article and several other articles on the

EF code-first can there be multiple entities in DbUpdateConcurrencyException.Entries?

We are using EF 6.x with RefactorThis.GraphDiff; so that a related entity-tree is saved/updated using EF. We have added RowVersion for each table to capture t

Need to retrieve images (Varbinary MAX) from SQL Server 2014 to Xamarin by using C#

I am new to the Xamarin platform, I have a local hosted database in SQL Server 2014 using php (with aid of XAMP server) and the table name ItemProductsDB and sa

Scaffold-DbContext failed to build, how do i resolve this issue on Nuget console?

I have installed all required packages for this command, when i try to run this command on my console its failed to build. Kindly please assist to resolve this

Where is the Bouncy Castle API documentation?

I need to do some cryptography based work, and I have found out Bouncy Castle API which is both available for C# and Java, for Java it has documentation, but it

Return Window handle by it's name / title

I can't solve this problem. I get an error: The name 'hWnd' does not exist in the current context It sounds very easy and probably is... sorry for asking so

Russia VAT Number validation

Does anyone have code to validate for validating Russian TAX Registration number (VAT). C# code will be great, but if someone have some other language it will b

System.ServiceModel not found in .NET Core project

I have a .NET Core xUnit project. I'm trying to call a WCF service from it but get the following exception: System.InvalidOperationException occurred HResul

Microsoft UI Automation/Get The Item That The User Clicks

I am trying to figure out what item (for example document, web page tab, window, picture, folder) the user has clicked on. I started by using the following code