Category "c++sharp"

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 (

Extending or override GetRolesAsync method in Asp.net Identity

Im using Asp.net Identity V2 on MVC 5 project. Due to the nature of project , im trying to get List Of Custome Model instead of String List from GetRolesAsync p

How to position the image at the side edges of the screen?

I want to place the image at the edges of the page so that it perfectly touches the left and right sides with the edges. that's what it looks like now: https://

How to position the image at the side edges of the screen?

I want to place the image at the edges of the page so that it perfectly touches the left and right sides with the edges. that's what it looks like now: https://

How to position the image at the side edges of the screen?

I want to place the image at the edges of the page so that it perfectly touches the left and right sides with the edges. that's what it looks like now: https://

How to position the image at the side edges of the screen?

I want to place the image at the edges of the page so that it perfectly touches the left and right sides with the edges. that's what it looks like now: https://