Category "c++sharp"

Moq verifies in debug and fails sometimes in run

I've developed a wpf-mvvm application that uses wmi to document what is built into a given Computer into a json file. I've used the mvvm model to develop the ap

Error Specified argument was out of the range of valid values. Parameter name: index in DataGridview Row Data Bound

I got an error of Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more i

Component attributes do not support complex content (mixed C# and markup)

I am trying to use a Razor argument and pass it into Blazor for further processing, but I get this error message "Component attributes do not support complex co

Newtonsoft Json Error converting value {null} to type 'System.Int32'

When performing an AJAX request I am getting the following error: Error converting value {null} to type 'System.Int32'. Path '[5].tabID', line 1, position 3

Compiler Error Message: CS0246: The type or namespace name 'Slider' could not be found

i have created image insert page form using ASP.NET and C# and getting error while running on my hosting server it shows below error , but it works fine on loca

How does Multiple Active Result Set (MARS) work in SQL Server?

Just wondering if someone could explain how Multiple Active Result Set (MARS) works in SQL Server as it is not very clear on the MSDN site. (A) On a MARS conn

Call custom constructor with Dapper?

I'm trying to use Dapper to interface with the ASP.NET SQL Membership Provider tables. I wrapped the SqlMembershipProvider class and added an additional method

Defining multiple Id columns using Marten?

I'm currently using the default Id implementation of Marten for this Object fe public class DbOBject { public string Id { get; set; } p

Why does C# encounter this error as to the CSC file?

I am pretty new in C# development and I have the following problem. When I try to build the application on which I am working I obtain the followings errors me

Expand recurrence data of Outlook appointment and get list of occurence dates.

Is there any way to expand recurrence pattern and get list of dates that recurrence will occur. Outlook.RecurrencePattern pattern = aitem.GetRecurrencePattern

c sharp exe should ask for "run as administrator" prompt when opened

I am having an exe generated by a c sharp program. when i run the exe, i want an UAC prompt to appear with an option to run the exe as administrator. I have see

OpenXml SDK PowerPoint Sunburst chart

The Sunburst chart type was introduced in Office 2016 / 365, along with some other new chart types. I'm trying to work with the chart type in PowerPoint, but it

Uncaught SyntaxError: Invalid regular expression [intlTelInput]

I am trying to use intl-tel-input in Asp.net core 6.0 razor pages Here is my Scripts $(document).ready(function(){ $('#tbxPhone').intlTelInput();

Proper way to detect if SQLCMD.exe is installed?

I am creating a class library that takes .SQL files as input (FileInfo) and a connection string. It then attempts to execute the sql file against the connectio

ASP.NET Core Web App Error: Some services are not able to be constructed

This is my first question in StackOverFlow Now, I'm using asp.net core 5.0 and I am trying to create database for Redis called Basket. But I encountered an Erro

Unity car steering

I am using Unity Car Pro for car physics. I want the car to slip during the steering. This script is working perfect but it is so real. Here are some images t

Unity C# finding GameObjects using tags

I am just starting out with Unity and C# and i am trying to make an enemy chase after the player. For the enemy to find and chase the player i am using the foll

Visual studio Intellisense color-coding not working

Right now in my code suddenly some part of the code is not color-coded to Visual Studio classic theme colors. I am not sure if there is some error in my code bu

Determine whether an IQueryable<T> has been ordered or not

Is there a way to know if an IQueryable<T> has been ordered (using OrderBy or OrderbyDescending)? So I know whether to call OrderBy or ThenBy on the coll

Make sure that the controller has a parameterless public constructor error

I have followed this tutorial which has worked great, until I modified my DbContext to have an additional constructor. I am now having issues with the resolutio