10,648 questions with C#-related tags

Sort by: Updated
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,648 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,231 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,648 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
1 answer One of the answers was accepted by the question author.

Taskbar (Shell_TrayWnd) Alignment of items using Win32 API

Currently, I have a problem with changing the alignment of items such as Start Button, Search, Pinned items. I wrote code, which works in a Console Application, but it won't work in a WinUI 3 or UWP Packaged Desktop application because of restrictions…

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,099 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,523 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-06-14T12:30:53.7566667+00:00
Jacob Mordon 65 Reputation points
commented 2024-07-25T00:49:59.66+00:00
Michael Taylor 51,346 Reputation points
3 answers

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

Hello, I have been developing an application to take a file that has been exported from the web and open it up. I have it working completely for 64 bit office, but I am running into issues trying to get it to work for 32 bit office. Here is the Error 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,648 questions
asked 2022-05-19T19:22:23.917+00:00
Trevor Strike 1 Reputation point
answered 2024-07-24T22:33:33.9833333+00:00
Karen Payne MVP 35,386 Reputation points
1 answer One of the answers was accepted by the question author.

DOTNET sandbox not working

I am trying to take the C# class on Microsoft learn. https://learn.microsoft.com/en-us/training/modules/csharp-write-first/3-how-it-works However the right-side dotnet sandbox refuses to load. It just spins endlessly and renders nothing. Was…

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-03-07T16:59:09.4133333+00:00
Sawyer Jenson 30 Reputation points
commented 2024-07-24T22:12:16.2966667+00:00
tray haroun 0 Reputation points
1 answer

How to fix SystemLoadExecption

Exception has occurred: CLR/System.TypeLoadException An unhandled exception of type 'System.TypeLoadException' occurred in Winappli.dll: 'Could not load type 'Microsoft.Toolkit.Uwp.Notifications.NotificationActivator' from assembly…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,873 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
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,988 questions
asked 2024-07-23T23:13:08.8466667+00:00
Nat323 0 Reputation points
commented 2024-07-24T10:28:00.3+00:00
Viorel 114.7K Reputation points
1 answer One of the answers was accepted by the question author.

How to set mail do not forward with Graph Api?

I want recipients cant forward the mail what I send with graph api .Could you tell me how do it?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,448 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-23T09:11:33.21+00:00
Joe Fu 20 Reputation points
accepted 2024-07-24T03:04:57.2133333+00:00
Joe Fu 20 Reputation points
1 answer One of the answers was accepted by the question author.

Invalid UserName in ASP.NET Core 6

I am working on an ASP.NET Core 6 MVC application that uses ASP.NET Core Identity. When I try to create a new user using the UserManager, I get this error: User name ' ' is invalid, can only contain letters or digits Username do not has any…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
726 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-22T09:02:47.1366667+00:00
mostafa ahmed 41 Reputation points
accepted 2024-07-23T22:36:34.12+00:00
mostafa ahmed 41 Reputation points
3 answers

How to Read a SharePoint List Using .NET 8?

System.Net.WebException: 'The remote server returned an error: (403) FORBIDDEN.' I am using .NET 8, and I've already tried with GetACSAppOnlyContext but it wouldn't work because I need to access more than 5 SharePoint sites simultaneously. There was…

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,300 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-17T18:10:37.2833333+00:00
Artillis Prado 0 Reputation points
answered 2024-07-23T21:28:48.4866667+00:00
Bruce (SqlWork.com) 61,731 Reputation points
1 answer

Issue with Azure Orchestration Function

I am building an Azure Orchestration Function App that has four different functions. The first function is a start task function that removes containers inside a Cosmos DB database. The second function, which I am having a problem with, scans a Cosmos DB…

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,679 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,648 questions
Azure
Azure
A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.
1,089 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-23T03:09:47.8733333+00:00
Redar Ismail Chicho 1 Reputation point
answered 2024-07-23T16:22:26.49+00:00
Sina Salam 7,441 Reputation points
2 answers One of the answers was accepted by the question author.

How to integrate IM application with Office without Lync installed?

I am trying to integrate an IM application with Office 2019 where Lync/Skype for Business is not installed. The official Microsoft doc says : If you are integrating using Office Standard, you need to extract the type library and install it on 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
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 2022-01-19T11:01:31.647+00:00
Manoj 86 Reputation points
commented 2024-07-23T14:27:25.27+00:00
Santosh Singh 0 Reputation points
0 answers

Not Receiving Typing Activity in Microsoft Bot Framework

Hello, I'm currently working on a bot using the Microsoft Bot Framework and am hosting it on Azure. Everything seems to be working fine, and has been for a while, except when trying to implement live typing indicators when talking with users. I've…

Azure AI Bot Service
Azure AI Bot Service
An Azure service that provides an integrated environment for bot development.
807 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-23T11:37:07.76+00:00
Hugo 0 Reputation points
1 answer

Trouble accessing custom field properties in ObservableCollection

I created an ObservableCollection in my ViewModel and defined a CustomField class that implements INotifyPropertyChanged. However, when I try to access the properties of the CustomField model in the view, I get an error saying that the members cannot be…

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
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,231 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-17T18:43:00.8866667+00:00
Mirai Dinelli 0 Reputation points
commented 2024-07-23T08:59:17.2366667+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 72,251 Reputation points Microsoft Vendor
0 answers

How to Host the Firestore Identity File Securely?

I am working on a WPF project with C#, and I am using Firebase Firestore for which I need to host the identity JSON file on disk. However, I want to ensure that users cannot access this file or the Firestore services using the information inside it. What…

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,710 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-19T09:13:39.21+00:00
fatih uyanık 80 Reputation points
edited a comment 2024-07-23T08:51:46.67+00:00
Hongrui Yu-MSFT 1,025 Reputation points Microsoft Vendor
1 answer

System.IO.Ports only availble on windows, but im using windows - .NET6

So i'm trying to read arduino serial from c#, but it shows me the folowing exeption when i try to open the port: System.PlatformNotSupportedException: 'System.IO.Ports is currently only supported on Windows I am currently using windows 11. Also i tried…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,648 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-03-17T16:58:29.7233333+00:00
Borda Ákos 15 Reputation points
commented 2024-07-23T05:23:07.7966667+00:00
guangchao sun 0 Reputation points
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,888 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
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.
967 questions
asked 2024-07-07T20:45:55.3733333+00:00
Yura Yarotskyi 0 Reputation points
edited a comment 2024-07-23T03:46:49.4166667+00:00
Tianyu Sun-MSFT 29,446 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

TripleDes problem in .Net

I use TripleDes to encrypt/decrypt. I have a program in the .Net Framework version and in the .Net version. According to the code I show, in .NetFw it returns an object "System.Security.Cryptography.CryptoAPITransform" to TDes_ICryptoTransform…

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-22T03:56:40.81+00:00
zequion 271 Reputation points
accepted 2024-07-23T02:40:01.47+00:00
zequion 271 Reputation points
1 answer

Timer Function returns 404 on consumption plan. cronjob but http fn invokes ok

Timer function returns 404 from both postman and Az Portal test/run. Http function executes from Postman and from Az Portal test/run, OK. App is deployed from GitHub Action. I have used Restart and Refresh but cron job does not fire. Publishing model:…

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,679 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-09T03:41:19.5333333+00:00
ozbobwa 21 Reputation points
answered 2024-07-23T02:31:52.0933333+00:00
ozbobwa 21 Reputation points
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,648 questions
asked 2024-07-08T05:50:54.8466667+00:00
shriram 90 Reputation points
commented 2024-07-23T01:39:14.0233333+00:00
Roy Li - MSFT 32,731 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

Regex.Matches return no duplicates?

Hello Dim blah As MatchCollection = Regex.Matches(text, "([a-zA-Z0-9_-.]+)@([a-zA-Z0-9_-.]+).([a-zA-Z]{2,9})", RegexOptions.CultureInvariant Or RegexOptions.IgnoreCase Or RegexOptions.Multiline) How may I force Regex.Matches not to return…

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-22T18:50:26.8233333+00:00
StewartBW 925 Reputation points
accepted 2024-07-22T20:55:56.1633333+00:00
StewartBW 925 Reputation points