Category "c++sharp"

EF6:Parent context null inside same child query

My database contains below table in parent child relationships:- Gender->Audit->Request(All are in 1:N Relationships) I want to fetch all Genders with cor

MAPI_E_NO_ACCESS error setting RDOPstStore property

I'm attempting to set (actually clear) the PR_PST_PASSWORD property on a PST file using Redemption thusly: RDOSession session = new RDOSession(); RDOPstStore s

Request redirect to /Account/Login?ReturnUrl=%2f since the installation on server

I'm working with asp.net core 2.1, I launch the app on my local machine without any problem and I can debug it and open it on the browser but when I deploy it t

Unity Scripts edited in Visual studio don't provide autocomplete

When I want to edit C# Unity scripts, they open in Visual Studio. It is supposed to provide auto complete for all Unity related code, but it doesn't work. Here

IResult (from Asp) not found in standard 2.0 project

I created a DLL project targeting .net standard 2.0. With NuGet I added a reference to Microfosft.AspNetCore.Http. (2.2.2) I created this class: using System; u

Is it possible to switch Azure functions standard DI container for another?

Currently I am using DI in azure functions the standard way public class Startup : FunctionsStartup { public override void Configure(IFunctionsHostBuilder b

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