25,604 questions with .NET-related tags

Sort by: Updated
1 answer

Cannot Migrate Database

Hello all, I am having issue updating the migration of my database. I am currently using .NET 9.0. I have modified one of my files to include the following: protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.UpdateData( …

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
736 questions
asked 2024-09-16T16:17:42.4466667+00:00
PocketPixie 1 Reputation point
edited a comment 2024-09-18T16:05:06.05+00:00
PocketPixie 1 Reputation point
0 answers

Can we set custom labels defined through Microsoft Information Protection on emails via Graph API?

I am working on integrating Microsoft Information Protection (MIP) with an email system. Specifically, I want to know if it's possible to apply custom sensitivity labels, which are defined through MIP, to emails using the Microsoft Graph API. Here are…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,526 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,886 questions
asked 2024-09-18T15:09:54.2+00:00
Dhananjay Siwach 21 Reputation points
0 answers

How Can I call RuntimeHostConfigurationOption OnStartup of a WPF (C#) application in .NET 8?

Hi there, I have a WPF application where the UI is a very important thing and heart of the application. Due to some UI elements requirements I have some custom RuntimeHostConfigurationOption which I put in my WPF application through the *.csproj file. I…

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,762 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
975 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,858 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.
805 questions
asked 2024-09-11T21:41:55.1+00:00
MERUN KUMAR MAITY 576 Reputation points
commented 2024-09-18T13:37:59.9066667+00:00
MERUN KUMAR MAITY 576 Reputation points
3 answers

.NET 6 / .NET 8 migration, downward compatible

Hi, we started migrating parts of our large project from .NET 4.x to .NET 6 in beginning of 2023. When we started, .NET 8 hadn't existed. It was quite some big effort to do this. Now we will release our product soon. Until the product is at the customer…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,808 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,153 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,808 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,153 questions
asked 2024-01-17T15:39:30.62+00:00
Sponsel, Carsten 0 Reputation points
commented 2024-09-18T12:56:44.5633333+00:00
Greg Montoya 0 Reputation points
3 answers

.NET 6 / .NET 8 migration, downward compatible

Hi, we started migrating parts of our large project from .NET 4.x to .NET 6 in beginning of 2023. When we started, .NET 8 hadn't existed. It was quite some big effort to do this. Now we will release our product soon. Until the product is at the customer…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,808 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,153 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,808 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,153 questions
asked 2024-01-17T15:39:30.62+00:00
Sponsel, Carsten 0 Reputation points
commented 2024-09-18T12:56:44.5633333+00:00
Greg Montoya 0 Reputation points
2 answers

I got two error in the MAUI project when I try to run the project

Below I attached the error message and screenshot: Severity Code Description Project File Line Suppression State Error APPX0002 Task 'WinAppSdkGenerateAppxPackageRecipe' failed. The specified module could not be…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,424 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,858 questions
asked 2024-01-31T11:13:00.39+00:00
Manash Dholey 0 Reputation points
answered 2024-09-18T12:13:17.5233333+00:00
Sal Scozzari 0 Reputation points
0 answers

NullReferenceException when building Xamarin Android Binding Library

I've been trying to build a Xamarin Android Binding Library having a .jar file in it. It builds just as expected with different .jar-s I tried, however when I add jackson-databind library, I keep receiving BINDINGSGENERATOR : error BG0000:…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,338 questions
asked 2021-10-07T14:07:06.057+00:00
Vladislav 1 Reputation point
commented 2024-09-18T12:04:14.61+00:00
Lewis Spencer 0 Reputation points
3 answers One of the answers was accepted by the question author.

Authenticate my own Blazor App with against my SSO-REST Backend

Hi, regarding to this blog https://devblogs.microsoft.com/dotnet/whats-new-with-identity-in-dotnet-8/ I've successfully created a REST-API with Identity and SSO. But now I need my Blazor frontend to authenticate against this rest service. The blog…

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,559 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.
331 questions
asked 2024-09-13T08:27:44.94+00:00
Clemens Mattner 20 Reputation points
commented 2024-09-18T12:01:29.92+00:00
Clemens Mattner 20 Reputation points
1 answer

How to get diagnostics / trace or from a MAUI Android app that is crashing but no clear FATAL exception or clue

Hi, I have an app that is crashing in MAUI Android, but when looking at logcat or in the console etc, I cannot see any FATAL Exception or other native information to give me a clue to work out what to do next? Could someone be so kind to give me ideas…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,424 questions
asked 2024-09-12T11:49:32.25+00:00
Matthew Waring 0 Reputation points
answered 2024-09-18T10:19:53.22+00:00
youzeliang 480 Reputation points
1 answer

App Hangs: Navigate from home tab to its details page(3 level navigation) and switch another tab in shell tabbar and then back to home tab does not work.

In my .Net Maui App. I have 3 tabs in shell tabbar (Home, Notification, Account) Default tab is Home. I have few items on Home page, Now i navigate to one of the items page present on default Home page. From here i can navigate 2 more level from…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,424 questions
asked 2024-09-06T06:20:50.0033333+00:00
Anudeep M B 0 Reputation points
answered 2024-09-18T09:47:22.4866667+00:00
youzeliang 480 Reputation points
1 answer

Using Renegotiation in C#

Hi All, We have a WPF application built on .Net Framework 4.8. This application acts an HTTPs client. We are currently using the code provided in the attached file for HTTPs communication. This code is used to run a sequence of commands one after…

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,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.
10,858 questions
asked 2024-09-14T20:10:04.57+00:00
S Abijith 386 Reputation points
commented 2024-09-18T08:49:16.0433333+00:00
Hongrui Yu-MSFT 1,605 Reputation points Microsoft Vendor
0 answers

Android Emulator waiting for debugger to attach in .net maui app

I upgraded my .net maui app from .net 7 to .net 8 and updated my nuget packages. I built the output solution but deployment was not successful as I had received the error message:- Xaml XC002 erro: Binding could be compiled if x:datatype is specified…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,424 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,858 questions
asked 2024-05-11T02:31:41.49+00:00
wire_jp 206 Reputation points
commented 2024-09-18T08:47:54.93+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 42,081 Reputation points Microsoft Vendor
1 answer

Unable to Install App from Visual Studio – Error: Detecting existing process

I'm having trouble installing my MAUI app directly from Visual Studio. Whenever I try to install it, I encounter errors, and the app breaks during the installation process. Development Environment: Microsoft Visual Studio Community 2022 (64-bit) -…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,059 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,424 questions
asked 2024-09-04T08:33:16.8633333+00:00
Aleena George 30 Reputation points
commented 2024-09-18T08:38:14.65+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 42,081 Reputation points Microsoft Vendor
0 answers

DriveItem AdditionalData Patch method with error in Graph Api

I'm creating an API with ASP.NET Core that accesses a list/drive with the graph api and at some point I need to update an item that was created in the drive library to add an ID (which is a custom column), but I'm getting an invalid request error, can…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,526 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,886 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,459 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.
331 questions
asked 2024-06-06T17:08:51.2033333+00:00
Bruno Bispo 0 Reputation points
commented 2024-09-18T08:30:23.8733333+00:00
Zeb Spalding 0 Reputation points
0 answers

Xamarin.Forms 5.0.0.8532 not available in https://www.nuget.org/packages/Xamarin.Forms

Currently on the official nuget package page (https://nuget.org/packages/Xamarin.Forms ) you can only download Xamarin.Forms up to version 5.0.0.2662, but within Visual Studio my project has version 5.0.0.8532+0-pr.15765-sha.fb33d7158-azdo.88278, why is…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,338 questions
asked 2024-09-17T13:33:34.74+00:00
david donayo 0 Reputation points
commented 2024-09-18T07:42:17.1366667+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 74,641 Reputation points Microsoft Vendor
1 answer

How to make the Popup control in WPF ignore mouse events

I want to implement a function: display Popup when the mouse enters the Grid, update the Popup position when the mouse moves, and close Popup when the mouse leaves the Grid. This is my current xaml and cs: MainWindow.xaml <Window…

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,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.
10,858 questions
asked 2024-09-18T06:11:26.24+00:00
HoWe Yu 41 Reputation points
answered 2024-09-18T07:06:34.44+00:00
Hongrui Yu-MSFT 1,605 Reputation points Microsoft Vendor
0 answers

How to Enable App Installer in a Secure Way After CVE-2021-43890 for many domains as sources?

Hi there, I'm interested to know if there's an update regarding this Github issue after CVE-2021-43890 was reported. In a nutshell, I'm looking for a secure way to enable App Installer for installation from the web in many domains as ms-appinstaller…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,424 questions
Windows 10 Security
Windows 10 Security
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Security: The precautions taken to guard against crime, attack, sabotage, espionage, or another threat.
2,892 questions
asked 2024-09-12T16:49:25.05+00:00
Mueller Marc 0 Reputation points
commented 2024-09-18T07:05:57.9433333+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 42,081 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

How to connect to Azure Service Bus through Private Endpoint?

I'm developing an application in our organization using C#/.NET(8.0) and have to use Azure Service Bus. My access in our organization's Azure account is mostly read-only, so I don't know actually how they created the instances. But I can see that the…

Azure Service Bus
Azure Service Bus
An Azure service that provides cloud messaging as a service and hybrid integration.
616 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,808 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,858 questions
asked 2024-03-06T01:47:21.7933333+00:00
Bergs 60 Reputation points
accepted 2024-09-18T06:04:33.25+00:00
Bergs 60 Reputation points
1 answer

How to build post request to create the nested folder on site using updated graph api version 5.56.0.

I am try to create the POST request in c# using graph api version 5.56.0 but not able to create. I have try like var graphClient = GetGraphServiceClient(); var result = …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,526 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,886 questions
asked 2024-09-12T06:12:58.0533333+00:00
Ritu Yadav 0 Reputation points
edited the question 2024-09-18T04:20:34.66+00:00
Jack J Jun 24,491 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Not able to Authorize in the asp.net core web api

I am not able to authorize any method in any API

ASP.NET Core Training
ASP.NET Core Training
ASP.NET Core: A set of technologies in the .NET Framework for building web applications and XML web services.Training: Instruction to develop new skills.
22 questions
asked 2024-09-17T09:23:17.7766667+00:00
Bakthavathsala Sai V 20 Reputation points
accepted 2024-09-18T04:13:28.85+00:00
Bakthavathsala Sai V 20 Reputation points