11,709 questions with Developer technologies | C# tags

Sort by: Updated
1 answer

Documentation for c# Database Queries

I might be confused about this: I prefer to code DB querying in the standard EF Core manner, without specifically using LINQ syntax. For example, var myvar = context.MyTable.Where(p => p.ID == wID); But if this style is in fact LINQ, then I'll cancel…

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,709 questions
asked 2025-12-15T17:47:14.1666667+00:00
Corey Fleig 185 Reputation points
edited the question 2025-12-15T17:56:01.74+00:00
Corey Fleig 185 Reputation points
1 answer

GIS - Convert from one format to any formats.

Hi, 1.In continue to: https://learn.microsoft.com/en-us/answers/questions/5657151/gis-trycreateforinput In this ticket the output was the selected converter. Now the focus on the converter. 2.List of GIS converters: EsriJson (.esrijson, .json) GeoJson…

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,709 questions
asked 2025-12-12T10:13:08.8933333+00:00
Dani_S 4,896 Reputation points
commented 2025-12-15T15:30:45.7733333+00:00
Dani_S 4,896 Reputation points
1 answer

GIS CLI commands

Hi, I would like to ask the following questions regarding my GIS CLI command in program file. The GIS CLI commands used once by end-user. 1.Does the ShowHelp method is a good practice in CLI if not please fix. I used in this case to show it: // If no…

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,709 questions
asked 2025-12-12T11:02:22.9333333+00:00
Dani_S 4,896 Reputation points
commented 2025-12-15T14:40:38.58+00:00
Dani_S 4,896 Reputation points
2 answers

ViewComponent exception handling

Hi, What is the correct way to handle exceptions in a view component? I would like the user to end up being redirected to an error page. My ViewComponent looks like this : public async Task<IViewComponentResult> InvokeAsync() { …

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,709 questions
asked 2025-12-13T18:28:55.8233333+00:00
Michael P 20 Reputation points
answered 2025-12-15T13:23:13.74+00:00
Surya Amrutha Vaishnavi Lanka (INFOSYS LIMITED) 1,205 Reputation points Microsoft External Staff
1 answer One of the answers was accepted by the question author.

GIS - TryCreateForInput

Hi, 1.I used GIS API . 2.There are 15 formats: EsriJson GeoJson GeoJsonSeq Kml/Kmz Shapefile OsmXml Gpx Gml FileGdb TopoJson MapInfoInterchange MapInfoTab Csv GeoPackage. 3.This is my main function: TryCreateForInput that gisInputFilePath-Path to 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,709 questions
asked 2025-12-11T17:53:15.8566667+00:00
Dani_S 4,896 Reputation points
commented 2025-12-15T12:12:18.4833333+00:00
Dani_S 4,896 Reputation points
2 answers

Connect .Net (4.6.2) to Dataverse using the Dataverse plugin

Hi Microsoft Tech Community, We have a Dataverse environment in our tenant, and I have its URL. I'm building a .NET application and need to connect it to Dataverse for data access. From the Learn docs, ChatGPT, and Copilot, it seems I need to use an 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,709 questions
asked 2025-12-09T07:21:59.17+00:00
Ajay Mahajan 0 Reputation points
commented 2025-12-15T11:06:19.37+00:00
Varsha Dundigalla(INFOSYS LIMITED) 3,960 Reputation points Microsoft External Staff
2 answers One of the answers was accepted by the question author.

redirect using HttpContextAccessor

Hi, I am trying to redirect to my login page on a condition using IHttpContextAccessor. Here is my code : if (condition) { _signInManager.SignOutAsync(); …

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,709 questions
asked 2025-12-12T12:46:40.74+00:00
Michael P 20 Reputation points
commented 2025-12-15T10:59:57.01+00:00
Varsha Dundigalla(INFOSYS LIMITED) 3,960 Reputation points Microsoft External Staff
2 answers

Run MAUI app

Hi, After having well built one MAUI app, how to run/test 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,709 questions
asked 2025-12-09T05:06:29.3266667+00:00
Peter_1985 2,866 Reputation points
commented 2025-12-15T09:05:33.3+00:00
Michael Le (WICLOUD CORPORATION) 6,420 Reputation points Microsoft External Staff Moderator
2 answers

Architecture Programming

I need help. I’ve been programming for five years, but I still know I have a fundamental issue. Since I started learning, I’ve worked through books, Microsoft training materials, and trial and error, and I’ve solved many things, but I still don’t know…

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,709 questions
asked 2025-12-13T09:48:48.95+00:00
Bardia 0 Reputation points
answered 2025-12-15T07:28:21.27+00:00
Gade Harika (INFOSYS LIMITED) 2,175 Reputation points Microsoft External Staff
2 answers

False positive in CA2000

CA2000 (“Dispose objects before leaving scope”) is warning because the ContainerControlledLifetimeManager(2nd line) you construct is not disposed in the method’s scope. In Unity, the container owns lifetime managers and will dispose them when 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,709 questions
asked 2025-12-05T10:09:08.5866667+00:00
K C, Soniya 21 Reputation points
commented 2025-12-15T07:21:32.5033333+00:00
Adiba Khan 1,520 Reputation points Microsoft External Staff
1 answer

Moving to .Net 10

Hi, 1,My solution is consists of following projects: a. Console App project in .NET 9. b. Class Library project - netstandard2.0 . c. WPF App project - in .NET 9. d. XUnit Tests project -in .NET 9. I'm using VS 2026. 3.I want to move to .NET 10 : 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,709 questions
asked 2025-12-15T05:11:42.6066667+00:00
Dani_S 4,896 Reputation points
commented 2025-12-15T06:54:10.8166667+00:00
Dani_S 4,896 Reputation points
1 answer One of the answers was accepted by the question author.

Why the buttons blocks themselves?

I have a Xamarin App and when I press fast the buttons on a form they chance the color (more dark and 3D) and don't respond no longer. The problem is that they block the entire App. How can I can solve this problem? In normal use this fact does not…

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,709 questions
asked 2025-12-15T02:04:32.48+00:00
Paolo Mossa 221 Reputation points
accepted 2025-12-15T02:55:55.8233333+00:00
Paolo Mossa 221 Reputation points
4 answers

Issue with Teams Bot: Incoming Call Event Not Reaching Bot (App-Hosted Media Sample)

I am developing a Microsoft Teams bot that should be able to join a call initiated from a Teams user. The goal is that when a user places a call to the bot inside Teams, the bot should join the call and handle the audio stream as described in Microsoft’s…

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,709 questions
asked 2025-12-01T21:23:48.1766667+00:00
Chandan 5 Reputation points
commented 2025-12-12T14:53:42.79+00:00
Varsha Dundigalla(INFOSYS LIMITED) 3,960 Reputation points Microsoft External Staff
2 answers One of the answers was accepted by the question author.

How do I configure Yarp to allow querying string parameters in the request URL .Net Aspire?

I have the following original request URL: http://localhost:5002/UploadedFiles/387324e2-e0b4-43e8-b53f-d48e70fb42f2.jpg When using the NextJs Image component, it automatically adds the following query strings:…

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,709 questions
asked 2025-12-10T11:30:24.8066667+00:00
Hoài Nam Nguyễn 61 Reputation points
commented 2025-12-12T14:50:14.81+00:00
Varsha Dundigalla(INFOSYS LIMITED) 3,960 Reputation points Microsoft External Staff
1 answer

Update/Set SignatureHTML with ExchangeService for Office 365 Users

Hello, Could you please confirm if the code below is not working? If so, I need guidance on how to change the OWA user signature globally, as we plan to reflect the company branding for all users. The OWAConfig does not include any key related to user's…

Exchange Online
Exchange Online
A cloud-based service included in Microsoft 365, delivering scalable messaging and collaboration features with simplified management and automatic updates.
6,816 questions
Microsoft Security | Microsoft Graph
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,709 questions
asked 2024-04-18T23:50:59.3966667+00:00
Akmal Eldahdouh 0 Reputation points
commented 2025-12-12T10:32:17.9333333+00:00
C. I. Nilsson 6 Reputation points
1 answer One of the answers was accepted by the question author.

How to access a 32-bit COM dll from a 64-bit C# application?

I'm updating a WPF application that's written in C#. My development environment is Visual Studio 2023. The application currently uses .NET Framework 4.6.1, but I'm hoping to upgrade to a more modern version of .NET as part of the update. 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,709 questions
asked 2025-12-09T17:52:10.66+00:00
James Allen 40 Reputation points
accepted 2025-12-12T10:02:15.9266667+00:00
James Allen 40 Reputation points
1 answer

Retry required for GetGattServicesAsync() when connecting to BLE peripheral using LE privacy.

When getting GATT services from a paired peripheral using LE privacy, the first call to GetGattServicesAsync() always times out after 7 seconds with a status of 'Unreachable'. Our current workarounds we've identified are to (1) scan for a device…

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,709 questions
asked 2025-06-02T18:40:24.9566667+00:00
Garin Marlow 0 Reputation points
commented 2025-12-12T08:13:51.3+00:00
Surya Amrutha Vaishnavi Lanka (INFOSYS LIMITED) 1,205 Reputation points Microsoft External Staff
2 answers

How can i improve this script to make it better?

Add-Type -AssemblyName System.Windows.Forms $dictDialog = New-Object System.Windows.Forms.OpenFileDialog $dictDialog.Title = "Select dictionary.txt" $dictDialog.Filter = "All files (.)|." $null =…

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,709 questions
asked 2025-11-07T05:46:07.9166667+00:00
DEREK CHUA 0 Reputation points
commented 2025-12-12T06:22:40.78+00:00
Adiba Khan 1,520 Reputation points Microsoft External Staff
2 answers One of the answers was accepted by the question author.

IOS MAUI .net "9.0" System.Data.Sqlite does not work and give Exception = e_Sqlite3

SQLite in MAUI App not working on iOS. I need to use System.Data.Sqlite for low level db operations. But I was unable to Open connection on IOS simulator. I tried every combination of SqlitePCLRaw libraries and below is my current packages…

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,709 questions
asked 2025-12-10T06:45:48.9866667+00:00
waqas ahmed 20 Reputation points
accepted 2025-12-12T03:54:47.2033333+00:00
waqas ahmed 20 Reputation points
2 answers

How do I track my students' progress in C# modules?

I would like to track student progress in C# modules for a High School Game Development course that I teach. Is that possible and if so, what are the steps that I need to take? TIA

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,709 questions
asked 2025-12-10T13:32:27.68+00:00
Murphy, Suzette S 1 0 Reputation points
edited a comment 2025-12-12T03:45:19.5066667+00:00
Harry Vo (WICLOUD CORPORATION) 3,820 Reputation points Microsoft External Staff Moderator