Category "c++sharp"

Redis cache InvalidOperationException: Reading is not allowed after reader was completed

I have one webjob that is continously inserting data into redis I have another time trigger function to read data from the same redis cache after every 5 minute

How to solve Dependency injection and Inconsistent accessibility parameter type '' in .Net 3 Worker service?

I am setting a .Net core worker services that will get some data from the database and pass that to an endpoints. So I am trying to set it up base on my .net MV

Adding dynamically a DbSet<TEntity> in DbContext class

Is there a way to add DbSet<TEntity> Property in DbContext class at runtime without passing through OnModelCreating ?

How to remove the file path from the Code Runner (VSCode extension) run command for C#?

When using the VSCode extension Code Runner for my C# .NET 6 console app, after hitting the run button, the following command runs in the terminal: ❯ do

how to get the settings.job file added in Azure Web Job created out of .net 5 console APP

I have created a seetings.job file like below pasted one, not sure how it is from the solution. This is for Azure Web job created out of Azure web job SDK. This

How to solve the infinite loop in reportviewer? winforms

I am working with reportviewer in visual studio 2010, but when I open the report for the first time the data loads correctly, but when I change to another repor

how to get the settings.job file added in Azure Web Job created out of .net 5 console APP

I have created a seetings.job file like below pasted one, not sure how it is from the solution. This is for Azure Web job created out of Azure web job SDK. This

Wallet file not specified (must request wallet RPC through /wallet/<filename> uri-path). error when backuping wallet using BitcoinLib in C#

I'm currently working on a little program for backing up your Bitcoin Core wallet. I am using BitcoinLib v1.15.0 in C#. IBitcoinService bitcoinService = new Bit

SAP B1 studio for ms visual studio 2019

How can install the SAP Business One Add-On Project template in Visual Studio 2019? I need to build a Add-On with C# but I don't know how to the templates or wi

Publish error: Found multiple publish output files with the same relative path

When I publish my ABP project I get the following error: C:\Program Files\dotnet\sdk\6.0.100-rc.1.21458.32\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Conflict

Migrating log4net config to .NET 6 - XmlHierarchyConfigurator error and logs not being sent to SQL server

Trying to migrate this log4net.config from a .NET Framework solution which had it placed in Web.config, but I am getting a XmlHierarchyConfigurator error in .NE

Get the very last part of a Url to use in a ternary operator

I've very new to C# and I'm using ASP.NET 6. On a .cshtml Razor page I'm trying to use a ternary operator to fill in a HTML element class based on the very las

C# with Iron python Error: Microsoft.Scripting.SyntaxErrorException: 'unexpected token 'from''

I'm trying to execute a python file in c#. But I'm getting an error when I'm trying to execute the python file. The error is Microsoft.Scripting.SyntaxErrorExce

Hebrew characters are printed in reverse order in iText 7

I'm using iText 7 for printing some text in List (in Hebrew) to PDF file, but while printing the Hebrew characters are printed in a reverse way. The input given

How to enumerate all possible keys that exist on a smartcard that is present in a reader with just UWP APIs?

Here are the constraints for my question: How to enumerate all possible keys that exist on a smartcard that is present in a reader with UWP APIs? Use just Unive

ASP.NET Core CSS Isolation with Webpack

My ASP.NET Core RazorPages project uses Webpack. I also want to use CSS Isolation. Every RazorPage Foo.cshtml has an associated css file Foo.cshtml.css. These

Visual Studio 2019 create NuGet package that includes NetStandard and updates web.config

Recently, I created a NuGet package in Visual Studio 2019 by following the steps here to create the package using the "Pack" command. The problem is when I tri

React Native run-windows error microsoft.ui.xaml.winmd not found

midlrt : error MIDL1001: [msg]cannot open input file [context]Error opening or processing WinMD d:\Desktop\projects\plenusbusiness\windows\packages\microsoft.ui

How to configure NewtonsoftJson with MinimalApi in .NET 6.0

I have net6.0 project with minimal api and I would like to use NetwtonsoftJson instead of built in System.Text.Json library for serialization and deserializatio

Sign error for bybit using c# when sending post request

I am trying to send a simple post request to the bybit api and I keep getting the 10004 sign error. Here is the response: {"ret_code":10004,"ret_msg":"error sig