10,653 questions with C#-related tags

Sort by: Updated
1 answer

Can't get the name of directories sorted by name

Hello experts, I need to get the name of directories sorted by name, just like what is shown in the Windows explorer. 3 folders are in a path, Windows show them in the below order: 0_35_33 7_07_10 18_16_40 But Directory.GetDirectories and…

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,653 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,669 questions
asked 2024-07-27T23:03:39.8733333+00:00
StewartBW 925 Reputation points
answered 2024-07-27T23:21:37.67+00:00
Castorix31 83,206 Reputation points
0 answers

Having trouble with retrieving device path using SetUpApi and Hidsdi

I'm currently having an issue with my code that detects HID devices with a specific VID and PID for joy-cons. I'm using SetUpApi and Hidsdi that I platform invoked, but the device path is only showing as question marks. Can someone assist in finding a…

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,524 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,653 questions
asked 2024-07-27T21:14:24.1833333+00:00
CakeDev 0 Reputation points
1 answer

Pagination not working properly in ASP.NET Core 2.1 app

Hi guys, I had implemented pagination using IPagedList with model which was successful for my ads classifieds website. This time I needed to apply with ViewModel as several models needed in this view and used StaticPagedList as it wasn't working with…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,404 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,419 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,653 questions
asked 2024-07-27T15:06:16.6233333+00:00
Farid GN 1 Reputation point
answered 2024-07-27T16:53:21.9833333+00:00
Bruce (SqlWork.com) 61,731 Reputation points
0 answers

Troubleshooting Issues with .NET Project Packages

I am encountering errors with all my packages in my .NET project, even after trying to restore NuGet and clearing the cache. Can anyone provide guidance on troubleshooting and resolving this issue? Thank you.

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,404 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,653 questions
asked 2024-07-27T08:45:53.02+00:00
merna elzyat 0 Reputation points
commented 2024-07-27T09:58:07.76+00:00
merna elzyat 0 Reputation points
0 answers

Cpanel email redirect

I am getting this error message too. Our company uses outlook 2010 configured as exchange.  Complete error message is "Allow this website to configure *** Email address is removed for privacy *** server settings? …

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,653 questions
asked 2024-07-27T08:00:18.9166667+00:00
Emmanuel Daniel Soyi 0 Reputation points
4 answers

could not load file or assembly'Microsoft.data.sqlclient'

how to solve this error

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,650 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,419 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,888 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,365 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,653 questions
asked 2023-09-12T17:01:47.29+00:00
Niyati Savaliya 0 Reputation points
commented 2024-07-27T06:36:37.1666667+00:00
John Dyson 0 Reputation points
1 answer One of the answers was accepted by the question author.

Error inside Try that does not trigger catch

I have a function that searches for a text in a PDF viewer using the "DevExpress.Xpf.PdfViewer.PdfViewerControl" control. The variable "MyTextSearchParameter" and "ViewerControl" is not null, but the first time I run 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.
10,653 questions
asked 2024-07-26T02:43:48.8966667+00:00
zequion 291 Reputation points
accepted 2024-07-27T03:06:39.6466667+00:00
zequion 291 Reputation points
2 answers

ReadAsStringAsync and ReadAsByteArrayAsync without Cancellationtoken

I use the latest version of VS and C# in a .Net 8 project. I have a function that retrieves the content of a remote file using HttpContent.ReadAsByteArrayAsync() and HttpContent.ReadAsStringAsync(); I can't use the CancellationToken parameter because…

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,653 questions
asked 2024-07-25T00:28:16.9133333+00:00
zequion 291 Reputation points
commented 2024-07-27T03:01:14.01+00:00
zequion 291 Reputation points
3 answers

Play an audio stream in client browse

I'm trying to send my soundcard audio to a HTTP stream with NAaudio so any browser on the LAN can open this one. Like an LAN Radiostation or something and use the default audio player from the browser. My sound is recorded with bytes, send, but 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.
10,653 questions
asked 2024-07-20T11:24:10.01+00:00
donovan 21 Reputation points
commented 2024-07-26T19:24:01.3766667+00:00
donovan 21 Reputation points
6 answers One of the answers was accepted by the question author.

How Do I Package and install a Released compiled version version of my .Net Framework?

This might be a simple question. I searched online and there was a lot of information that seemed to be just a distraction. How Do I Package and install a Released compiled version version of my .Net Framework? Do I just need to pass along the compiled…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,650 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,653 questions
asked 2024-07-17T16:04:37.3133333+00:00
William Thompson 120 Reputation points
commented 2024-07-26T18:48:50.47+00:00
William Thompson 120 Reputation points
1 answer

Experiencing memory issues when connecting to Exchange Online Management using C#

I am experiencing memory issues when connecting to Exchange Online Management using C#. The process involves executing commands such as Get-User, Get-DistributionGroupMember, Add-DistributionGroupMember, and Remove-DistributionGroupMember. After each…

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,653 questions
Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,388 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,331 questions
asked 2024-07-26T03:59:40.6233333+00:00
Vishali Gupta 0 Reputation points
commented 2024-07-26T17:19:32.6966667+00:00
Vishali Gupta 0 Reputation points
1 answer

Why my app is malware?

Hi, I'm a Mac developer and I'm currently trying to submit my first Windows app to the Microsoft Store. The submission is rejected with the message: "10.2.3.1 Security - Malware", but there's no information about which part of the app is…

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,653 questions
asked 2024-07-26T14:01:56.8533333+00:00
Grzegorz 0 Reputation points
commented 2024-07-26T15:42:49.46+00:00
Grzegorz 0 Reputation points
0 answers

How to get the length of text found with CurrentCulture?

Suppose I have a text "MaxGroßenIsHere". CurrentCulture is set to "de-DE" in my app. German has the character ß, which can often be written as ss, especially in computers. Therefore,…

Universal Windows Platform (UWP)
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,524 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,653 questions
asked 2024-07-26T11:23:17.18+00:00
Heiko 1,216 Reputation points
commented 2024-07-26T15:26:17.7966667+00:00
Heiko 1,216 Reputation points
0 answers

Integration of Full Trust Process into WinUI Project

Hi, I have a question, how to integrate Full Trust Process for launching (For example, process, which changes registry entry TaskbarAl) into application like this: https://github.com/YakubMordon/Taskbar-Customizer?

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,102 questions
Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
752 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,653 questions
asked 2024-07-26T11:19:39.9366667+00:00
Jacob Mordon 65 Reputation points
edited the question 2024-07-26T12:14:05.41+00:00
Jiale Xue - MSFT 43,046 Reputation points Microsoft Vendor
1 answer

How to fix half downloads?

hi there, i was downloading file of 27 GB. after downloading 25 GB it got interrupted and when i am trying to resume, the same message is coming -"that due to tech issue can't be downloaded". On reaching to last moment, it got error. My…

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,653 questions
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
37,803 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,996 questions
asked 2024-07-25T19:34:23.7566667+00:00
Riley Sharma 0 Reputation points
answered 2024-07-26T07:32:57.3066667+00:00
Neuvi Jiang 765 Reputation points Microsoft Vendor
0 answers

Using Xamarin.Google.UserMessagingPlatform with MAUI for presenting a GDPR consent message

I am trying to present a GDPR consent message in a MAUI app using the Xamarin.Google.UserMessagingPlatform NuGet package. I'm targeting Android 34 on .NET 8. I have used both this: https://stackoverflow.com/a/71299843/7360423 and this:…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,232 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,653 questions
asked 2024-07-25T08:45:20.6933333+00:00
Costas Athan 46 Reputation points
commented 2024-07-26T06:49:15.36+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 39,396 Reputation points Microsoft Vendor
0 answers

NPOI C# populate Excel spreadsheet containing a table and XML Map

Using C# and NPOI, I'm trying to import data into an existing Excel spreadsheet that contains a table and an XML Map as below. When I try to save and close the spreadsheet at end of process I get a NullReferenceException as below, despite the…

Excel
Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
1,697 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,653 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,720 questions
asked 2023-04-21T13:48:13.16+00:00
Nicholas Webb 0 Reputation points
commented 2024-07-26T04:17:54.03+00:00
winironteam 36 Reputation points
1 answer

ProgID or CLSID for vb.net apps?

Hello, When registering a file type extension for an app written in vb.net framework…

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,653 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,669 questions
asked 2024-07-19T04:39:42.3033333+00:00
StewartBW 925 Reputation points
commented 2024-07-26T02:57:23.8+00:00
Jiachen Li-MSFT 29,261 Reputation points Microsoft Vendor
1 answer

Upload an excel file to Teams folder from C#.

Hello, I am trying to upload the excel file from the application to the Teams folder. Admin consent for the application identity to read/write file is already given. Can you please help on this? TIA.

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,629 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,653 questions
asked 2024-07-18T10:20:08.9966667+00:00
Amit Patil 0 Reputation points
commented 2024-07-26T00:53:57.6233333+00:00
Robin Sheng-MSFT 1,405 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Effective file search solution in UWP

Hi, I need to search for files based on their type, creation date, and size (something like in windows). What are the options for an efficient search? I tried to use the Storage API, but the search is quite slow, in turn, System.IO can access folders…

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,102 questions
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,653 questions
asked 2024-07-25T15:52:39.7766667+00:00
123244 20 Reputation points
accepted 2024-07-25T18:31:58.18+00:00
123244 20 Reputation points