Category "c++sharp"

c# outlook addin - store data locally

Whenever an email is sent, I want someaction to be performed(we active this action by clicking some button that appears in the ribbon in the compose email windo

C# - Websocket - Sending Message Back To Client

I've been working on a C# Web Socket server for roughly 24 hours. I've currently figured out how to complete a handshake and get the connection initialized. Als

Trouble publishing ASP.NET project with Code First database to Azure - Permission

I cannot migrate my Code First database to Azure - Error hints at permission, but I can't figure out what's missing? I have created an empty SQL-database in Azu

Trouble publishing ASP.NET project with Code First database to Azure - Permission

I cannot migrate my Code First database to Azure - Error hints at permission, but I can't figure out what's missing? I have created an empty SQL-database in Azu

current code not extracting email headers for content-type

I use code from this link to get email headers from outlook. But, it is not extracting email body(content-type) correctly. Everything works fine. If you want

NuGet package is not being installed when reading from TFS

We are using Visual Studio 2019 and we have a solution that has a references to some NuGet packages either from nuget.org or from our private server we are mana

How to enforce same nuget package version across multiple c# projects?

I have a bunch of small C# projects which use a couple of NuGet packages. I'd like to be able to update version of a given package automatically. More then that

How to close inline response

I want to close current Inline Response to do some behaviors. I have try this function: OutlookApp.ActiveExplorer().ClearSelection() but it cannot work under C

Unity MLAPI ServerRPC not getting called

I'm implementing a system in which a player can pickup an item from the game world. After picking the item up, I want to destroy the game object. To do this, I

How to set HttpResponse to HttpResponseMessage in Web API

I have a asp.net web API application hosted using OWIN. The web API application uses an external library which depends on System.Web and writes its response on

What is reason for showing IWindowingPlatform is not registered error?

I am trying to develop an desktop application using Avalonia. In my application the main window is the login form, but actually I don't want to always show the

calling devcon from inside windows forms not working

Plan The plan is to disable and subsequently enable a device from inside a windows forms application. To test the first building block of my plan, I open cmd wi

How can i apply woff fonts in Azure for .NEt core app?

I ahve a .Net Core MVC app that uses DinkToPdf, which wraps libwkhtmltox.dll, to create PDF files from HTML. One of the fonts i am using is a .woff font and thi

When should I use ConcurrentDictionary and Dictionary?

I'm always confused on which one of these to pick. As I see it I use Dictionary over List if I want two data types as a Key and Value so I can easily find a val

Table 'tblCustomer' does not have the identity property. Cannot perform SET operation

Occurs when I try to set the identity_insert to ON in the SQL DATAMANAGEMENT STUDIO. The worst is I do not know why should I deal with this value, and I am not

Changing the parameter name Web Api model binding

I'm using Web API model binding to parse query parameters from a URL. For example, here is a model class: public class QueryParameters { [Required] pub

How to validate/sanitize an int so Checkmarx notices I validated/sanitized it

I have some code that retrieves numeric data from a source Checkmarx considers untrusted (a file under my control), which at some point I convert to a pair of i

Make NUnit fail on invalid test parameters

Say that we have the following unit test: [Test] public void OneAndOneTest(int one) { Assert.That(1 + one, Is.EqualTo(2)); } The compiler will accept this

During thread contention how can I speed up this ConcurrentQueue implementation which uses ReaderWriterLockSlim over a regular Queue<T>

Question: How can I implement a faster thread safe queue to support an object pool when under heavy thread contention? Scenario: My overall final objective is a

Get all emails in inbox .Net.Mail C#

I'm making a small program that can send emails and read emails. I can currently send emails however I'm not sure how I can access my inbox using .Net.Mail. Is