Category "c++sharp"

MAPI Requests - Exchange Server (TCP/RPC) vs IMAP-Connection

I am currently developing an Outlook VSTO-AddIn using C#. I want to read certain attributes of each mailItem. (E.g. SenderName, SenderEmailAdress, etc. .. ) As

How to generate oauth_signature in C#

I'm trying to call an API which was associated with OAuth 1.0 version. From the postman wen I tried by passing the header param "Authorization" It's value is as

How do I reset the binding from my source (ViewModel) to the target (.xaml)

I have a ProfilePage.xaml containing some ImageButtons like these (six of them): <ImageButton x:Name="resultImage" Source="{Binding Profile.Images[0].Sou

UWP Xbox Live Leaderboards

I am trying to incorporate leaderboards into my UWP game. I am using C# and XAML to create my game. I have created a high score leaderboard and have pushed it w

C#: Problem receiving UDP packet from device connected via mobile hotspot

I'm having a problem with simple UDP packet receive from a device connected remotely via Windows mobile hotspot. The device (an esp32 wifi board) connects to th

How to overcome the IQueryable doesn't implement IAsyncQueryProvider while Mocking the FromSql() method?

I'm using the below link for mocking the FromSql method in x unit How could I Mock the FromSql() method? I'm getting the below error for the method which uses

C# streamwriter does not overwrite futher information [duplicate]

i'm working on a calculator project for my school. i have a problem with overwriting my operations to a text document, normally i should have

MSBuild ignoring /p:BuildProjectReferences=false on Azure build server

I've a solution with three projects in it: 2 C# WPF projects and 1 WIX project to create an installer. I've set up a build pipeline on Azure DevOps that referen

How to read an integer using console.readline()?

I'm a beginner who is learning .NET. I tried parsing my integer in console readline but it shows a format exception. My code: using System; namespace inputo

Export C# Project as .EXE file

I have a C# project in Visual Studio 2019 that I wish to export as a .EXE file. I have already run it in 'Release' Mode, but no .exe turns up in the 'bin' folde

Visual Studio Code doesn't format C# code

I created a new file, set the C# language, and wrote some code. Then I pressed Ctrl + Shift + F (or F1 → Format Document). And got I the error Sorry, b

c# VSTO How to save email in ActiveInlineResponse

I have simple problem, but dont know how to figure out. My VSTO addon use Outlook for create new email. But email which user fill in the Application Outlook isn

Does not contain definition for "HasDefaultValue"

I want to set a default value for a non nullable field in code first. I have included Microsoft.EntityFrameworkCore but I'm still getting Does not contain

C# how to call an as 400 stored procedure using oledb

Hi I am trying to call an as400 stored procedure using OleDB. Could you please post an example of how to do it cause I've been following some tutorials but not

A proper way to handle WCF network related exceptions

In the application I"m working with, there is some communication with the remote service using WCF (basic http binding, no fancy stuff). Since the client is lig

Owin app with WsFederation authentication stuck in infinite redirect loop

I have an Owin app that uses Ws-Federation authentication with a SSO application (not ADFS). Whenever my Owin app receives a request, it authenticates the user

Marshaling complex C structs with c unions for C#

i am desperate to get a complex c datatype correctly marshaled for C#. I already read all the other posts regarding that topic and i am running out of ideas alt

how to set OpenSavePidMRUl default value using C#?

I have an application and I don't have access to source code. In the application, I open a OpenFileDialog to select an xml file. So, for an automation script, I

ObservableCollection count resets to 0 from second function call in Xamarin forms app

There is a Dependency class in android that has these two functions 1. public void OnEvent(Java.Lang.Object obj, FirebaseFirestoreException error) { try

C# Blazor: Countdown Timer

I'm new to C# and trying to create a simple countdown timer using System.Timer.Timers. It didn't work as expected and I searched the internet for a solution but