11,549 questions with C#-related tags

Sort by: Updated
0 answers

Can't able to Upload Images on Azure Server if it is more than 128KB

Hi Everyone , I am trying to upload image and store  but when i do it in my local server its working fine but when i push the same code in server i am getting entity  too large  I reached out microsoft support they are telling that "The content…

C#
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,549 questions
asked 2025-06-13T07:21:07.5033333+00:00
Muhammed Sahid M A 0 Reputation points
commented 2025-06-18T09:43:53.71+00:00
Sampath 3,740 Reputation points Microsoft External Staff Moderator
0 answers

The Status property of WiFiDirectAdvertisementPublisher is not updated after the Publisher is initially started

With WiFi switched on (through the Modern UI Settings via the taskbar or via ms-settings:network-wifi) starting the Publisher results in the WiFi Direct network being created and started as expected. Switching the WiFi off while it's in the Started state…

C#
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,549 questions
asked 2025-06-18T08:42:44.65+00:00
Tom W 0 Reputation points
2 answers

How to fix Could not load file or assembly 'log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.

Using VB 2022 and I have this issue that I can not get resolved. using .net framework 4.8 and I tried using x64, x86 and nothing has worked

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,449 questions
C#
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,549 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
1,095 questions
asked 2023-02-13T16:44:30.9733333+00:00
Tyrique 0 Reputation points
answered 2025-06-18T07:45:35.01+00:00
Amarjit Singh 0 Reputation points
2 answers

How to Rename a Solution and Projects in Visual Studio 2022 Without Affecting Functionality?

I have a working application that includes Blazor Server, Blazor WASM, and an API. I want to change the names of the solution and the projects while ensuring that the current application remains unaffected. What is the easiest and problem-free way to…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,816 questions
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,672 questions
C#
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,549 questions
asked 2024-11-29T07:38:49.4766667+00:00
Cenk 1,036 Reputation points
answered 2025-06-18T04:26:20.3633333+00:00
Danny Nguyen (WICLOUD CORPORATION) 85 Reputation points Microsoft External Staff
1 answer

C# make a class data member read only to parent?

I need to make certain data members in a class read only to parent classes. I'm currently doing this to protect data. It's a LOT of duplicate code / writing... Certainly there's a better way to do than what I'm currently doing below? // Currently using…

C#
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,549 questions
asked 2025-06-17T22:15:49.1833333+00:00
mjeschke 40 Reputation points
answered 2025-06-17T22:54:13.2533333+00:00
David Lowndes 2,630 Reputation points MVP
0 answers

c# windows form definition for abstract class

I'm creating a number of abstract classes. One represents a production ticket with a number of parameters such as number of items to test, part number, electrical values, etc. My background is in embedded coding so I'm not 100% sure the most efficient…

C#
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,549 questions
asked 2025-06-17T22:21:26.7833333+00:00
mjeschke 40 Reputation points
1 answer

Inquiry: Support for Document Generation and Embedding Capabilities in Microsoft Technologies

Dear Team, We are currently evaluating document generation libraries for a .NET-based application using c# and would like to understand whether Microsoft components(free/paid services) would support the following functionality: Generate documents in the…

C#
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,549 questions
asked 2025-06-16T14:18:13.14+00:00
Shrutika Kharche 0 Reputation points
answered 2025-06-17T15:53:35.57+00:00
Bruce (SqlWork.com) 77,631 Reputation points Volunteer Moderator
1 answer One of the answers was accepted by the question author.

How to change default color of WPF Combobox?

I want to change the color of Combobox in WPF as below. I tried changing the color with the background property of the Combobox, but the background color of the contents displayed when the combo box is clicked is changed. Is there a way to solve this by…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,854 questions
C#
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,549 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
857 questions
asked 2022-06-06T07:08:57.957+00:00
JunYoungLee 161 Reputation points
commented 2025-06-17T10:57:35.8966667+00:00
Jan-Willem Alderliesten 5 Reputation points
0 answers

i can't execute program in visual studio without administrator account after changing the assembly name

Hi, after windows updates, I can't execute program on visual studio (Debug/Release) without administrator account after changing assembly name. changing version name of assembly name is able to execute program without administrator account. ex) Device…

C#
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,549 questions
asked 2025-06-17T01:28:27.9066667+00:00
광효 이 0 Reputation points
1 answer One of the answers was accepted by the question author.

How would I use the WordNet libraries to access its dictionary entires?

I downloaded and installed the WordNet app. How would I use the WordNet library to access its dictionary entries? Would I need to import those WordNet libraries first before using them?

C#
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,549 questions
asked 2025-06-16T10:00:58.4366667+00:00
John 506 Reputation points
accepted 2025-06-17T00:42:45.3066667+00:00
John 506 Reputation points
0 answers

Proper interpretation of Azure Advisor's recommendation 'Add missing indexes to your Azure Cosmos DB container'

Hello, I have an Azure Cosmos Db set up. Recently I've got an Azure Advisor's recommendation to add some indexes to the database: Add missing indexes to your Azure Cosmos DB container Potential Indexes - "/someField1 ASC","/someField2…

C#
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,549 questions
asked 2025-04-24T07:56:42.8266667+00:00
Vladimir Nedoroslev 0 Reputation points
commented 2025-06-16T10:07:32+00:00
Patrick 0 Reputation points
0 answers

C#, .NET, How can I make a code generator download when my NuGet package is installed?

csproj, Engine: <Project Sdk="Microsoft.NET.Sdk"> …

C#
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,549 questions
asked 2025-06-14T19:13:45.1366667+00:00
Haziel Melchor 0 Reputation points
1 answer

Only one compilation unit can have top-level statements. Visual Studio code error

Hi, I am trying to compile some code and keep getting this error. I deleted the code and rewrote it but still getting error CS8802 after inititiating dotnet run in terminal. See my code below: using System; int currentAssignments = 5; int[]…

C#
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,549 questions
asked 2025-02-26T17:32:50.2333333+00:00
Ayhan Celebi 5 Reputation points
commented 2025-06-13T20:51:09.08+00:00
Michael Torres 40 Reputation points
1 answer One of the answers was accepted by the question author.

How can I display RDLC reports in a .NET 8 WinForms application, since ReportViewer is not supported? Is there any official Microsoft-supported way to reuse RDLC files in .NET 8?

I am migrating a WinForms desktop application from .NET Framework 4.8 to .NET 8, and I’m facing issues with displaying reports that were previously built using RDLC files and the Microsoft.Reporting.WinForms ReportViewer control. In the original project,…

C#
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,549 questions
asked 2025-06-13T06:11:59.3333333+00:00
Vishal Kambe 20 Reputation points
accepted 2025-06-13T06:43:06.0666667+00:00
Vishal Kambe 20 Reputation points
0 answers

Conditional Access Not Triggering in Azure AD B2C

Hi , I’ve successfully implemented all my main Azure AD B2C flows for user migration— including custom password reset, MFA with authenticator app (via TOTP), user migration with just-in-time logic, and sign-in / sign-up orchestration. Most core flows are…

C#
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,549 questions
asked 2025-06-06T02:20:23.8666667+00:00
Ray Garg 10 Reputation points
commented 2025-06-12T18:39:26.1066667+00:00
Ray Garg 10 Reputation points
0 answers

I have Azure API which is not authenticating token from OAUTH but working locally not working after deployment

Hi Team, I have an angular app implementing OAUTH and the token is being authenticated in .Net core API in lower environment but the same code is not authenticating in Production, Getting error " Client Id is null". I have verified all the…

C#
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,549 questions
asked 2025-06-12T17:29:46.84+00:00
Kaipa Venkata Sreedhar Reddy 0 Reputation points
0 answers

StoreContext.GetAppLicenseAsync() returns false for active subscription in MSIX CLI

I'm building a WinRT CLI wrapper in C# that checks if a user owns an active Microsoft Store subscription add-on. This CLI is called from an Electron + React.js app using command-line arguments and returns true or false depending on the license…

C#
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,549 questions
asked 2025-06-12T16:21:17.58+00:00
M McKanstry 0 Reputation points
0 answers

StoreContext.GetAppLicenseAsync() returns false for valid Microsoft Store add-on subscription in MSIX CLI wrapper

Hi all, I'm currently building a WinRT CLI wrapper in C# to integrate with my Electron + React.js app stack. The CLI allows Electron to check if a user has an active subscription for a Microsoft Store add-on, using its Store ID. Electron calls this…

C#
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,549 questions
asked 2025-06-12T16:07:18.13+00:00
M McKanstry 0 Reputation points
1 answer

Visual studio is freezing when I click on my pending changes which has 34000 + files in it, I want to undo pending changes / manage it. Kindly help

My visual studio is hanging when I click on Pending changes as I have to manage it. Please help I'm using TFS and Visual studio professional 2022.

C#
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,549 questions
asked 2025-05-07T03:45:15.8833333+00:00
Sasirekha Karunamurthi 10 Reputation points
edited a comment 2025-06-12T14:23:17.2566667+00:00
Adrian Stanley 0 Reputation points
0 answers

How to get the trophy for Write your first code using c#

Hi, I did all the modules and checked everything. But I cant find the trophy for finishing my module. Could you please help me out.

C#
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,549 questions
asked 2025-06-12T07:16:05.6866667+00:00
Anku Sarang 0 Reputation points
edited the question 2025-06-12T07:18:16.49+00:00
Anku Sarang 0 Reputation points