10,879 questions with C#-related tags

Sort by: Updated
7 answers

Microsoft.Data.SQLClient 5.2.0 fails to work with .Net 8

I am having issues creating a Class library with C# and .net 8 that uses Microsoft.Data.SQLClient. version 5.2.0 which states that it will run on .net 8 platform. Here is the code for the class library using System.Data; 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,879 questions
asked 2024-05-04T22:39:27.66+00:00
Moshe Yalovsky 5 Reputation points
answered 2024-09-27T20:11:59.0366667+00:00
Tacito Fieker 0 Reputation points
0 answers

Customizing Layout / Position of RadioButton Without RadioButtonGroup

I want the layout of my app to have several RadioButton(s) that are arranged in very unusual ways, there are other View(s) in the layout that make RadioButtonGroup inappropriate because it would contain many other View(s) and be hard to layout. I am…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,344 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,879 questions
asked 2024-09-27T18:59:44.78+00:00
Nathan Sokalski 4,126 Reputation points
2 answers

How do I set up a new computer to run an executable I have built with Microsoft Visual Studio?

How do I set up a new computer to run an executable I have built with Microsoft Visual Studio? It has been a pain. First we found out that .Net had to be installed. Now I have learned that it is expecting to have all the namespace DLLs 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,879 questions
asked 2024-09-27T17:00:56.5466667+00:00
William Thompson 120 Reputation points
edited an answer 2024-09-27T17:45:23.3866667+00:00
Bruce (SqlWork.com) 64,816 Reputation points
1 answer

How to fix deployment error "Error occurred in deployment step 'Add Solution'" on Visual Studio

Hi, I'm working on SharePoint 2010 application code on Visual Studio 2010. When I Clean, build and deploy solution getting error since yesterday like: "Error occurred in deployment step 'Add Solution': Failed to call GetTypes on assembly…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,471 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,077 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,651 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
978 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,879 questions
asked 2024-09-27T13:40:29.97+00:00
VG 0 Reputation points
commented 2024-09-27T17:23:03.2466667+00:00
Harold Morales Picado 80 Reputation points
0 answers

Usermanager generate email confirmation token sometimes returns null

Why is it that sometimes the _userManager.GenerateEmailConfirmationTokenAsync(user); returns null. It's very rare to happen but it is happening and I need to know the reason behind it. This is my current configuration for Identity …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,542 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,879 questions
asked 2024-09-27T16:40:25.5433333+00:00
Alex 0 Reputation points
edited the question 2024-09-27T16:41:01.04+00:00
Alex 0 Reputation points
1 answer

Permission denied on executable in Azure Functions (C#, Linux)

I am trying to run packed to a single file ffmpeg on Linux on Azure function: var ffmpeg = $"/home/site/wwwroot/ffmpeg"; var videoPath = Path.GetFullPath($"SampleVideo1.mp4"); var ffmpegCommand = $"{ffmpeg} -i…

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,951 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,879 questions
asked 2024-09-26T10:02:40.94+00:00
Michał Grzyśka 0 Reputation points
commented 2024-09-27T15:28:55.95+00:00
Bruce (SqlWork.com) 64,816 Reputation points
1 answer

How to fix ManagedIdentityIsNotEnabled error in Azure Web App?

I recently deployed my AI RAG system build with Azure AI Studio as a web app. When trying to chat on the app I get: Error code: 400 - {'error': {'requestid': '93caf8bc-7e09-4a2f-8281-4919fd568e77', 'code': 400, 'message': 'Failed to get managed identity…

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,879 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,720 questions
asked 2024-09-26T08:15:46.21+00:00
Filip Ge 0 Reputation points
commented 2024-09-27T15:21:41.91+00:00
TP 93,226 Reputation points
0 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,765 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,879 questions
asked 2024-09-27T15:19:25.7666667+00:00
Ajay Gera 20 Reputation points
0 answers

JAWS or windows narrator not working for label and tooltip for c# wpf application

Hi, I am using JAWS screen reader / windows narrator on wpf dialog for wpf application. But reader does not says about label text and tooltip on hovering on the label. I have used AutomationProperties.Name , AutomationProperties.LabeledBy as per link…

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,765 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,879 questions
asked 2024-09-27T14:54:07.38+00:00
Ajay Gera 20 Reputation points
0 answers

Tab Bar Content Titles Trimmed After Navigating to Custom WebView in .NET MAUI iOS App

I'm encountering an issue in my .NET MAUI application on iOS where the titles in the TabBar's ShellContent are being trimmed or cropped. This issue occurs only after navigating to a page that contains a WebView (referred to as "AppWebView") and…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,449 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,879 questions
asked 2024-09-24T09:32:40.7366667+00:00
Nikhil Kurian 0 Reputation points
commented 2024-09-27T13:37:51.46+00:00
Nikhil Kurian 0 Reputation points
1 answer

Error: 535 5.7.139 Authentication unsuccessful SMTP

I have a Windows Form application that sends emails by SMTP. Since last week I have been receiving the following error: 5.7.57 Client not authenticated to send mail. Error: 5.7.57 Client not authenticated to send mail. Error: 535 5.7.139 Authentication…

Outlook
Outlook
A family of Microsoft email and calendar products.
3,759 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,879 questions
asked 2024-09-26T16:49:40.9466667+00:00
Wesley Santos 0 Reputation points
commented 2024-09-27T12:08:41.6733333+00:00
Wesley Santos 0 Reputation points
1 answer

What associated DLL's need to be included in order for a net6.0 console app to run?

I have created a console app with Microsoft Visual Studio. I have put it into a directory off of my C drive and I have run it from the command line. This is the Release version of the .EXE and not the debug version. One thing I have noticed is that…

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,879 questions
asked 2024-09-26T19:12:53.05+00:00
William Thompson 120 Reputation points
commented 2024-09-27T10:00:24.6333333+00:00
Jiale Xue - MSFT 44,841 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

Using IDENTITY_INSERT with FK_ChildTable_ParentTable?

Hello, Wrapping SaveChanges with ON and OFF works fine with individual tables. But not in case of a parent-child relationship where a foreign key exists. Microsoft.Data.SqlClient.SqlException (0x80131904): Cannot insert explicit value for identity column…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
740 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,542 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,736 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,879 questions
asked 2024-09-16T22:33:43.8366667+00:00
Joyce 80 Reputation points
edited a comment 2024-09-27T09:47:13.0733333+00:00
Joyce 80 Reputation points
1 answer

How to log in with HTTP POST protocol first and then show the homepage with "WebView" package?

How to log in with HTTP POST protocol first and then show the homepage with "WebView" package? The website needs to log in with HTTP POST protocol first, and then the web will be directed to its homepage. The code shows me logging in…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,344 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,879 questions
asked 2024-09-26T05:05:19.2033333+00:00
HC 1 Reputation point
commented 2024-09-27T07:18:45.41+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 42,361 Reputation points Microsoft Vendor
1 answer

UWP Windows.System.Launcher.LaunchUriAsync is not opening correctly in browser when the URI supports opening the link in other uwp app and browser.

Hi I'm using Windows.System.Launcher.LaunchUriAsync to open a URI, I'm prompted with a dialogue when the URI can be opened in other uwp app and browser. If chosen browser, it opens the local path - AppData/Local/Microsoft/Windows/INetCache instead of…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,819 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,879 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.
806 questions
asked 2024-09-16T05:48:47.1033333+00:00
Harsini 0 Reputation points
commented 2024-09-27T07:02:16.2266667+00:00
Harsini 0 Reputation points
1 answer

UWP How to cancel a file search

I have a code to search for files in a user's selected folder, the file search takes some time and I need to be able to cancel it if the user changes the folder QueryOptions options = new QueryOptions(CommonFileQuery.OrderByName, filesExtensions) {…

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,879 questions
asked 2024-09-10T15:14:33.9233333+00:00
Arsen Kovalchuk 0 Reputation points
answered 2024-09-27T06:43:09.5233333+00:00
youzeliang 640 Reputation points
1 answer

using readAllBytes throws "file not accessible error"

I trying to read an encrypted file using the following: and getting access not allowed error. // would prefer to use the following instead of picker" // AuthFile = @"C:\vbscripts\pid.txt"; // if…

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,879 questions
asked 2024-09-11T21:45:09.99+00:00
tim 160 Reputation points
commented 2024-09-27T06:36:38.3633333+00:00
Roy Li - MSFT 33,091 Reputation points Microsoft Vendor
1 answer

c# UWP resource directory DataTemplate with x:DataType not working

HI, using VS2022 UWP c# I am trying to put a DataTemplate into a ResourceDictionary using a x:DataType I get a compile error Severity Code Description Project File Line Suppression State Error The XAML Binary Format (XBF) generator reported syntax…

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,879 questions
asked 2024-09-12T14:45:36.5366667+00:00
Paul Ryan 321 Reputation points
commented 2024-09-27T06:36:08.5366667+00:00
Roy Li - MSFT 33,091 Reputation points Microsoft Vendor
0 answers

Error when trying to login using Microsoft Cognitive Services in Public Desktop Client App in Entra External ID tenant

I have an Entra External ID tenant with a registered public desktop app from which I want to call the APIs from an Azure Speech Service resource. Via MSAL I log in like this: var clientId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"; var tenantId…

Azure AI Speech
Azure AI Speech
An Azure service that integrates speech processing into apps and services.
1,697 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,542 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,879 questions
Microsoft Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
2,859 questions
asked 2024-09-25T13:18:28.55+00:00
Roman Steiner 0 Reputation points
commented 2024-09-26T19:50:09.3966667+00:00
YutongTie-MSFT 51,256 Reputation points
1 answer

How to pass Fast Startup test with a .NET startup app?

Hi, Applications developed using the .Net Framework are consistently flagged as issues in the Fast Startup assessment of the Windows Assessment Toolkit. Is there a way to avoid being flagged as an issue? Thanks. Best regards, Hank

Windows Performance Toolkit
Windows Performance Toolkit
A collection of Microsoft performance monitoring tools that produce in-depth performance profiles of Windows operating systems and applications.
105 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,879 questions
asked 2024-09-26T08:04:29.33+00:00
Hank 20 Reputation points
answered 2024-09-26T09:33:27.3233333+00:00
Jiale Xue - MSFT 44,841 Reputation points Microsoft Vendor