10,900 questions with C#-related tags

Sort by: Updated
1 answer

How Can I Register and Manage Services in a Large C# Project?

Hello I will start developing a new C# WPF project. I need your information on something while planning. I will use the MVVM pattern in the project. I will create a large number of services to perform some tasks and use them in the relevant classes. I am…

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,767 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.
10,900 questions
asked 2024-10-02T12:49:07.14+00:00
fatih uyanık 100 Reputation points
commented 2024-10-03T09:14:05.2066667+00:00
fatih uyanık 100 Reputation points
1 answer

Issue related to Debian/Linux OS

Hi, Is it right that we can run/execute VS C++/C# project within Debian/Linux OS?

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.
10,900 questions
asked 2024-10-03T07:54:28.1866667+00:00
Peter_1985 2,666 Reputation points
commented 2024-10-03T08:41:09.7933333+00:00
Peter_1985 2,666 Reputation points
3 answers One of the answers was accepted by the question author.

Programatically turn on/off Japanese IME Kana/Romaji input mode

I am trying to programmatically turn on/off Japanese Kana/Romaji input mode. This is equivalent to the "Kana input" option in the IME input menu I have tried to use InputMethod.SetPreferredImeConversionMode but it can only sets the TextBox…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,095 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,609 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.
10,900 questions
asked 2024-10-03T02:46:06.51+00:00
CHAN Samuel 0 Reputation points
accepted 2024-10-03T08:32:03.5133333+00:00
CHAN Samuel 0 Reputation points
3 answers

Allow only one call to web service method at a time

Hi all, I have an ASP.NET web service installed on IIS. I need to permit only one concurrent call to a specific web method? How can I achieve this? Can I use mutex? I don't have such in-depth knowledge of application pool, processes and threads... Thank…

Internet Information Services
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,479 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.
10,900 questions
asked 2024-10-02T12:35:22.6366667+00:00
Nazza 0 Reputation points
answered 2024-10-03T06:31:25.9266667+00:00
XuDong Peng-MSFT 10,511 Reputation points Microsoft Vendor
1 answer

How to Write a DependencyProperty for a TextBlock when it is a child element of a parent Button class in WPF C#?

Hi there, I want to make a Dependency Property for a Text Block and the functionality of this property is to apply a Scale Transformation on the Text Block but I am unable to do that Because it's a child element inside of a Button class. I have a…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,562 questions
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,767 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.
10,900 questions
asked 2024-10-03T02:05:10.09+00:00
MERUN KUMAR MAITY 596 Reputation points
edited an answer 2024-10-03T06:03:45.79+00:00
Jack J Jun 24,491 Reputation points Microsoft Vendor
0 answers

Microsoft Fakes and real object constructor

I'm using .NET 4.8 and Microsoft Fakes to create Shim object for unit testing. This class (KRSampleManager) is using Lazy initialization to create an instance and implements IDisposable interface. namespace SampleManager { public class…

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.
10,900 questions
Visual Studio Testing
Visual Studio Testing
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Testing: The act or process of applying tests as a means of analysis or diagnosis.
349 questions
asked 2024-10-01T09:08:03.5166667+00:00
Raja, Kushal 0 Reputation points
commented 2024-10-03T04:51:34.86+00:00
Raja, Kushal 0 Reputation points
0 answers

Blob and file transactions have significantly increased after upgrade to .Net 8 Isolated

Hi all, We have noticed a significant increase in blob and file transactions, and therefore significant cost increase, since upgrading our function app from .NET 6 In Process model to .NET 8 Isolated. Wondering if anyone has had a similar issue and…

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,970 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,833 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,827 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.
10,900 questions
asked 2024-10-03T00:30:18.1933333+00:00
MTB Holdings Pty Ltd 0 Reputation points
edited the question 2024-10-03T02:48:07.8866667+00:00
AmaranS 6,415 Reputation points Microsoft Vendor
1 answer

search code does not execute (xaml page,pagemodel or MVVM )

I'm trying to add a search bar to my app, but can not get the code to execute. I've placed breakpoints in the pagemodel but they are tripped. Xaml: <SearchBar x:Name="searchBar" HorizontalOptions="Fill" …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,471 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.
10,900 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.
808 questions
asked 2024-10-01T13:18:57.4+00:00
tim 160 Reputation points
answered 2024-10-03T02:27:22.6366667+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 75,121 Reputation points Microsoft Vendor
1 answer

How can I connect to Azure database from desktop application with non-static IP address?

Hello, I am working on a WPF desktop application. I created an Azure SQL database as a database. However, the connection constantly fails because the IP address changes constantly with the connection sentence I set through the application. What settings…

Azure SQL Database
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.
10,900 questions
asked 2024-09-28T18:15:06.2433333+00:00
fatih uyanık 100 Reputation points
commented 2024-10-02T16:42:54.21+00:00
NIKHILA NETHIKUNTA 2,395 Reputation points Microsoft Vendor
1 answer

Razor core app connects to DB, but integration test fails with Microsoft.Data.SqlClient.SqlException

I have an app that I've been writing and its working well. When I introduced an integration test, its unable to connect to the DB using the exact same connection string. Microsoft.Data.SqlClient.SqlException: 'A network-related or instance-specific…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,095 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,771 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.
10,900 questions
asked 2024-09-28T14:36:46.4833333+00:00
Walter 1 Reputation point
commented 2024-10-02T12:23:44.3133333+00:00
Erland Sommarskog 111.1K Reputation points
1 answer

Try to delete all file coming with filesystemwacther and delete all file created by user.

using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Diagnostics; using System.Drawing; using System.IO; using System.Linq; using System.Text; using System.Threading; 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.
10,900 questions
asked 2024-09-28T14:35:40.1233333+00:00
MIPAKTEH_1 365 Reputation points
commented 2024-10-02T09:30:36.7533333+00:00
Jiale Xue - MSFT 44,921 Reputation points Microsoft Vendor
1 answer

Why can't I use some modifier in method? C#

Hello, Why can't I use const for a string array and read-only for an integer inside a method? namespace ConsoleApp1 { internal class Program { static void Main(string[] args) { } static void Summary() …

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,833 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.
10,900 questions
asked 2024-09-28T01:25:02.2433333+00:00
Shervan360 1,541 Reputation points
commented 2024-10-02T07:10:11.8433333+00:00
Jiale Xue - MSFT 44,921 Reputation points Microsoft Vendor
0 answers

NPGSQL - Common Language Runtime detected an invalid program.

I have two servers with windows server 2019 and an a Simple API project developed with .NET 8. The project use Npgsql library at version 4.0.0. The configuration between servers are the same: same path same .NET hosting bundle same IIS…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,833 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,551 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.
10,900 questions
asked 2024-10-01T06:22:10.66+00:00
DSpada 0 Reputation points
edited a comment 2024-10-02T07:08:19.8833333+00:00
Ping Ni-MSFT 4,335 Reputation points Microsoft Vendor
3 answers

T4 text templating in .NET Core and above

After some testing, it looks like the TextTemplating library that is part of VisualStudio (Microsoft.VisualStudio.TextTemplating.15.0.dll) can't be used in the newer "dotnet" command line toolchain as it depends on the WPF assembly…

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.
10,900 questions
asked 2021-10-01T13:06:23.25+00:00
David Reis 1 Reputation point
answered 2024-10-02T05:05:46.99+00:00
Jonathan Martens 0 Reputation points
0 answers

unable to upgrade my subscription azure says 'You are not eligible for upgrade of your Azure account'

I recently migrated my database and .NET Core API application to Azure. They gave me $200 in free credits, but all of a sudden, my application stopped working. When I checked, I received an email asking me to upgrade my subscription. However, when I try…

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.
10,900 questions
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
39,058 questions
asked 2024-09-14T14:57:25.59+00:00
maria shar 0 Reputation points
commented 2024-10-01T19:40:08.9733333+00:00
ajkuma 26,041 Reputation points Microsoft Employee
3 answers

MediaStreamSource is not applying Bitrate Assigned to Media Encoding Profile

I am Using Media Composition To Preview Video and to Generate Stream I pass a MediaEncoding Profile wherein video Container I am assigning the bitrate that has to Apply when previewing but it's not working. MediaEncodingProfile profile =…

Universal Windows Platform (UWP)
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.
10,900 questions
asked 2020-12-24T05:13:20.907+00:00
Abhishek sharma 136 Reputation points
commented 2024-10-01T17:43:13.94+00:00
LOSTMSU 1 Reputation point
1 answer One of the answers was accepted by the question author.

File change to readonly

Hi, i load files to our website. When i open one of the file during the loading.I get the file caught by another process.Does making the files as readonly will solved the problem. If not can you give other suggestion. How to set file to readonly and what…

Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
5,376 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.
10,900 questions
asked 2024-09-29T17:00:18.9866667+00:00
Dani_S 3,766 Reputation points
accepted 2024-10-01T14:43:27.1433333+00:00
Dani_S 3,766 Reputation points
2 answers

JAWS or windows narrator not working/announcing localized description of enum bind to combo box for wpf application

Hi, I am using JAWS screen reader / windows narrator on wpf dialog for wpf application. But reader does not says/announce/speaks about description of enum bound to combobox in WPF c# application. Screen reader speaks/announce enumerator rather than…

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,767 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.
10,900 questions
asked 2024-09-27T15:19:25.7666667+00:00
Ajay Gera 40 Reputation points
answered 2024-10-01T13:33:28.31+00:00
Ajay Gera 40 Reputation points
2 answers One of the answers was accepted by the question author.

rdlc files donot compile or validate in VS 2022

I am trying to upgrade and compile a project in VS 2022 with some rdlc files, it does not show any errors when we try to build or rebuild. It was working on VS2013 before. It showed any compile errors in the files and does not complete the build until…

SQL Server Reporting Services
SQL Server Reporting Services
A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
2,918 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.
10,900 questions
asked 2022-03-21T19:13:33.007+00:00
DeAdu 21 Reputation points
commented 2024-10-01T11:49:40.2566667+00:00
mBardos76 0 Reputation points
0 answers

azure function servicebustrigger keeps getting (ServiceTimeout)

hi, We created an isolated function, locally it works but after deploying to azure it does not. The network on ServiceBus and Function are public as to eliminate any network problems. looking into kudu logs we see: Message processing error…

Azure Service Bus
Azure Service Bus
An Azure service that provides cloud messaging as a service and hybrid integration.
623 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,970 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.
10,900 questions
asked 2024-10-01T09:55:09.4866667+00:00
51062596 60 Reputation points