11,705 questions with Developer technologies | C# tags

Sort by: Updated
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,705 questions
asked 2025-12-12T12:46:40.74+00:00
Michael P 20 Reputation points
accepted 2025-12-13T17:55:53.1266667+00:00
Michael P 20 Reputation points
1 answer

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,705 questions
asked 2025-12-13T09:48:48.95+00:00
Bardia 0 Reputation points
answered 2025-12-13T09:49:12.2833333+00:00
Q&A Assist
0 answers

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,705 questions
asked 2025-12-12T11:02:22.9333333+00:00
Dani_S 4,836 Reputation points
edited a comment 2025-12-13T04:32:16.22+00:00
Dani_S 4,836 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,705 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,885 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,705 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,885 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,705 questions
asked 2025-12-09T05:06:29.3266667+00:00
Peter_1985 2,866 Reputation points
edited a comment 2025-12-12T13:39:35.72+00:00
Peter_1985 2,866 Reputation points
0 answers

GIS - Convert from one format to any formats.

Hi, 1.In continue to: https://xtls-v4.hkg1.meaqua.org/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,705 questions
asked 2025-12-12T10:13:08.8933333+00:00
Dani_S 4,836 Reputation points
commented 2025-12-12T11:49:00.62+00:00
Dani_S 4,836 Reputation points
1 answer

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,705 questions
asked 2025-12-11T17:53:15.8566667+00:00
Dani_S 4,836 Reputation points
commented 2025-12-12T11:47:51.9533333+00:00
Dani_S 4,836 Reputation points
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,814 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,705 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,705 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,705 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,705 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,705 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,705 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
6 answers One of the answers was accepted by the question author.

Convert VB.Net Project to C#

I have just installed Visual Studio 2022 Community Edition. I was planning to convert an old VB.Net project to C#. I started by updating it to .NET Framework 4.8 and made sure it compiled and worked. When I tried to convert it to C# the option wasn't…

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,705 questions
asked 2025-08-31T09:31:09.9366667+00:00
Jeffrey Gaines 40 Reputation points
answered 2025-12-12T02:18:36.11+00:00
Graham Clarke 0 Reputation points
2 answers

Cannot click into or scroll word document after opening .... Until I hit Ctrl+Home or interact with some options in the Ribbon Bar

Some of our clients have started reporting a strange issue in Microsoft Word after we open documents using Microsoft.Office.Interop.Word automation When they open a Word document they think that MS Word is hanging. The first indicator that it's not…

Microsoft 365 and Office | Development | Other
Microsoft 365 and Office | Install, redeem, activate | For business | Windows
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,705 questions
asked 2024-11-01T08:38:27.7966667+00:00
Giuseppe Carafa 96 Reputation points
commented 2025-12-11T20:56:53.2233333+00:00
Stefan Blom 324K Reputation points MVP Volunteer Moderator
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,705 questions
asked 2025-12-05T10:09:08.5866667+00:00
K C, Soniya 21 Reputation points
commented 2025-12-11T08:37:11.7733333+00:00
Adiba Khan 1,520 Reputation points Microsoft External Staff
3 answers One of the answers was accepted by the question author.

How to use multiple DLLs with the same name

Years ago I built web apps on my local box, and copied the ASP.NET files over to our web server. This included creating a bin directory, and placing the needed DLLs there. Everything runs great. Now, years later, I'd like to add a new app, and use much…

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,705 questions
asked 2025-12-09T01:14:42.65+00:00
Corey Fleig 185 Reputation points
commented 2025-12-11T05:34:29.2566667+00:00
Susmitha T (INFOSYS LIMITED) 1,790 Reputation points Microsoft External Staff
2 answers One of the answers was accepted by the question author.

Issue to the line

Hi, I got the exception like Exception/StackTrace - Index and length must refer to a location within the string. how to locate to the place causing the issue.

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,705 questions
asked 2025-12-05T03:44:34.95+00:00
Peter_1985 2,866 Reputation points
accepted 2025-12-11T05:23:51.3533333+00:00
Peter_1985 2,866 Reputation points
3 answers One of the answers was accepted by the question author.

How to Use 32-bit COM DLL in a 64-bit WPF .NET Core 6 Application?

I have a Class Library project in .NET Core named "LIBTOOBA" with the following setup: Project File (LIBTOOBA.csproj): <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> …

Developer technologies | Visual Studio | Debugging
Windows for business | Windows Client for IT Pros | User experience | Other
Developer technologies | .NET | Other
Developer technologies | .NET | Other
Microsoft Technologies based on the .NET software framework. Miscellaneous topics that do not fit into specific categories.
4,148 questions
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,588 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,705 questions
asked 2024-08-06T02:08:01.25+00:00
Mojtaba_Hakim 326 Reputation points
edited a comment 2025-12-10T13:35:33.41+00:00
RLWA32 51,456 Reputation points