Category "c++sharp"

Could not load assembly 'CommonBaseData'. Ensure it is referenced by the startup project 'CommonBaseType'

I want create micro service architecture solution so I add some services for my solution. All my services must have one table in my database in there models so

System.Text.Json 6.0.2 Serialize error - trying to load System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1

We are using C# .Net Framework 4.7.2, JsonSerializer in System.Text.Json Version 6.0.2. Solution builds fine. We get a runtime error when Serializing: Could no

Why nullable value type assignment does not fail with "Converting null literal or possible null value to non-nullable type."

In C#10 I was trying to create a Result type that would have an error or a value (without going for monadic stuff). When trying to use it I was expecting a comp

Calling another EXE with C# on Windows fails on target machine

I have created a Windows shell extension that provides a menu to users when they right-click in File Explorer. This then invokes a small dialogue App. I'm a nov

Edit Datagrid in WPF

How I can provide ComboBox to a particular DataGrid Column in wpf when user tries to edit data grid . For example user can change the Operator at run time from

System.Data.SQLite.SQLiteException : SQL Logic Error

A Sqlite Database was created that consists on a persons FirstName and LastName.When the code is executed, System.Data.SQLite.SQLiteException: 'SQL logic error

Get data from a table after having closed the session

In this moment I´m try to get a List of users and checks if the user is in the BD or not I´m using Web API Net 6 and Sql Server This is the code

C#: Append text to text file between two lines

I have in a txt file the following: TOP: BOTTOM: I want to add between those lines strings adding also a newline. How can I do this? The end Result should be

Object reference not set to an instance of an object on c# EF6

Sometime I get this error message when i run my project in Hosting.There is no problem on the local server. Sometimes this error comes up on the server, sometim

Passing data between pages Xamarin Shell navigation

I have a Xamarin forms app with a form split across multiple pages, I want to pass the object data to the next or previous page. I am navigating using the Xamar

Why is my file downloading only when I click retry .net core

I'm trying to export data from database to an excel file and then download that file on client side. The export works fine but the problem is with the download

Program logic to calculate hexacode checksum?

I have a hexadecimal code for which I have to perform a checksum logic which will give me a checksum that will be added to the end of the Hexacode message and p

unity stop looking down after certain point

hi in my code I have some values I need to get, so far i already have a way to look up and down but I want it to stop after a certain point. I need to get the x

Delete messages from MSMQ queue without iterating on all messages

I have a cleanup method triggered by a timer and each time I verify if I reach or not the max size defined in a configuration file. The cleanup method will dele

Iterate through a list in C# MVC and access properties

I have created a view that accepts a ProjectsCreatorsVM class. This class has been structured this way: public class ProjectsCreatorsVM { public List<Pro

Omit last page on NUMPAGES Aspose .net

I'm looking for a solution in ASPOSE .Net to decrement the NUMPAGES. Reason is that I don't want to count the last page of the document. Here is what I tried so

C# XmlSerializer de-serialize abstract class without knowing concrete class

I would like to deserialize xml where the root class is an Abstract class but the root node in the xml has a value of the XML root attribute in the concrete cla

"Array dimensions exceeded supported range" when creating a dataframe

I'm getting this exception when trying to create a DataFrame with only 50 millions rows. Any ideas how to avoid this problem? [Exception] [JvmBridge] Array dime

How to manage nuget packages globally for all projects in a solution using Visual Studio 2022?

I have a solution created in .NET 6.0 using Visual Studio 2022 which has many projects. Each project has so many nuget package references in the .csproj file as

Visual Studio Extension Menu Group Visibility

Please go easy on me, I am new to Visual Studio Extension development, but inherited a sizable project. It targets VS2015-2019. Within it, I have a menu group (