Category "c++sharp"

Value does not fall within the expected range on async call?

I am reading data from SQL and writing that data on an excel sheet as the data is too large so I am using async call for writing the data in excel. The library

How can I open multiple browser instances in selenium in c#?

I want my program to open multiple browser instances at once and perform actions. But I ran into a problem, which is that all actions are performed in turn. I h

Unable to click Sign in button of Microsoft Login in C# Selenium

Trying to click Sign In button but getting "Stale element Exception error". IWebElement email = driver.FindElement(By.XPath("//*[contains(@name,'loginfmt')]"))

C# Saving list box items to Array upon button click

On a second form, I have 4 text boxes that when button click "ADD", items add to a single list box in this format Airport 1 Runway 1 Runway 2

Selenium / C# Challenge / Threaded / Multiple drivers for each tab on the same browser opened by Selenium

As a preamble: I have an Excel-VBA workbook which can open an IE browser, login to a website with username,password, set up half a dozen webpages in tabs, and i

Calling stored procedure on Inherited class in [Fluent] NHibernate without discriminators

I have a working Fluent project with some inherited tables class Base { int BaseId } class Derived : Base {} class Derived2 : Base {} class BaseMap : ClassMap&

Adding a DBContext to AWS Lambda causes it to hang

I am new to C# and Serverless development. I am trying to create an AWS Lambda that has an API Gateway trigger. When the Lambda triggers I want to write a User

PostgreSql and EntityFramework Unable to create an object of type

when I am trying to use this command dotnet ef migrations add InitialCreate I am getting error like : Unable to create an object of type 'BlogDbContext'. For th

415 unsupported media type error while trying to upload file from react to web api

I am new to react and web api and I am getting this unsupported media type error while trying to upload my file into my web api function Here is my react js co

Get average of sum of grouped values with LINQ

I have an IEnumerable with fields Name(string) and Amount(ulong). I want to get a single LINQ query to group those elements by Name and then get their sum and a

Remote Desktop - getting session information (id, session name, etc.) from client side

Let's consider the following scenario: take a Windows Server instance (2012 or newer), with multiple user accounts. Each of those accounts needs to run an indiv

Need help converting a custom shader to URP

For the last few days I've been following Sebastian Lague's videos about procedual generation. Since my project is based on URP and the custom shader responsibl

Mock gRPC Response Stream for unit testing - C#

I have a function that calls a gRPC endpoint, converts the objects into POCO objects and returns them as a list. public class ActionPlanConnectionsService : ICo

Coloring the first and last rows in a datagrid WPF C#

Can you guy tell me a great way of coloring the last row in a datagrid in WPF, I have to color the first and last rows, I found a way to do the first one by doi

How to print out documents on a list which is datasource of DGV C#

my app has a DataGridView where all selected files get listed and added to a class which is the datasource of the DGV. public partial class Form1 : Form {

Same type-name exists in both Aero and Aero2

I am updating several projects from .net framework 4.7.2 to .net6, using the excellent upgrade-assistant tool. Sometimes I get this error: Error CS0433 The ty

c# Firesharp - How to update a single value of an object?

I have a c# project and I'm trying to update a single value of an object using FireSharp. However, when I do, it deletes the other objects that are strings. tld

Filter List inside List Linq

I have list say list of customers and inside each list there is another list of orders Class Customer { int ID, string Name List<Order> orders } Class Or

I have problems connection to Soap with Authentication

i'm trying to connect my project to SoapUI with an authentication. I am connected to my WS but after reading lots of documents I can´t understand how to c

C# HiQ Html to PDF Performance Issue

I'm working on a reporting project in C# that uses Razor pages to generate HTML and HiQ to convert the HTML to PDF. It's been working just fine until we added a