Category "c++sharp"

how to find mail that was send by MailItem.Display()

I have following requirement : Allow the user to drag & drop an email from outlook to a datagrid Prepare a reply mail, and show it so the user can review a

how to read local excel file using webapi?

public class ExcelParserController : ApiController { [HttpGet] public IEnumerable<string> Get(string templatePath) { ExcelParser excel

C# - Two-Factor Authentication (without ASP.NET Core Identity)

Is it possible to implement a two-factor authentication without use ASP.NET Core Identity? I have my own login table and everything works fine with login + pass

Edit fields of a configuration on another screen

I need help I want to edit a specific field that comes from another screen of a configuration. I've tried the way I know but it doesn't work. Could you tell me

Include all navigation properties using Reflection in generic repository using EF Core

I'm working on creating a generic repository for an EF Core project to avoid having to write CRUD for all models. A major roadblock I've hit is navigation prope

getting error 'must be placed inside a form tag with runat=server', but it is

I'm getting the above error message. However, the page in question does indeed have a tag with runat="server" attribute on it (at design time) and the control

.Net Core Dependency Injection inject out of constructor

I need to inject out of constructor, everything I declared in Setup. Ho can I do it ? How can I inject services out of constructor ? Something like Injector s

Adding pdfium.dll to visual studio

For the application that I am making, I need to make use of the Pdfiumviewer package, which in turn requires you to add Pdfium itself, which is made available b

PropertyAccessor SchemaName (Outlook MailItem attachment)

I'm trying to generate Outlook HTML-Mail with embedded image from my C# application. I've found out that I have to attach the image and referencing it in the HT

Sharing common database between .Net core and .Net standard Identity framework

I have old legacy MVC app that uses Identity 2.0. Also recently I have created .Net 6 API with Identity 6.0 (AspNetCore.Identity.EntityFrameworkCore). Note: The

Microsoft Spark - JVM method execution failed: Nonstatic method 'csv' failed for class

I try to save the result as one "csv" file on Windows Server 2019. I'm using the "Microsoft.Spark" library. An empty folder is created with no "csv" file. The q

Fresh ASP.NET Core API returns empty JSON objects

I have made a .NET Core Web API project to test it out. My problem is, that the API returns an empty JSON object, when I request the endpoint, which is locate

Sharing common database between .Net core and .Net standard Identity framework

I have old legacy MVC app that uses Identity 2.0. Also recently I have created .Net 6 API with Identity 6.0 (AspNetCore.Identity.EntityFrameworkCore). Note: The

the type or namespace name 'mixedreality' does not exist in the namespace 'microsoft' (are you missing an assembly refrence?)

I am currently developing an app for the Hololens 2 with Unity and mrtk. I am trying to get the Gaze direction from the GazeProvider.cs which is attached to the

GetExchangeUser() returns null when Outlook 2016 uses Cached Exchange Mode

Developing for: Outlook 2016 Add-In: VSTO (C#) My company is running on O365 (Exchange) and I am developing an add-in which collects their exchange user inform

How do I get a WinUI Control's parent Window?

I need to get a reference to the parent Microsoft.UI.Xaml.Window for a Control. Is there a way to do that in Project Reunion 0.5? Window.Current does not work i

How to forward/pass windows authentication from client to another REST API in an ASP.NET Core app with Angular?

I am currently implementing an ASP.NET Core app with Angular as described here. With the help I got in this question, I was already able to get the application

How to Configure Network Tracing Dotnet core for HttpClient calls?

As per reference document at https://docs.microsoft.com/en-us/dotnet/framework/network-programming/how-to-configure-network-tracing We can setup this in web.c

How to make rts camera smooth when zooming in Unity

right now I am trying to make rts camera zooming with panning when close to the ground. The problem I have now is that I use mouse scroll wheel for zooming and

How to Bulk Update records in Entity Framework?

I am trying to bulk update records using Entity Framework. I have tried Entity Framework.Extensions Update method. The Update method is able to bulk update for