10,648 questions with C#-related tags

Sort by: Updated
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,648 questions
asked 2024-07-26T14:01:56.8533333+00:00
Grzegorz 0 Reputation points
answered 2024-07-26T14:46:13.2633333+00:00
Jiale Xue - MSFT 43,046 Reputation points Microsoft Vendor
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,522 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,648 questions
asked 2024-07-26T11:23:17.18+00:00
Heiko 1,216 Reputation points
commented 2024-07-26T12:38:12.6033333+00:00
Viorel 114.7K 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,098 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,648 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

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,648 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,386 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,328 questions
asked 2024-07-26T03:59:40.6233333+00:00
Vishali Gupta 0 Reputation points
answered 2024-07-26T09:32:48.18+00:00
Noah Ma-MSFT 2,340 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,648 questions
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
37,783 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,986 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
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,648 questions
asked 2024-07-25T00:28:16.9133333+00:00
zequion 271 Reputation points
commented 2024-07-26T07:04:17.6633333+00:00
Hongrui Yu-MSFT 1,025 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,229 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,648 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,391 Reputation points Microsoft Vendor
1 answer

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,648 questions
asked 2024-07-26T02:43:48.8966667+00:00
zequion 271 Reputation points
answered 2024-07-26T05:18:17.61+00:00
Olaf Helper 43,246 Reputation points
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,694 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,648 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,719 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,648 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,668 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,106 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,624 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,648 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,330 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,098 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,648 questions
asked 2024-07-25T15:52:39.7766667+00:00
123244 0 Reputation points
accepted 2024-07-25T18:31:58.18+00:00
123244 0 Reputation points
0 answers

Run a scheduled job in Azure app service using Quartz.net

Hi, I am using a .Net console app (A) deployed in Azure app service to run a scheduled job using Quartz.net library. The job is configured to execute another .Net console executable (B) during the trigger. But executable(B) randomly stops execution in…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,647 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,648 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,406 questions
asked 2024-07-25T16:09:06.29+00:00
Joby Joby 0 Reputation points
2 answers

The scriptmain.cs can not be found in the SSIS package

I have a SSIS package with a script task. I can edit this script taks, but when I add a breakpoint in the C# code and I run the package I get an error that the ScriptMain.cs can not be found. I use Visual studio 2022 with data tools 2017 and integration…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,886 questions
SQL Server Integration Services
SQL Server Integration Services
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
2,525 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,648 questions
asked 2024-07-17T08:24:57.6333333+00:00
Eric Bezemer 196 Reputation points
commented 2024-07-25T15:42:17.6633333+00:00
Yitzhak Khabinsky 25,731 Reputation points
1 answer One of the answers was accepted by the question author.

Advice on C# code to be triggered during an event

Hello Forum. I am looking for some advice. I am going to write some code to produce a program that waits until a system event happens and then launches., Is this a situation when I should write a PROCESS rather than a piece of code to be compiled into…

Outlook
Outlook
A family of Microsoft email and calendar products.
3,422 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,648 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,719 questions
asked 2024-01-22T14:41:42.9666667+00:00
William Thompson 120 Reputation points
accepted 2024-07-25T15:21:26.76+00:00
William Thompson 120 Reputation points
7 answers

Unable to cast COM object of type 'Microsoft.Office.Interop.Excel.ApplicationClass'

Hi I've this C# application which opens excel file and updated another excel file. The application developed in Visual studio 2005 and Office 2016. I've recently uninstalled Office 2016 and installed Office 365. Since then " Unable to cast…

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,648 questions
asked 2021-02-04T07:21:21.033+00:00
Venkata Ramana Nori 36 Reputation points
answered 2024-07-25T15:20:07.0166667+00:00
CobraDev 0 Reputation points
0 answers

UWP eSimManager download profile fails

Hello, i am trying to use the eSimManager to mange eSim in Windows 11. my code is var result = await _eSim.DownloadProfileMetadataAsync("MY ESIM PROFILE ACTIVATION CODE"); but i get result of "cardGeneralFailure" the eSim…

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,648 questions
asked 2024-07-23T15:00:04.3+00:00
mgal 0 Reputation points
commented 2024-07-25T10:53:36.15+00:00
mgal 0 Reputation points
1 answer

How to send Mail using azure Entra Id User tenant mail in .NET core programmatically ?

Hi, I have an azure Entra ID Subscription where I have created user and the email with my domain, For example (ABC@abcemi.com) and I tried to send mail programmatically. Here are the steps that I have followed to Send Mail via .NET core code: - …

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,647 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,400 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,648 questions
asked 2024-07-23T14:41:16.6833333+00:00
Kuldeep Y 41 Reputation points
commented 2024-07-25T10:44:34.2166667+00:00
Kuldeep Y 41 Reputation points
2 answers

Connection string issue

Hi, What kind of file can be inserted, regarding Connection string, into Maui App?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,647 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,229 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,648 questions
asked 2024-07-16T06:07:51.48+00:00
Peter_1985 2,586 Reputation points
commented 2024-07-25T09:54:09.04+00:00
Peter_1985 2,586 Reputation points
2 answers

How to fix error code 2147516556 (0x8000808c) in VS 2022

Reference Library uses .NET 8.0, which I configured it as such. Build is successful but Debugger shows below error and program failed to open. The target process exited without raising a CoreCLR started event. Ensure that the target process is…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,647 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,648 questions
asked 2024-07-24T02:12:43.5233333+00:00
Manfred Koh 0 Reputation points
edited a comment 2024-07-25T01:23:22.9133333+00:00
Manfred Koh 0 Reputation points