11,763 questions with Developer technologies | C# tags

Sort by: Updated
1 answer One of the answers was accepted by the question author.

Could not load file or assembly ‘Microsoft.Data.Sqlite, Version=9.0.6.0 in .NET 10

Hi,   I have Console App I .NET 10 that reference to netstandard2.1:   This is the csproj: <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType>…

Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,763 questions
asked 2026-02-01T12:21:44.1633333+00:00
Y. Yakir 45 Reputation points
commented 2026-02-05T15:20:28.4233333+00:00
Y. Yakir 45 Reputation points
1 answer One of the answers was accepted by the question author.

STEP as in the universal file format

Hi, I'm exploring STEP as in the universal file format. I want to build Console App in .NET 10 on Windows , that convert from different CAD/CAM/CAE software for to STEP. What Microsoft or or other Tools can advise? Thanks in advance, This what Chat GPT…

Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,763 questions
asked 2026-02-03T06:56:07.43+00:00
Y. Yakir 45 Reputation points
commented 2026-02-05T15:18:37.5033333+00:00
Y. Yakir 45 Reputation points
1 answer

Bug -Move SharpCompress from 0.42.0 to 0.44.5 failed

Hi, I'm using Console App in .NET 10 reference to class library :netstandard2.1 as follow: <Project Sdk="Microsoft.NET.Sdk"> **<PropertyGroup>** **<TargetFramework>netstandard2.1</TargetFramework>** Before: After:…

Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,763 questions
asked 2026-02-03T14:22:27.25+00:00
Y. Yakir 45 Reputation points
commented 2026-02-05T15:14:47.46+00:00
Y. Yakir 45 Reputation points
2 answers

What is Best Practice for Passing a complex viewmodel from a View to the controller?

I have a view form with a complex VM, and it allows the end user to see dozens of data items in various text boxes (as many as 40). At some point, the user will want to update one or more of the textbox data points, so when the model is modified in the…

Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,763 questions
asked 2026-02-04T20:01:17.99+00:00
Corey Fleig 350 Reputation points
answered 2026-02-05T12:04:03.31+00:00
Surya Amrutha Vaishnavi Lanka (INFOSYS LIMITED) 1,725 Reputation points Microsoft External Staff
2 answers

Issue of Swagger, Postman

Hi, Further to https://learn.microsoft.com/en-us/answers/questions/5750852/issue-to-the-deployed-app How to check and ensure Swagger, Postman is functioning well? On the client, how to trigger that Swagger, Postman of the server?

Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,763 questions
asked 2026-02-03T04:28:19.02+00:00
Jonathan 40 Reputation points
commented 2026-02-05T10:26:55.6833333+00:00
Jack Dang (WICLOUD CORPORATION) 10,490 Reputation points Microsoft External Staff Moderator
4 answers One of the answers was accepted by the question author.

OpenAPI issue

Hi, Can you help it below? How to fix it? Originally I was with this error "The type or namespace name 'OpenApi' does not exist in the namespace 'Microsoft.AspNetCore' (are you missing an assembly reference?)"

Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,763 questions
asked 2026-02-03T14:23:41.73+00:00
Jonathan 40 Reputation points
accepted 2026-02-05T02:12:14.68+00:00
Jonathan 40 Reputation points
1 answer

Change the app icon based on the light/dark mode

In a .NET 9 MAUI application, I would like to change the app icon based on light or dark mode, based on the system. The icon of the application is an SVG image with a transparent background. Is there any example of documentation how to implement it?

Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,763 questions
asked 2025-08-20T06:15:40.3066667+00:00
Enrico Rossini 236 Reputation points
commented 2026-02-04T13:32:46.5133333+00:00
Frank Zwarthoed 0 Reputation points
1 answer

MemoryStream issue

Hi, Any better way to add the following to this?

Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,763 questions
asked 2026-01-28T06:52:52.33+00:00
Peter_1985 3,006 Reputation points
commented 2026-02-04T09:12:23.1633333+00:00
Adiba Khan 1,845 Reputation points Microsoft External Staff
1 answer One of the answers was accepted by the question author.

ASP.NET Gridview Header column not freezing properly

I'm using gridview with freezing header in ASP.NET application. But, freezing is not showing while running the application. what is the issue in the below code...? <%@ Page Language="C#" AutoEventWireup="true"…

Developer technologies | ASP.NET | Other
Developer technologies | ASP.NET | Other
A set of technologies in .NET for building web applications and web services. Miscellaneous topics that do not fit into specific categories.
3,646 questions
Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,763 questions
asked 2024-11-19T09:44:51.4+00:00
BeUnique 2,332 Reputation points
commented 2026-02-03T18:12:28.6933333+00:00
Kyle Lee 0 Reputation points
1 answer One of the answers was accepted by the question author.

Why am I getting System.Data.SqlTypes.SqlNullValueException?

I have a model (this code is greatly reduced): public class myClass { public DateTime? MyDate {get; set;} } and I have a database table with: create table myTable (somedate datetime null); insert into myTable select null; and I have a linq…

Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,763 questions
asked 2026-01-14T01:04:58.32+00:00
Corey Fleig 350 Reputation points
accepted 2026-02-03T17:50:27.59+00:00
Corey Fleig 350 Reputation points
2 answers

Byte alignment in C#

I found the following code online, although I had to refactor to support .NET 4. So nint was converted to IntPtr. The code seems to work fine with an alignment of 8, 16, and 32, but breaks down at 64. Any ideas? public static IntPtr ByteAlign(IntPtr…

Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,763 questions
asked 2026-01-31T23:36:49.72+00:00
Ken Netherland 21 Reputation points
answered 2026-02-03T04:46:32.51+00:00
Jack Dang (WICLOUD CORPORATION) 10,490 Reputation points Microsoft External Staff Moderator
2 answers One of the answers was accepted by the question author.

Incorrect result in two double variables subtraction (367721.22-159915.31)

While subtracting two double variables in C# code, it provides an incorrect result 367721.22-159915.31 = 207805.91 But in the application code level, it results 207805.90999999997 Note: I'm using .NetFramework 4.8

Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,763 questions
asked 2026-02-02T13:44:45.0233333+00:00
Ramu Kumaradas 20 Reputation points
accepted 2026-02-03T04:46:20.64+00:00
Ramu Kumaradas 20 Reputation points
2 answers

I found the following code online, although I had to refactor to support .NET 4. So nint was converted to IntPtr.

I found the following code online, although I had to refactor to support .NET 4. So nint was converted to IntPtr. The code seems to work fine with an alignment of 8, 16, and 32, but breaks down at 64. Any ideas? public static IntPtr…

Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,763 questions
asked 2026-01-31T23:39:00.8766667+00:00
Ken Netherland 21 Reputation points
answered 2026-02-03T04:42:45.0566667+00:00
Jack Dang (WICLOUD CORPORATION) 10,490 Reputation points Microsoft External Staff Moderator
3 answers

Issue to Web API

Hi, How to deploy Web API on the server and ensure it is able to process any concrete request from the client app?

Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,763 questions
asked 2026-01-22T04:14:57.0233333+00:00
Peter_1985 3,006 Reputation points
commented 2026-02-03T03:56:43.2466667+00:00
Gade Harika (INFOSYS LIMITED) 2,415 Reputation points Microsoft External Staff
2 answers One of the answers was accepted by the question author.

VSCode Installing C#

Hi, I am trying to setup C# in vscode on my 2013 macbook pro, which runs mac os 11 (latest update available for hardware). I can get a project setup and running with the terminal command "dotnet run" however am struggling to get any useful…

Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,763 questions
asked 2026-01-31T03:20:51.7766667+00:00
silver light 20 Reputation points
commented 2026-02-02T17:10:10.1233333+00:00
johni johni 0 Reputation points
1 answer

How to run a console application as a windows service

Hii, I'm currently using .NET Framework 4.8 for Console application, and there's requirement that requires the application to run as a console as well as a windows service. I used OnStart() and OnStop() for handling the start and stop function of the…

Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,763 questions
asked 2026-01-28T05:31:34.3033333+00:00
PRAKASH Ayush 0 Reputation points
commented 2026-02-02T09:27:48.3366667+00:00
Susmitha T (INFOSYS LIMITED) 2,360 Reputation points Microsoft External Staff
2 answers One of the answers was accepted by the question author.

How to use LINQ with 20 databases

The most basic way to connect to a database using LINQ is by building out the ApplicationDBContext class, and even adding a few more classes like it. But I need to select data from as much as 25 databases. In SQL it's easy: SELECT * FROM db1..Table1 join…

Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,763 questions
asked 2026-01-29T01:25:52.9366667+00:00
Corey Fleig 350 Reputation points
commented 2026-02-02T03:08:08.8633333+00:00
Jack Dang (WICLOUD CORPORATION) 10,490 Reputation points Microsoft External Staff Moderator
2 answers

MAUI - Youtube Video link error code 153

Hi, I have a MAUI app, where i am embedding a YouTube link in a webview. Recently it stopped working Error 153 Video player configuration error. Even changing referrerpolicy to strict-origin-when-cross-origin is not working. How to fix it? Any help…

Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,763 questions
asked 2026-01-30T07:32:32.6666667+00:00
Raja Shanmugam 20 Reputation points
commented 2026-02-01T19:59:32.68+00:00
Daniel VV 0 Reputation points
2 answers One of the answers was accepted by the question author.

Can anyone help me to learn the C# advanced concepts?

Hi Guys, I am having 4 yrs of experiencing on C#, since am getting stuck on advanced concepts. Can anyone help me to learn advanced C# concepts to improve my coding skills.

Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,763 questions
asked 2026-02-01T13:46:43+00:00
durga ravi 20 Reputation points
answered 2026-02-01T18:50:12.9166667+00:00
HARDCORE GAMES™ 190 Reputation points
4 answers

How to secure both Blazer server and api ?

Hello, I need an advice. I'd like to secure a blazor server app with individual user account. This functionality is embedded with the basic setup, and use cookies. But I also need to protect my web api with the same way. I know about the JWT, but I…

Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,763 questions
asked 2026-01-07T10:13:29.1533333+00:00
Laurent Guigon 331 Reputation points
commented 2026-01-30T10:13:39.3633333+00:00
Varsha Dundigalla(INFOSYS LIMITED) 4,580 Reputation points Microsoft External Staff