Category "c++sharp"

403 Forbidden Error in Keycloak API (view-users)

I'm having issues trying to access auth/admin/realms/{realm-name}/users API. I've already tried everything from other questions and answers, but nothing seems t

Using ML.net with an ONNX model and GPU

How do you get Microsof.tML to run on an NVDIA GPU using C#? I followed the instructions https://github.com/dotnet/machinelearning/blob/master/docs/api-referen

How can we pass url parameter to rdl file?

I have a requirement to show the static text of my report in different language. Steps that I am following: Create a url with query string parameter with Cultu

How to use custom filter in Minimal Api .net 6.0?

After decoding the token generated in another application, I need to check for an expire. I used OnActionExecuting in web app but not working this method in min

How to read an excel file stored in Azure Storage as a Blob File

I want to read an excel file stored in an Azure Storage container as a Blob using Epplus package in C#. I have tried to do something with this code. string uri

Logging errors by serilog-timings at loglevel "Error"

I show my idea on the serilog-timing example. public static void Main(string[] args) { Log.Logger = new LoggerConfiguration() .Enrich.FromLogContext

Entity Framework Core 5 and CosmosDB SQL API - Include extension method does not work

I have followed the steps from the following EF Core 5 site in order to store and read items from the CosmosDB. Here is the site: https://www.learnentityframewo

Move multiple mails to a folder in a different store

I'm using Outlook Redemption library (http://www.dimastr.com/redemption/home.htm) for my Outlook AddIn. I want to move multiple mails from an exchange account t

ASP.NET Exception Error From SQL Server Windows Authentication Login

I have read and tried all the suggestions from [https://stackoverflow.com/questions/22415319/system-data-sqlclient-sqlexception-login-failed-for-user][3] But no

Unity "Multiple precompiled assemblies with the same name" using external dll

I have a "Shared" project where I share code between my client (unity) and my server (C# server) Both projects require Newtonsoft.Json.dll When I compile the Sh

Detecting navigation events blazor webassembly [closed]

How can I detect when URL is changed? I need the event (URL change event) to perform some specific action based on the URL.

In Blazor, how can I dynamically change an HTML tag?

Let's say I have the following markup in my Blazor component: <div @attributes=Attributes data-myattr="something"> @ChildContent </div> I'd lik

EFCore join values

I'm trying to join a big table to a small list of data pairs using EFCore 2.1.1. I want this join to happen server-side, rather than trying to download the who

How to change whole solution's project's name in Visual Studio?

I have ASP.NET CORE C# project. I want to change my solution name and whole project's name. For Example : OldSolution.OldName // this is Solution OldSoluti

Update build reference for test result in Azure DevOps REST API

I have an existing test result and I'd like to update the "Tested build" field for the test result if possible. I've looked at the REST API doc (https://docs.mi

How to avoid login with an empty password field in ASP.NET MVC 5?

I'm working on an ASP.NET MVC 5 project where I have created a customized login and registration page. The application is working fine, but the problem is I am

How to stop host or client in unity netcode?

When I disconnect my server and go to the menu scene, there comes two NetworkManager Objects but a they are implementing the Singleton pattern and it in itself

How could I get a parameter of an action from the ResultExecutingContext when using a Filter

I'm creating a custom result filter that implements IAsyncResultFilter interface. In this filter I need the actual value returned by the Action, but I also need

How can I add persistent data to a mail item so that it is not visible to the user

I have an Outlook add-in that collects data and processes it when the email is sent. Since the email may be saved and sent at a later date the data needs to be

Authorazation with JWT Token - How to get Authorized Automatically

I'm having a problem getting a user to be authorized. I'm making a web Api and in the controller where the login method is, it creates a token (JWT Token / Bear