11,805 questions with Developer technologies | C# tags

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

Problems Connecting to Webservice Visual Studio 2026

Hello everyone and thanks for the help in advance. I am upgrading a project to VS 2026 that utilizes connected services but am running into problems. Here is the WSDL <?xml version="1.0" encoding="UTF-8"?> <definitions…

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,805 questions
asked 2026-03-03T23:17:33.7266667+00:00
Kmcnet 1,376 Reputation points
accepted 2026-03-04T19:38:17.4633333+00:00
Kmcnet 1,376 Reputation points
2 answers

MSAL authentication_canceled exception in .NET MAUI even when using embedded webview

Hi, I am facing a recurring issue in a .NET MAUI Android application using MSAL 4.77.0 for Azure AD authentication. I am seeing frequent non-fatal exceptions in Crashlytics: Microsoft.Identity.Client.MsalClientException ErrorCode:…

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,805 questions
asked 2026-02-19T12:45:03.5+00:00
nandu kathmandi 31 Reputation points
commented 2026-03-04T09:03:36.0433333+00:00
Jack Dang (WICLOUD CORPORATION) 18,970 Reputation points Microsoft External Staff Moderator
2 answers

.NET SDK not installed

Screenshot 2026-02-11 220349.png I am developing an Avalonia application in VS Code and everything has worked just fine until last week, when I started getting this pop up. I have uninstalled, reinstalled, updated, repaired, and restarted numerous times…

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,805 questions
asked 2026-02-14T19:17:50.1033333+00:00
Patrick Loftis 5 Reputation points
commented 2026-03-03T09:17:03.6666667+00:00
Michael Le (WICLOUD CORPORATION) 11,330 Reputation points Microsoft External Staff Moderator
3 answers

How can I prompt the browser to save a password

How can I prompt the browser to save a password in my ASP MVC NET 10 web app that uses Cookies Authentication? I'm using Chrome Version 145.0.7632.110 (Official Build) (64-bit)

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,805 questions
asked 2026-02-19T10:00:25.45+00:00
Dondon510 261 Reputation points
commented 2026-03-03T09:01:49.9+00:00
Michael Le (WICLOUD CORPORATION) 11,330 Reputation points Microsoft External Staff Moderator
1 answer

MSBuild: Routing IO from <Exec> to calling terminal

I have a basic PowerShell script which I want to run after publish to copy the output files along with a few config files from source into the right directories on my company's storage server, archive old versions, etc. I created a target in my .csproj…

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,805 questions
asked 2026-02-19T17:42:30.23+00:00
pgf 0 Reputation points
commented 2026-03-03T09:01:05.2566667+00:00
Michael Le (WICLOUD CORPORATION) 11,330 Reputation points Microsoft External Staff Moderator
2 answers One of the answers was accepted by the question author.

add-migration throws error File web.dll not found. The startup project is where DbContext is. Web is the asp.net core project

Greetings, Ladies and Guys! So finally I found a tutorial of Razor Pages C#, with jQuery AJAX. The solution has 3 projects: Web (asp.net core razor pages app, here goes the config, such as connection string and some services), Core (Model and…

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,805 questions
asked 2026-02-25T05:02:08.6833333+00:00
Pablo The Tiger 186 Reputation points
commented 2026-03-02T06:08:34.66+00:00
Jack Dang (WICLOUD CORPORATION) 18,970 Reputation points Microsoft External Staff Moderator
2 answers

How to Enable/Disable Three- and four-finger touch gestures using C#?

Hi Everyone, Just want to ask if is there any C# code to enable/disable the Three- and four-finger touch gestures in Windows. Settings > Bluetooth & devices > Touch > Three- and four-finger touch gestures I have some options related to…

Windows for business | Windows Client for IT Pros | User experience | Other
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,805 questions
asked 2024-02-12T07:56:26.94+00:00
Kumar, Amit - Dell Team 0 Reputation points
commented 2026-02-24T10:51:01.8233333+00:00
j-hap 5 Reputation points
1 answer

Maui Android web handler

I am trying to create a webview handler for android in order to test calling a local web server with a self signed cert. I have seen numerous examples of how to create a client for WebView to capture the OnReceivedSslError methods but it is never…

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,805 questions
asked 2026-02-17T13:17:47.8833333+00:00
Jerry Bonetti 25 Reputation points
recommended 2026-02-23T04:23:17.25+00:00
Lynn Dang (WICLOUD CORPORATION) 0 Reputation points Microsoft External Staff Moderator
2 answers

WebView with remote url on windows not loading

I have a Maui WebView that is not loading on Windows when its dynamically loaded. If I create a webview with a url in source on the mainpage it works fine. But if I dynamically try to create a webview in c# deeper in the app, the url does not load and…

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,805 questions
asked 2026-02-19T01:48:56.38+00:00
Jerry Bonetti 25 Reputation points
recommended 2026-02-23T03:55:55.54+00:00
Lynn Dang (WICLOUD CORPORATION) 0 Reputation points Microsoft External Staff Moderator
4 answers One of the answers was accepted by the question author.

what is the best practice to change the element of IEnuerable?

I have IEnumerable<XY> and how to change all the elements in it? class XY { public int X{get;set;} public int Y{get;set;} } what I want is to adding 1 of the X I have to change it to array ? var arr=xys.ToArray(); for(int…

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,805 questions
asked 2026-02-08T09:34:15.7633333+00:00
mc 7,186 Reputation points
commented 2026-02-22T08:09:35.83+00:00
Viorel 127K Reputation points
5 answers

Visual Studio for Linux?

Since Microsoft & .NET Team is pushing so hard in the cross-platform solutions, will the Linux community see Visual Studio run on Linux? Since it is a great IDE with amazing tools, some of us are wondering will we see it on our preferred OS? I'm in…

Developer technologies | Visual Studio | Other
Developer technologies | Visual Studio | Other

A family of Microsoft suites of integrated development tools for building applications for Windows, the web, mobile devices and many other platforms. Miscellaneous topics that do not fit into specific categories.

5,781 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,805 questions
asked 2020-11-26T16:30:15.073+00:00
Viko 246 Reputation points
commented 2026-02-17T17:18:25.85+00:00
George Hendrickson 181 Reputation points
2 answers

C# SerialPort.Open hangs up for a long time when the serial port is not in correct status

Hello, I have a WPF application on Win10 which will select and open a serial port. I already know the serial port is in a status which can be listed but can not communicate normally. I try to open it use SerialPort.Open(), but the thread will just hang…

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,805 questions
asked 2026-02-10T07:26:52.27+00:00
Li Chu 0 Reputation points
commented 2026-02-17T11:57:38.2533333+00:00
Varsha Dundigalla(INFOSYS LIMITED) 5,025 Reputation points Microsoft External Staff
2 answers

Firebase Release Monitoring Not Updating for Android in .NET MAUI (net9.0)

Hello, I am working on a .NET MAUI (net9.0) project. For Android, I am using the following NuGet packages: <ItemGroup Condition="'$(TargetFramework)' == 'net9.0-android'"> <PackageReference…

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,805 questions
asked 2026-02-16T12:29:27.62+00:00
nandu kathmandi 31 Reputation points
commented 2026-02-17T10:42:17.36+00:00
Jack Dang (WICLOUD CORPORATION) 18,970 Reputation points Microsoft External Staff Moderator
6 answers

Issue to scan the file

Hi, It is not scanning all of the lines of the file using the codes below on VS 2026. Anything wrong? try { string[] fileEntries = Directory.GetFiles(directoryPath); foreach (string fileName in fileEntries) …

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,805 questions
asked 2026-01-10T07:57:47.4233333+00:00
Scott Huang 3,511 Reputation points
recommended 2026-02-16T08:02:32.47+00:00
Anonymous
2 answers

HttpRequest - POST request, response in C# with httprepl

Hello, I just want to send something and get the answer. What is not clear to me, I need to install Swagger? What do I want? I want to send something JSON object and return the response. Very much in a file. Response from server - JSON content…

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,805 questions
asked 2021-05-14T15:24:07.617+00:00
Markus Freitag 3,791 Reputation points
edited an answer 2026-02-14T22:07:09.0033333+00:00
Bruce (SqlWork.com) 84,171 Reputation points
2 answers One of the answers was accepted by the question author.

Executing Complex Stored Procedure with Entity Framework

Hello everyone and thanks for the help in advance. I want to execute a complex stored procedure using Entity Framework. The sproc accepts two parameters and returns either 0 or 1 depending on whether it was successful. I tried: var res =…

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,805 questions
asked 2026-02-13T18:28:34.4766667+00:00
Kmcnet 1,376 Reputation points
accepted 2026-02-14T01:29:31.0366667+00:00
Kmcnet 1,376 Reputation points
1 answer One of the answers was accepted by the question author.

Convert.FromBase64String decodes a non-multiple-of-4 Base64 string without throwing, and returns the same bytes as a canonical string (.NET Framework 4.5)

Environment: - .NET Framework 4.5 - C# Problem: According to Base64 rules, after removing whitespace the input length must be a multiple of 4. However, in .NET Framework 4.5, Convert.FromBase64String sometimes decodes a string whose length is NOT a…

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,805 questions
asked 2026-02-13T00:03:03.91+00:00
이용각 이용각 20 Reputation points
commented 2026-02-13T07:25:55.9333333+00:00
Jack Dang (WICLOUD CORPORATION) 18,970 Reputation points Microsoft External Staff Moderator
0 answers

Azure DevOps REST API - Why does it take so long to retrieve parent/children work items?

This is specific to Azure DevOps REST API library, but there are no tags for it I am creating a core MVC application to retrieve all Features and child PBIs from an Area Path and Iteration path. I am using the Get Work Item and Get Workitems Batch REST…

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,805 questions
Developer technologies | ASP.NET Core | Other
asked 2023-02-20T18:27:43.51+00:00
Timothy Fischer 121 Reputation points
commented 2026-02-12T19:53:06.0366667+00:00
Samuel Lima 25 Reputation points
2 answers One of the answers was accepted by the question author.

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,805 questions
asked 2026-02-04T20:01:17.99+00:00
Corey Fleig 510 Reputation points
accepted 2026-02-12T16:47:00.9333333+00:00
Corey Fleig 510 Reputation points
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,805 questions
asked 2026-01-22T04:14:57.0233333+00:00
Scott Huang 3,511 Reputation points
commented 2026-02-12T08:45:39.89+00:00
Scott Huang 3,511 Reputation points