Category "c++sharp"

DataTables warning, Requested unknown parameter 'CustomerID' for row 0, column 0

I'm trying to implement datatables to my MVC ASP.NET Core with MySql project so i followed a step-by-step tutorial but i can't fix this error: " DataTables warn

Does a SQL connection close with "using" if the connection comes from a static class?

Am I closing my SQL connection correctly, by placing it inside a "using" block? This is how I grab a new connection, execute a query, and return the results:

ASP.NET Core Dependency Injection error: Unable to resolve service for type while attempting to activate

I created an .NET Core MVC application and use Dependency Injection and Repository Pattern to inject a repository to my controller. However, I am getting an err

Extent Reports won't provide the report for me

I'm trying to provide a report for a simple QA Method but the code wont generate any report for me, please help! namespace CasinoClubTests { [TestFixture]

Call a method on a dynamic object by name

I'm trying to create a "wrapper" around a dynamic object so I can keep method names on dynamic object matching the names of the methods in the wrapping class.

What is the best way to store some data in VSTO addin?

I have developed one outlook add-in, that has to be On or Off. to do that i have declared one static variable as shown below, ThisAddIn.cs public static bool

What SQL Error codes should be allowed to retry?

We have a SQL Server 2014 AlwaysOn Availability Group that we connect to via standard C# SqlConnection objects. We want to catch the exceptions that are happeni

How to Get the Index of ListView Row on Button Click

I am making a wpf Application and encountered a Problem. I have used a listview and added a Button in it via Xaml. <ListView x:Name="list_View" Grid.Colu

Oracle V$SESSION Machine is <ComputerName>\<ComputerName> instead of <Domain>/<ComputerName>

I've a strange behavior with oracle and it's seems it causes problem with Security Policies. When I look the V$Session table, some connection "MACHINE" are only

How to create SQL Server data backup file in Outlook Compatible format by C# code

I want to take backups of all emails from SQL Server database and need to create it's backup file using C# code in outlook compatible format. So that emails can

WSDL Endpoint configuration in .NET Core

I'm trying to work with WSDL using .NET core. Currently, I'm able to import the WSDL and the related files are generated: The structure is done in the right

Getting STA error when try to open OpenFileDialog box in Excel addin project

I have created Excel addin project using Visual Studio to insert a data into database. The problem is I'm unable to open a File upload box in this. I am getting

Asp.Net 5/Core app.UseExceptionHandler() not working

I have in startup (UPDATE: the solution was to move UseRouting under the /api/error routes) app.UseRouting(); if (env.IsDevelopment()) { app

Upload a file via POST using RestSharp

I'm trying to simulate a simple multipart HTML form in C#. I was successful posting text as parameters using the addParameter function. Now I want to upload a

Mapping relationships using PetaPoco paging

I am using PetaPoco v5.1.228.0 and I am trying to fetch a list of people along with the category they belong to, using paging (30 items per page). This is my c

IIS binding prefixes localhost

Is there a way to set up a binding in iis in the format of: website1.localhost:80 website2.localhost:80 website3.lcoalhost:80 etc I set the websites up to

How to use C# and Google.Cloud.Dialogflow.Cx.V3 to generate valid Google DialogFlow CX webhook response JSON

I've created a webhook using C# and ASP.NET Core in order to try to generate the webhook response to DialogFlow, but I'm really struggling with using Google.Clo

How to auto open a ComboBox when focused?

I have a Form which contains several ComboBoxes. I want one ComboBox of them to open the elements list when it gets the focus, both from keyboard and mouse. The

Unable to locate the .NET SDK as specified by global.json, please check that the specified version is installed

trying to start a .NET console application. Would prefer F# but get the same error in C# or VB as well. Unable to locate the .NET SDK as specified by global.jso

Your project does not reference ".NETFramework,Version=v4.6.2" framework. Add a reference to ".NETFramework,Version=v4.6.2" in the "TargetFrameworks"

I can't run my unit tests. I have the next error: Your project does not reference ".NETFramework,Version=v4.6.2" framework. Add a reference to ".NETFrame