10,604 questions with C#-related tags

Sort by: Updated
0 answers

Nuget package creation and file removal on uninstall

Hi, I am creating a package for use in dotnet core web applications. Specifically Umbraco 9 CMS. As of recent, it would appear that Powershell scripts are no longer used to populate and remove files on Nuget package installation/ uninstallation with…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,600 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,604 questions
asked 2022-06-10T12:16:43.957+00:00
Adam U 6 Reputation points
commented 2024-07-15T12:43:54.7+00:00
Solomio Sisante 0 Reputation points
3 answers One of the answers was accepted by the question author.

XmlDocument to XmlReader?

Hello I used to load an XML file into an XDocument and keep it intact in memory, then pass it to another object when needed, since it only accepts XmlReader, I was using XDocument.CreateReader. Now am moving from XDocument to XmlDocument, just no idea…

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,604 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,657 questions
asked 2024-07-13T23:12:42.57+00:00
StewartBW 845 Reputation points
commented 2024-07-15T12:37:10.69+00:00
StewartBW 845 Reputation points
0 answers

Error APPX1101: [UWP] Payload contains two or more files with the same destination path: Microsoft.Web.WebView2.Core.dll

Installed Visual Studio 2022 (on a clean/fresh Windows 11 installation) version 17.10.0 Installed Microsoft.Identity.Client.Desktop Nuget package to open sign in within the window application. After that I'm getting "Found multiple publish…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,600 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,183 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,604 questions
asked 2024-07-15T10:48:23.1366667+00:00
Ravi Khandale 0 Reputation points
1 answer

sửa lỗi này giúp mình với

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,273 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,604 questions
asked 2024-07-09T05:55:00.4833333+00:00
Ngọc Hân 0 Reputation points
commented 2024-07-15T09:47:24.2533333+00:00
Hongrui Yu-MSFT 945 Reputation points Microsoft Vendor
1 answer

Help Needed: Errors in Initial .NET MAUI Project

I have created my first .NET MAUI project several times, but to my surprise, errors appear without changing any line of code. Although the application runs fine, the lines remain underlined. I have captured a screenshot so you can see the issue and guide…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,183 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,604 questions
asked 2024-07-08T01:24:07.06+00:00
Roberto C 120 Reputation points
commented 2024-07-15T09:41:34.1466667+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 71,836 Reputation points Microsoft Vendor
1 answer

I dont understand why OnPropertyChanged is not firing in neither my Model or ViewModel

I am using the MVVM Community Tollkit and below is the generated code. I also included my Model code and the OnPropertyChanged Method. I put a breakpoint in the generated code on the property Spousessn and it was fired and OnPropertyChanged in the…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,183 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,604 questions
asked 2024-07-09T21:32:59.66+00:00
Tom Meier 220 Reputation points
commented 2024-07-15T09:40:44.49+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 71,836 Reputation points Microsoft Vendor
2 answers

ADFS retrieving claims using native client application

Hi, We are currently attempting to write a test application in C#, which needs to retrieve certain claims upon authorization. No matter what we have tried, it seems we only receive the same 10 claims from the ADFS server (see image for the received…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,600 questions
Active Directory Federation Services
Active Directory Federation Services
An Active Directory technology that provides single-sign-on functionality by securely sharing digital identity and entitlement rights across security and enterprise boundaries.
1,221 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,604 questions
asked 2024-07-01T22:16:09.97+00:00
G_Niles 0 Reputation points
answered 2024-07-15T08:59:31.2766667+00:00
Josip Jurišić 1 Reputation point
0 answers

Error APPX1101: [UWP] Payload contains two or more files with the same destination path: Microsoft.Web.WebView2.Core.dll

Installed Visual Studio 2022 (on a clean/fresh Windows 11 installation) version 17.10.0 Installed Microsoft.Identity.Client.Desktop Nuget package to open sign in within the window application. After that I'm getting "Found multiple publish…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,600 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,183 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,604 questions
asked 2024-07-15T08:52:40.6066667+00:00
Ravi Khandale 0 Reputation points
1 answer

Saving and reading data in Binary Format

Hello I am developing a Firebase supported project. What I want to do is to take the current data and keep it in a file in Binary format so that it cannot be read easily. I thought of such a method because the data does not contain very sensitive data. I…

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,604 questions
asked 2024-07-08T11:21:44.9866667+00:00
fatih uyanık 80 Reputation points
commented 2024-07-15T08:17:43.93+00:00
Jiale Xue - MSFT 42,401 Reputation points Microsoft Vendor
2 answers

How to detect a device

Hi, I'm currently working on .net core web API project . There is a moment that I can't figure out. I had to detect the device which user used when signed in. I used "user-agent" first but this only says if its smartphone, Desktop etc. And only…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,361 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,604 questions
asked 2024-06-27T20:25:13.6533333+00:00
Atilla Rüstəmli 20 Reputation points
commented 2024-07-15T08:17:13.37+00:00
Atilla Rüstəmli 20 Reputation points
1 answer

The data specified for the media type is invalid inconsistent or not supported by this object

Hi, I have an windows form application which is recording video by using Media Capture. This app is taking hundreds of record in a day but in a few days getting(once in 500-550 record) an error which below; "The data specified for the media type is…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,869 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,604 questions
asked 2024-07-01T14:58:38.8666667+00:00
Ali 0 Reputation points
commented 2024-07-15T07:55:04.8566667+00:00
Jiale Xue - MSFT 42,401 Reputation points Microsoft Vendor
1 answer

Visual studio compiler error

have this problem: I can't run the code, it says: The "ResolveAppHosts" task was not given a value for the required parameter "RuntimeGraphPath". I don't know what I can do, please help me .NET version 6.0, C#

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,851 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,604 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.
966 questions
asked 2024-07-07T20:45:55.3733333+00:00
Yura Yarotskyi 0 Reputation points
commented 2024-07-15T07:40:45.8333333+00:00
Tianyu Sun-MSFT 29,186 Reputation points Microsoft Vendor
1 answer

How to Create a Device on AAD Using Microsoft Graph API ?

I'm trying to use the Microsoft Graph API to create a device in Microsoft Entra ID. I need to generate a device ID and include it in the deviceid property of the POST request. Additionally, I want to know if this API call can join my Windows machine to…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,318 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,604 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,462 questions
asked 2024-07-10T11:26:38.5+00:00
sarvesh chaudhari 0 Reputation points
commented 2024-07-15T06:17:43.32+00:00
Givary-MSFT 30,441 Reputation points Microsoft Employee
1 answer

Selecting text across the elements

I am working on a UWP app where i will get the text content and their respective X and Y coordinates. I need to render this text in UI in the respective coordinates, I have achieved this through canvas panel and text block but here i face another…

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,604 questions
asked 2024-07-08T05:50:54.8466667+00:00
shriram 90 Reputation points
commented 2024-07-15T06:09:43.1666667+00:00
Roy Li - MSFT 32,731 Reputation points Microsoft Vendor
1 answer

Exporting and Importing PowerApp Forms for SharePoint Lists Using C# .NET Core

Hi Team, I have a custom PowerApp form for one SharePoint site list. I need to create a new PowerApp form similar to the previous one for a new site list. How can I export the previous list PowerApp and import it to the new list using a C# .NET Core…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,600 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,211 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,604 questions
asked 2024-07-12T06:55:39.31+00:00
ArunKumar Arumugam 20 Reputation points
answered 2024-07-15T05:36:02.5+00:00
Yanli Jiang - MSFT 23,581 Reputation points Microsoft Vendor
2 answers

Task - await - synchron - async

Hello! My goal is to send a request and receive an answer. I have a C# WinForm application. The button is synchronous Task<(bool, string, int)> task = Task.Run<(bool, string, int)> I can write it that way for the call, that is usual 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,604 questions
asked 2024-07-11T18:10:59.4966667+00:00
Noah Aas 400 Reputation points
commented 2024-07-15T03:06:27.9233333+00:00
Jiale Xue - MSFT 42,401 Reputation points Microsoft Vendor
0 answers

How to troubleshoot the exception, Could not create TLS secure channel?

Hello there, I have this C# code that consumes a SOAP WS and it was working properly for years. However, since recently it started to throw the following exception: The request was aborted: Could not create SSL/TLS secure channel. Basically it imports…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,361 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,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,604 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
316 questions
asked 2024-07-12T14:24:34.8133333+00:00
Kuler Master 266 Reputation points
commented 2024-07-15T01:59:19.77+00:00
Tiny Wang-MSFT 2,171 Reputation points Microsoft Vendor
0 answers

Issues with Access Permissions in PhoneLineTransportDevice API on Windows 11

I am currently working on a hands-free application on Windows and using the PhoneLineTransportDevice API. To utilize the features of this API, I initially request access permissions using the PhoneLineTransportDevice.RequestAccessAsync() method. This…

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,604 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,884 questions
asked 2024-07-07T03:07:39.5133333+00:00
Taylor Yi 0 Reputation points
commented 2024-07-15T01:36:57.5833333+00:00
Roy Li - MSFT 32,731 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

Displaying graphic dynamically - from path as content of a field

Perhaps someone could help me with the ahref / src format to display a graphic from the wwwroot folder from a path that is content of a field? Trial and Error Attempts: Environment:

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,361 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,604 questions
asked 2024-07-14T15:36:56.13+00:00
Dean Everhart 1,516 Reputation points
accepted 2024-07-14T21:05:23.01+00:00
Dean Everhart 1,516 Reputation points
2 answers

Unicode in Console App - C#

Hello, I wrote a program to show UTF-16 emojis in Console App. When I ran the console app in PS from windows terminal, I can see emojis. But If I ran the program in PS without a windows terminal, I can't see it. Please see: …

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,604 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,448 questions
asked 2022-11-20T23:34:03.033+00:00
Shervan360 1,481 Reputation points
commented 2024-07-14T20:05:14.4666667+00:00
LUCAS BENTO DOS SANTOS FERNANDES 0 Reputation points