Category ".net"

What is the best practice to handle long external process in ASP.NET page?

An example will be something like: User clicks a button on a webpage I created with ASP.NET. My app calls an API hosted on a third party server. The user sees

Can we update the configurations from the advance section of the Azure portal programmatically?

I am trying to call an API multiple times with the change in the configuration files. Can we do the changes in the configuration files at runtime in the code be

.NET Worker Service: Failure processing application bundle, bundle header version compatibility check failed

I've developed a Worker Service in .NET (.NET 5) which runs successfully. I'm then publishing the application using the following publish command. dotnet publi

Is there any version of Selenium basic for .NET 4.8?

My workstation has only .NET framework 4.8 activated, and I have no admin priviledges to active .NET 3.5 in control panel. Is there any version of Selenium basi

Specifying cs file to build with dotnet CLI

Suppose I have two files in my current working directory: // file1.cs Console.WriteLine("file1"); //file 2.cs Console.WriteLine("file2"); In powershell, I do

How do i get code completion for C# scripts in VSCode for Unity on Linux/Ubuntu?

I recently came back to unity, as i found out that it does now support installation linux. It works, but when editing the scripts with vscode i do not get code

WinUI 3 runtime localization

I am developing WinUI 3 app, currently stuck with localization. Although I wrote separate resw resource files for different cultures and localized with x:Uid I

How can I pass a parameter to PDF rendering in ActiveReports 14?

I am implementing a .Net Core 3.1 REST API that needs to generate a PDF file for a given contract (the contract ID is known). I have adopted the following code

Visual studio 2022 crash on start debugging

Can anyone help me find why my visual studio 2022 crash everytime I start debugging? If I only run app it works fine. Also I have visual studio 2019 on the same

Does automapper support mapping collections with circular references?

I'm using automapper to map collections of incoming DTOs objects and save it all at once using Entity Framework. Everything works perfectly fine till I came acr

containing type does not implement interface 'IComponentConnector'

For some reason visual studio will not compile the below code. I am on .NET 6 WPF. Has there been any breaking changes that doesn't allow me to extend System.W

Create an expression dynamically to sort Linq to Entities ascending/descending based on a dynamically provided property name

Here is what I am trying to do. I have done a few simple expressions, but this one is a little too much for me right now. public static Expression<Func&l

Foreign key created in shadow and appending random 1 to column name - ASP:NET EF Core

When I migrate my new models and data I get the following error for multiple foreign keys: The foreign key property 'InsurancePolicy.InsuranceSubjectID1' was c

SAP Gui Scripting | .NET | Start transaction with parameters

I have the following script, which allows me to to control the SAP Gui with .NET (C#) SapROTWr.CSapROTWrapper sapROT = new SapROTWr.CSapROTWrapper(); object obj

Why does SonarCloud show that everything is fine?

I'm working on a c# .net6 project and I'm trying to integrate SonarCloud using GitHub Actions. I have a build and sonarcloud workflow that looks like this: name

Hovering over a DataGridViewComboBoxColumn in a WinForms app in Windows 11 turns cell black (OK in Windows 10)

When we run our application on Windows 11 the DataGridView control seems to act differently. Hovering over a cell in a DataGridViewComboBoxColumn turns the cell

How can I skip loop for first and last element of array and set them to constant value?

I would like the loop to start from the second element and to end before the last one. So that I can set the first and last one to constant value. for (int i =

How to autoincrement version number for a stand alone VB Class Library? (VS 2022, .NET 6)

I'm trying to design a REST API Service and Client that shares a common library (set of public classes that the Service and Client both reference). This common

how to make faster to foreach, search then update more than 100k data?

i have console app for background job. the app will do like this, get data from database for the location we can call table A(have 100k data) and place to varia

Where does .NET 6's System.Text.Json source generation store its code?

I have tried to implement Source Generation-based JSON serilization, based on MS Docs: How to use source generation in System.Text.Json. My code is as follows: