11,152 questions with C#-related tags

Sort by: Updated
2 answers

Can we convert .eml file to pdf , .docx or any image format

I am fetching the email from exchange server through graph api and then saving it to .eml , for which i didn't got any way to directly convert it into pdf , .docx or any image format . But while going through outlook when we open any message and go to…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,652 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.
11,152 questions
asked 2021-12-10T10:50:19.877+00:00
palak agarwal 1 Reputation point
answered 2024-12-25T07:16:24.7666667+00:00
levi garcia 0 Reputation points
0 answers

Issue with 405 Method Not Allowed instead of 401 Unauthorized in ASP.NET Core with JWT Authentication

Hi everyone, I'm encountering an issue with my ASP.NET Core application where I'm getting a 405 Method Not Allowed error instead of the expected 401 Unauthorized error when accessing an endpoint that requires authentication. Here's a detailed description…

Microsoft Identity Manager
Microsoft Identity Manager
A family of Microsoft products that manage a user's digital identity using identity synchronization, certificate management, and user provisioning.
728 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,006 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,702 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.
11,152 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.
355 questions
asked 2024-12-25T05:41:55.44+00:00
Naser AL-Asbahi 0 Reputation points
edited the question 2024-12-25T05:51:05.6166667+00:00
Naser AL-Asbahi 0 Reputation points
2 answers

How to run asp.net web application using visual studio code ?

I work on .NET 4.7. I have an issue: I can't run applications in Visual Studio Code. I don't know how to run it. Startup page is http://localhost:22851/WebPages/loginT.aspx This page opens in Visual Studio 2019, but how to open the page logint.aspx in…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,547 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.
11,152 questions
asked 2024-12-24T21:40:42.5133333+00:00
ahmed salah 3,216 Reputation points
answered 2024-12-25T03:36:44.36+00:00
XuDong Peng-MSFT 10,841 Reputation points Microsoft Vendor
1 answer

FirebaseApp Initialization Error in MAUI .NET 8

Hello, I am encountering an issue with initializing Firebase in my MAUI Android and iOS projects. The error message I am receiving on Android is: [mono-rt] [ERROR] FATAL UNHANDLED EXCEPTION: Java.Lang.IllegalStateException: Default FirebaseApp is not…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,762 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.
11,152 questions
asked 2024-12-24T11:32:28.0366667+00:00
Omkar Pawar 20 Reputation points
answered 2024-12-25T02:53:29.17+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 46,206 Reputation points Microsoft Vendor
1 answer

Dependency Properties in User Controls

I have a simple Slider and Label user control that I load into my window and I want to change the following properties using databinding from the main window. Slider Properties -> Value, SelectionStart, SelectionEnd (all doubles) Label Properties…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,006 questions
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,804 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.
11,152 questions
asked 2024-12-18T16:06:49.42+00:00
dmccric 0 Reputation points
commented 2024-12-25T02:33:59.9366667+00:00
Hongrui Yu-MSFT 3,645 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

Microsoft Authenticator

Hello, I am currently experiencing issues with the Microsoft Authenticator app. When I try to log in to an application, it asks me to enter a security code generated by Microsoft Authenticator. Unfortunately, I have forgotten the security code, and I did…

Microsoft Authenticator
Microsoft Authenticator
A Microsoft app for iOS and Android devices that enables authentication with two-factor verification, phone sign-in, and code generation.
7,506 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.
11,152 questions
asked 2024-12-01T08:18:29.34+00:00
Chuyên Minh 25 Reputation points
edited the question 2024-12-25T01:42:10.6133333+00:00
Jack J Jun 24,616 Reputation points Microsoft Vendor
3 answers One of the answers was accepted by the question author.

Why am I Only Seeing Warning Level Logs in Application Insights?

I am working on an ASP.NET Core application and have integrated Application Insights for logging. However, I'm facing an issue where only Warning level logs (severity level 2) are being sent to Application Insights, even though I expect to see logs of…

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,396 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,006 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.
11,152 questions
asked 2024-12-19T16:21:16.08+00:00
Neeraj Mahajan 81 Reputation points
edited the question 2024-12-25T01:28:31.01+00:00
Jack J Jun 24,616 Reputation points Microsoft Vendor
1 answer

MAUI stops keeping the display up to date when an HTTP request is made

I am new to MAUI programming as well as parallel Thread programming. I have retrieved a MAUI application that I am trying to modify. The application captures a sound sample and transmits it to a server to identifies its origin among a set of determined…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,762 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.
11,152 questions
asked 2024-12-24T18:56:53.3366667+00:00
Boucourt 105 Reputation points
commented 2024-12-24T20:50:02.45+00:00
Boucourt 105 Reputation points
1 answer One of the answers was accepted by the question author.

Regex for QRCode Information

Hello everyone and thanks for the help in advance. I am developing a program to read information scanned by a QRCode reader. Here is a sample of the input (01)00358160740213(17)260515(10)32PF3(21)5HZ6R1PX8C The input includes the GS1 separator fields…

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.
11,152 questions
asked 2024-12-23T19:58:28.1133333+00:00
Kmcnet 866 Reputation points
accepted 2024-12-24T18:17:56.26+00:00
Kmcnet 866 Reputation points
0 answers

ML.NET ImageClassification with GPU

I 'll get a very low accuracy(about 3%) This is not the case with CPU(about 88%) with RTX 3070ti What may be the reason for this?

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.
11,152 questions
.NET Machine learning
.NET Machine learning
.NET: Microsoft Technologies based on the .NET software framework.Machine learning: A type of artificial intelligence focused on enabling computers to use observed data to evolve new behaviors that have not been explicitly programmed.
159 questions
asked 2021-11-06T08:38:22.377+00:00
scixing 21 Reputation points
commented 2024-12-24T17:11:11.6433333+00:00
Sungho Hong 0 Reputation points
2 answers

Blazor 8.0 NavigateTo throws an exception

Hello, I have a language selector that calls the following code and it works like a charm. On other hand, I want to change the language from within the MainLayout on Initialized event (async) but then the very same code throws an exception of type…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,702 questions
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,636 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.
11,152 questions
asked 2024-12-19T08:59:18.7133333+00:00
Kuler Master 306 Reputation points
edited a comment 2024-12-24T16:32:50.1733333+00:00
Bruce (SqlWork.com) 68,411 Reputation points
1 answer

Unable to publish with fulltrustprocess and Multiple instances of UWP app

UWP experts , There are three components here. Main UWP app with multiple instances supported through package manifest - C# UWP FullTrustprocess that acts as the appserviceconnection server - C# .NET 8 WAPP Package that bundles UWP app and…

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.
11,152 questions
asked 2024-12-03T06:00:38.49+00:00
DotNET Fan 271 Reputation points
commented 2024-12-24T08:31:01.2866667+00:00
Roy Li - MSFT 33,496 Reputation points Microsoft Vendor
1 answer

How to use WebView2 AddBrowserExtensionAsync in UWP?

Attempted to use webView.CoreWebView2.Profile.AddBrowserExtensionAsync(extensionPath) but received the exception "The request is not supported." It's understood that AreBrowserExtensionsEnabled must be set to True, and the property is found in…

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.
11,152 questions
asked 2024-12-09T06:04:18.1566667+00:00
Victor Chen 106 Reputation points
commented 2024-12-24T08:00:38.7866667+00:00
Junjie Zhu - MSFT 19,746 Reputation points Microsoft Vendor
1 answer

The local farm is not accessible. cmdlets with featuredependencyid are not registered

Dears, Hope this mail finds you well. We are facing an issue with our SharePoint server while opening either the Windows PowerShell or SharePoint Management Shell, throwing an error as “The local farm is not accessible..”. I tried to run the Shell with…

SharePoint Server
SharePoint Server
A family of Microsoft on-premises document management and storage systems.
2,399 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.
11,152 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,585 questions
asked 2024-12-11T08:30:11.6333333+00:00
Fahed Kollikavil 0 Reputation points
commented 2024-12-24T07:31:48.58+00:00
RaytheonXie_MSFT 37,076 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

About Async Methods and Binding in WPF MVVM

Hello, In my WPF MVVM project, I have an asynchronous method that returns Task<List<Person>>. I would like to define a property like this: public Task<List<Person>> PersonsTask => GetPersons(); I want to bind this property…

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.
11,152 questions
asked 2024-12-23T10:07:23.4066667+00:00
fatih uyanık 140 Reputation points
accepted 2024-12-24T06:13:54.3633333+00:00
fatih uyanık 140 Reputation points
1 answer

TEAMS 's CHATMESSAGE

Please ask C# how to use clientId, tenantId, clientSecret, chatId these parameters to send messages to the group graphClient.Chats[chatId].Messages.PostAsync(requestBody);

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,652 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.
11,152 questions
asked 2024-12-02T09:33:35.44+00:00
Gene-Enli (蔡承祐) 0 Reputation points
commented 2024-12-24T05:46:49.77+00:00
CarlZhao-MSFT 43,726 Reputation points
1 answer

How to use DataContractSerializer with Binder

Hi Team, We are converting BinaryFormatter to DataContractSerializer in our code. With BinaryFormatter we had used Binder property , How can we convert that with DataContractSerializer? Sample: var bf = new BinaryFormatter(); bf.Binder = new…

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.
11,152 questions
asked 2024-12-22T08:01:24.79+00:00
Deepak Rane (drane) 60 Reputation points
commented 2024-12-24T02:30:50.9066667+00:00
Jiale Xue - MSFT 48,441 Reputation points Microsoft Vendor
2 answers

Public Client Application MSAL.NET deployed to Azure App Service

I have developed a Web-Api application which does access 3rd party users mail. The application is obtaining access through MSAL.NET with a PublicClientApplicationBuilder sample of which is shown at the following link:…

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.
11,152 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,090 questions
asked 2024-12-05T11:10:58.9666667+00:00
Avrohom Singer 0 Reputation points
edited an answer 2024-12-23T18:53:57.44+00:00
Shree Hima Bindu Maganti 1,585 Reputation points Microsoft Vendor
2 answers

Azure SQL Trigger Cant use Enviroment Variable as connectionstring

Hei i got a simpel SQL trigger and i understand appsettings is not the best approuch when in comes to sensitive data i want to use Enviroment variables instead, but im getting the error "CS0182: an attribute must be a constant expression". I…

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,249 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.
11,152 questions
asked 2024-12-20T07:59:26.0633333+00:00
henrik johansen 0 Reputation points
commented 2024-12-23T18:00:57.99+00:00
Khadeer Ali 1,400 Reputation points Microsoft Vendor
1 answer

Could not load file or assembly ‘Microsoft.IdentityModel.Abstractions, Version=6.35.0.0. Nuget version mismatch Microsoft.IdentityModel.Abstractions

I am developing a C# dll based on .NET framework 4.8.2 which will use Microsoft Graph API to send email through outlook. For this I have added the latest Nuget packages for “Microsoft.Graph” v5.67.0 and "Microsoft.Identity.Client" v4.66.2 .…

Outlook
Outlook
A family of Microsoft email and calendar products.
4,218 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,652 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.
11,152 questions
asked 2024-12-20T16:00:23.2666667+00:00
Subhasis Ghosh 0 Reputation points
commented 2024-12-23T16:05:16.5466667+00:00
Michael Taylor 55,676 Reputation points