Category "c++sharp"

How to place multiple spatial anchors and set up path finding in Unity for HoloLens?

I want to place multiple azure anchors and set up pathfinding (like destination point ). I followed the (https://docs.microsoft.com/en-us/azure/spatial-anchors/

notification does not implement $INotification C#

I have a multi-tenancy project using mediator and CQRS, for some reason my CRUD from order request are returning this error, I already try refactor my handler s

How to test database methods and get code coverage xUnit ASP.NET

I initially used the Moq library for testing, since I don't actually want to mess the data in my database. However, I quickly realized instead of running the co

How to send / receive message between chrome extension native messaging and c# app

i'm newbie with chrome extension so i need to developing chrome extension by using native messaging to communication message with c#.exe application Now proble

Toast equivalent for Xamarin Forms

Is there any way using Xamarin Forms (not Android or iOS specific) to have a pop-up, like Android does with Toast, that needs no user interaction and goes away

Microsoft.Playwright.PlaywrightException:Connection closed (connection disposed) - getting this error using PoM Playwright c#, Visual studio 2022

public async Task Test2() { //IPage page=null; LoginPage lpage = new LoginPage(); IPage page = await IPage.loginToApllication("john", "admin", "<&

use C# connector to insert Chinese into TDengine 2.4.0.16 but got Illegal byte sequence

use TDengine.Query(conn, commandText); It returned intPrt value is not 0, TDengine.Error() show Illegal byte sequence anyone know how to resolve?

Could load a file or assembly "Renci.SshNet.dll"

Issue : System.IO.FileNotFoundException: Could not load file or assembly 'Renci.SshNet, Version=2014.4.6.0, Culture=neutral, PublicKeyToken=1cee9f8bde3d

Using .StartsWith in a Switch statement?

I'm working on a Switch statement and with two of the conditions I need to see if the values start with a specific value. The Switch statement does like this. T

How to show a pop up message with dark background

I'm going to show a error message in my program . I'd like my messages to be like image below, as you can see, I need a dark shadow to be shown when message

Does .Net contain a built in Line Endings conversion which checking input format [duplicate]

I'm getting a string from an external native library function which uses "\n" for line separation. I simply want to write this to disk using t

WPF nested data binding to control - why does it not work

I have searched google and stackoverflow alot to find a answer to my question without any luck. I find the solution to the problem. Ex: Data Binding to Nested

Request.Content.IsMimeMultipartContent() fails

I'm trying to upload a file using the Html2 input type="file" and an angular2 http.post request. When the request reaches the web api, it fails in the Request

Create empty array using reflection [duplicate]

How do I create empty array of a type given by reflection? I have tried using the Activator.CreateInstance(Type) method: Type arrayType = typ

SSIS using Script task - Convert XLS to CSV

I am using C# script task component to convert XLS to CSV file , my entry point is set to ScriptMain But I am constantly getting error "Error: Cannot execute s

Forming Json Format String

I am using this method to form json string and this is working fine. But i can't handle this if it contains more properties. Is there any other better method th

How do I check for overflow after an Interlocked.Increment in C#?

What is the correct way to check for an overflow after a call to Interlocked.Increment? I have an ID generator that generates unique ids during the program's ex

While loop program flow

I'm having trouble with my program flow in a while loop I created. while (reader.Read()) { // Store scenario information int Id = (int)reader["Scenario

RestSharp - Authorization Header not coming across to WCF REST service

I am trying to call a locally hosted WCF REST service over HTTPS with basic auth. This works and the Authorization header comes thru just fine and all is happy

How to get a duration of mp3 file via .NET/C#? [closed]

I need to create a M3U playlist of mp3 songs. Is there any way to read the duration attribute of MP3 files?