Microsoft Q&A

.NET

20,323 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

20,323 questions with .NET-related tags

Sort by: Updated
1 answer

I am using Sqlite and Dapper. I need to bypass an exception error and return an empty row when there are no records in the Table or the Database File or Table does not exist.

Hi all Friends, I am returning rows from a Sqlite/Dapper transaction. And if I run into an exception instead of the application crashing, I would like to return an empty row. Thanks !

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,780 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.
8,835 questions
asked 2023-09-06T19:45:21.7633333+00:00
Ronald Rex 1,211 Reputation points
edited the question 2023-09-07T14:18:48.0866667+00:00
Ronald Rex 1,211 Reputation points
0 answers

Can't Compile MAUI Android on .Net 7.0.400

I can't compile a release version of my android app using the latest SDK, i can compile a debug but this is the error i get: 1>C:\Program Files\dotnet\sdk\7.0.400\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(470,5): error : Error:…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
1,954 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,780 questions
asked 2023-09-06T04:17:57.6666667+00:00
Julian Mustatea 0 Reputation points
edited a comment 2023-09-07T14:01:55.22+00:00
Julian Mustatea 0 Reputation points
0 answers

.Net 6 migrated from .Net3 observing error System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception. 2023-09-07 19:14:48 ---> System.Security.Authentication.AuthenticationException: The remote certificate is

Hi Team, I was facing an error with .Net 6 while testing custom POST publish request to mqtt endpoint, even migrated environment docker debian image openssl 3.0.8. System.Net.Http.HttpRequestException: The SSL connection could not be established, see…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
1,954 questions
asked 2023-09-07T13:59:50.7933333+00:00
Manikandan Jayaraman 0 Reputation points
0 answers

How enable Reply button after adding Voting buttons

This code below enables Voting button in my emails (works fine), but emails have Reply, Reply All and Forward greyed out (screenshot below) public static void AddVotingButton(string mailBox, string messageID, string voteOptions) { …

.NET
.NET
Microsoft Technologies based on the .NET software framework.
1,954 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.
2,777 questions
asked 2023-08-31T11:35:33.2333333+00:00
Michal Kuracina 0 Reputation points
edited the question 2023-09-07T13:58:02.47+00:00
Jiale Xue - MSFT 9,011 Reputation points Microsoft Vendor
0 answers

Which MSAL library for a plugin for an electron app?

Hi, I'm struggling to wade through the graph and msal documentation for a project I'm doing. I want to help users sync between logseq and microsoft to do. Logseq is an electron application with a plugin ecosystem. I believe the plugins run on the render…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
1,954 questions
asked 2023-09-07T05:54:01.0133333+00:00
Shawn s 0 Reputation points
edited the question 2023-09-07T13:56:28.2833333+00:00
msft-an 260 Reputation points
0 answers

Updating Shape and Chart Positions After Inserting Columns Using Open XML

I'm working on a project that involves manipulating Excel files programmatically using the Open XML SDK. Currently, I'm facing a challenge regarding updating the positions of shapes/Charts within the worksheet after inserting new columns. I've reviewed…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
1,954 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.
8,835 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.
2,777 questions
asked 2023-09-07T04:22:10.0633333+00:00
Thamindu Wickramasinghe 0 Reputation points
edited the question 2023-09-07T13:36:27.2833333+00:00
Jiale Xue - MSFT 9,011 Reputation points Microsoft Vendor
0 answers

App stopped working on 9/1/2023 with Event Log: 'failed to start process with commandline 'dotnet .\MyApp.dll' ErrorCode = '0x80004005'

Hi there, We had a software app developed back in 2017 that suddenly stopped working a few days ago. I viewed the Application Event Logs and, on 9/1/2023, errors started getting logged which state the following: Application…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,501 questions
asked 2023-09-06T19:27:22.81+00:00
Liz Walls 0 Reputation points
commented 2023-09-07T13:19:48.1133333+00:00
Liz Walls 0 Reputation points
0 answers

How to fix Azure App Service error: ErrorLoadingControl?

This is the error I got after deploying my ASP.NET Core app with PostgreSQL. I found this in App Service logs: Extension: WebsitesExtension Content: WebsiteLogsBlade Error code-- Error reason: ErrorLoadingControl Details_errorData: undefined…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,501 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
5,512 questions
asked 2023-09-07T13:14:51.5866667+00:00
Yousef Kilany 0 Reputation points
1 answer

How to get an azure ad registered app token in a Blazor webassembly

Hi everybody, I try to get a token from an azure AD registered app using MSAL in a blazor webassembly. I have the tenant_id, the client_id and the scope from my registered app and want to get a token. I try to use…

Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
16,295 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,085 questions
asked 2023-09-07T13:13:25.6066667+00:00
Pierre Gourven 41 Reputation points
answered 2023-09-07T13:13:25.61+00:00
Q&A Assist
2 answers

Maui for android NavigationBar backgroundColor

Hello all. Please how do I change NavigationBar backgroundColor to color "#ECE5DD" Thank you very much.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,780 questions
asked 2023-09-06T20:25:25.14+00:00
Haviv Elbsz 1,126 Reputation points
commented 2023-09-07T13:11:46.0166667+00:00
Haviv Elbsz 1,126 Reputation points
0 answers

How to wait for the current lightning creation process to finish when pressing the cancel button?

The logic: When clicking the btnStartProcessing_Click it will start processing next click will stop processing. if clicking the button to stop the processing and it's in the middle of processing a lightning then it will wait for the current lightning…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,595 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.
8,835 questions
asked 2023-09-07T13:08:57.5733333+00:00
eshesh michael 40 Reputation points
0 answers

Missing class android.window.OnBackInvokedCallback (referenced from: android.window.OnBackInvokedCallback androidx.activity.OnBackPressedDispatcher.mOnBackInvokedCallback and 4 other contexts)

Hello! I am new with dotnet MAUI, still learning while working. I am trying to build my Android Application, I use my physical Device (Android 6.0 API 23). If I Debug or make Release the app is compiling and building without any errors and…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
1,954 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,780 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.
825 questions
asked 2022-12-31T15:05:20.33+00:00
YouBT 1 Reputation point
commented 2023-09-07T12:52:28.21+00:00
George Findulov 0 Reputation points
0 answers

Azure AD B2C guessable password policy not applied to Password Reset user flow

I have an ASP.NET Core web app that uses Azure AD B2C for user authentication. I'm noticing some strange behaviour with users setting their passwords using the forgotten password feature and the change password feature. When users go through the in-built…

Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
16,295 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,501 questions
asked 2023-09-07T12:12:42.61+00:00
Umar Ali 0 Reputation points
0 answers

Maui - how to run wpf app with process in mac

Hi, It possible to run WPF app using PROCESS in MAUI under MAC ? Thanks,

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,780 questions
asked 2023-09-07T12:06:28.2133333+00:00
דני שטרית 1,061 Reputation points
0 answers

Maui - Bit locker in MAC

Hi, I used this code to check if USB is bit locker , how is done in MAC ? Thanks, #if WINDOWS using Microsoft.WindowsAPICodePack.Shell.PropertySystem; using Microsoft.WindowsAPICodePack.Shell; namespace GssdDesktopClient.Maui.Helpers { public class…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,780 questions
asked 2023-09-07T12:02:51.3566667+00:00
דני שטרית 1,061 Reputation points
0 answers

Maui - impersonation in MAC

Hi, How i implement in MAC impersonation ? Thanks,

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,780 questions
asked 2023-09-07T11:59:30.3666667+00:00
דני שטרית 1,061 Reputation points
0 answers

Running MAUI app in MAC

Hi, I have Maui app , i want to run on mac. How is can be done ? There is online machine to run this app. Thanks,

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,780 questions
asked 2023-09-07T11:56:57.27+00:00
דני שטרית 1,061 Reputation points
1 answer One of the answers was accepted by the question author.

ReportViewer in WPF

I have already added Microsoft.ReportViewer.WinForms in my WPF Project but I have not been able to solve the following error: <WindowsFormsHost> <rv:ReportViewer x:Name="_rV" /> </WindowsFormsHost> MissingMethodException:…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
1,954 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,457 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
3,693 questions
asked 2023-09-06T13:07:19.9766667+00:00
Harshal Mahale 25 Reputation points
accepted 2023-09-07T11:44:12.8466667+00:00
Harshal Mahale 25 Reputation points
1 answer

Unable to upload 50mb files to Azure App Service hosted application that uses Blazor

I am unable to upload 50mb files to azure app service hosted application, getting the error 413 Requested Entity Too Large. The application is able to upload the file while running locally to Azure Blob storage, but while it is running on Azure App…

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
1,905 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,085 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
5,512 questions
asked 2023-09-06T14:53:49.93+00:00
Bhoir, Harshal Mahendra 0 Reputation points
commented 2023-09-07T11:10:17.51+00:00
Bhoir, Harshal Mahendra 0 Reputation points
1 answer

Hangfire is not working for CosmosDB after migrating from MongoDB giving error: A bulk write operation resulted in one or more errors. WriteErrors: [ { Category : "DuplicateKey", Code : 11000, Message : "E11000 duplicate key error collection: Hangfire

We were using MongoDb in our project and Hangfire was working perfectly fine over there but after we have shifted to CosmosDb Hangfire has stopped working, we are using MongoClient only to connect to CosmosDB by passing CosmosDB connection string to…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,501 questions
Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,175 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
968 questions
asked 2023-09-06T10:25:26.57+00:00
Murtuza Pithawala 0 Reputation points
commented 2023-09-07T10:46:53.2233333+00:00
Murtuza Pithawala 0 Reputation points