Category "c++sharp"

How to defend app and system from uploaded C# code

Currently, I have the WEB API that will check uploaded code from the client and run it. It is the platform for testing. For example, there is a test for users:

Trouble inserting values into SQL table, values get mistaken for columns

I keep getting an exception that reads: "Invalid Column Name, 'IBM'." The error is happening at: "' + @ticker + '" even though @ticker is declared in VALUES.

Why doesn't my csc.exe compiled code accept a documented String.Split overload?

I'm using an overload of String.Split that the docs says is a valid overload (string, then StringSplitOptions). string separatingString = "<<"; string tex

Can I use EnvDTE and VisualStudio.SDK in a .Net 6 project?

With VisualStudio 2019, I used to be able to use EnvDTE80 that comes with VS2019 installation. It worked fine within my .Net 3.1 project. Then I upgraded my pro

firebase remote config. fetching failure: http code 403 unity

I started getting 403 errors when initializing remote config in my application. Everything was working fine until a while ago. I connected google play services

Add Integer Data Type in Multipart Form Content C# MVC

using (var multipartFormContent = new MultipartFormDataContent()) { HttpClient httpClient = new HttpClient(); multipartFormContent.Add(

Where does .NET 6's System.Text.Json source generation store its code?

I have tried to implement Source Generation-based JSON serilization, based on MS Docs: How to use source generation in System.Text.Json. My code is as follows:

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