Category "c++sharp"

VS 2022 debugging: Sometimes works, sometimes get "breakpoint cannot currently be hit, no symbols loaded..."

I have a .Net web project that I publish and then attach VS to w3wp.exe for debugging. I place breakpoints, load the specific web page being modified, and debu

How to find string's left , right, middle side in C#

I want to divide my NameSurname variable to take name and surname seperately. How can I use left, right methods for this? public ActionResult SearchPerson(strin

problems running vssadmin from c#

I am executing the following code from C# Process process = new Process { StartInfo = new ProcessStartInfo("cmd.exe", "/c vssadmin resize sh

Change colour of date picker in Android with possibility to have custom Splash screen as well

I am working on a project where I would like to have custom splash screen, however I would also like to have dark styled Android dialogs, that are corresponding

How to host ASP.NET C# page using Word object in a server which do not have MS Office?

When I try to create an instance of a COM class, it throws this exception: Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)) I h

Microsoft.Office.Interop.Word in .NET 6.0 - Change builtin document property

Using the Microsoft.Office.Interop.Word.Document interface in C# you can get/set the document's built-in properties (Author, Title, Subject, Creation date,...)

c# - Get TLS/SSL certificate from Azure App Serivce

I need help. I have the following code in C# and I need to get the expiration date of the TLS certificate of an App Serivce. I am obtaining the token without an

Razor components - cascading parameter values

How do you pass a reference to the parent RenderingFragment to the child component/content when creating a razor component in c# (NOT using .razor) ComponentBas

Issues with playfab leaderboard

Im having issues with PlayFab, What im trying to do is have the wave number recorded and sent off to the leaderboard when the game is over but I dont know how t

List nested folders in Google Cloud Storage Bucket in C#

Whats the best way to list nested folders in Google-Cloud-Storage bucket. I have a bucket in which first the year folder then months and days folder respectivel

Setting MauiSplashScreen tag on MyMauiProject.csproj with a mp4 file throw null exception from Resizetizer/SkiaSharpBitmapTools, looks hardcoded trash

Setting the MauiSplashScreen tag inside my net6.0 MyMauiProject.csproj pointing to a mp4 file makes it throw a null exception from Resizetizer/SkiaSharpBitmapTo

How to apply margin in Presentation Document using OpenXml

I wrote code to create Presentation Document using open-xml SDK. I follow this sample code. MSDD Sample Code. Now i need to apply margin before starting my text

How skip some migrations in ef core?

I had some changes in my ef context and I added new Migraions dotnet ef migrations add changed98112601 then I run the below command dotnet ef database upd

Callback or event/delegate from C# core rest api BackgroundService

I´m currently working on a C# core 5.0 REST API with a RabbitMQ messagebus. I´ve created a class that derives from BackgroundService and the consume

ASP.NET Core api controller not being instantiated

I've created an API controller in my .NET Core 3.1 application (with an Angular frontend, C#). For some strange reason its not being instantiated, if I try to c

Trying to setup HttpListener causes an exception, any ideas?

I'm trying to set up a HttpListener for a Server Manager for my Multiplayer Unity Game but I am getting an exception when executing the following code: using Sy

How do I access all XAML elements with a given tag in C# WPF?

In my XAML, I have various error messages in the following structure: <Border CornerRadius="3" Background="#FFF3C7C7" Margin="6" Visibility="Collapsed" N

Show an image stream to client in blazor server without javascript?

Right now i have the following lines of code: private async Task SetImageUsingStreamingAsync() { var imageStream = await GetImageStreamAsync(); var dotn

.NET Core 3.1 CreateHostBuilder Cannot parse JSON file

I am experiencing an error when trying to run my ASP.Net Core 3.1 project. The error is at CreateHostBuilder within Program.cs public class Program {

Dynamic container name when mapping Cosmos DB using EF Core

I have an OData endpoint which query collection of Cosmos entity. The Cosmos DB container name is dynamic so that I cannot use entity.ToContainer("<container