26,724 questions with .NET-related tags

Sort by: Updated
0 answers

API response is missing but not middleware response updates

I was experimenting asp.net core (net9.0) custom middleware with below sample code. In API response I get the text written by middleware but the API response itself is missing. Any insights to help me understand on what is actually happening ? This is…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,062 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,750 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,062 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,750 questions
asked 2025-01-24T12:00:55.5133333+00:00
Harish Lakshmana 0 Reputation points
edited the question 2025-01-24T12:01:49.4266667+00:00
Harish Lakshmana 0 Reputation points
0 answers

API response is missing but not middleware response updates

I was experimenting asp.net core (net9.0) custom middleware with below sample code. In API response I get the text written by middleware but the API response itself is missing. Any insights to help me understand on what is actually happening ? This is…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,062 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,750 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,062 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,750 questions
asked 2025-01-24T12:00:55.5133333+00:00
Harish Lakshmana 0 Reputation points
edited the question 2025-01-24T12:01:49.4266667+00:00
Harish Lakshmana 0 Reputation points
0 answers

Default FlyoutMenu icon (hamburger icon) not shown in maui android after navigation, but works fine in windows

Default FlyoutMenu icon (hamburger icon) not shown in .net maui android after navigation, but works fine in windows. Trying to navigate from MainPage to HomePage using below code await Shell.Current.GoToAsync($"{nameof(HomePage)}"); …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,852 questions
asked 2025-01-24T11:11:10.0766667+00:00
Chandra 0 Reputation points
edited the question 2025-01-24T11:14:29.9866667+00:00
Chandra 0 Reputation points
0 answers

Can debug new empty project in net 9 using VS code in Mac

Hi, I open new empty net 9 in maui in MAC and can't run it after build. What to do ? I got this error:

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,852 questions
asked 2025-01-24T10:29:27.97+00:00
Dani_S 3,956 Reputation points
commented 2025-01-24T11:03:09.4866667+00:00
Dani_S 3,956 Reputation points
1 answer

This version of Microsoft.MacCatalyst requires the MacCatalyst 18.2 SDK (shipped with Xcode 16.2).

Hi, I upgrade my app to.net 9 according to:MAUI Upgrade from NET 8 to NET 9 and got this error" This version of Microsoft.MacCatalyst requires the MacCatalyst 18.2 SDK (shipped with Xcode 16.2). Either upgrade Xcode to get the required header files…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,852 questions
asked 2025-01-23T13:19:51.0566667+00:00
Dani_S 3,956 Reputation points
commented 2025-01-24T11:02:25.2533333+00:00
Dani_S 3,956 Reputation points
12 answers

How to fix this error "warn: Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionMiddleware[3] Failed to determine the https port for redirect."

Good evening , I am trying to build a simple web api using ASP.Net . The app has been showing the error like this after building it - warn: Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionMiddleware[3] Failed to determine the https port for…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,750 questions
asked 2023-06-03T08:29:57.58+00:00
Vaishnavi P 75 Reputation points
answered 2025-01-24T10:40:15.7866667+00:00
Habeebullahi Lawal 0 Reputation points
1 answer One of the answers was accepted by the question author.

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,919 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,230 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,505 questions
asked 2024-07-23T23:13:08.8466667+00:00
Nat323 20 Reputation points
commented 2025-01-24T10:39:13.55+00:00
Theara vuthy 0 Reputation points
1 answer

facing issue change SVG color using SkiaSharp

Previously, this functionality was working on .NET 8.0, but after updating from 8.0 to .90, it stopped working and is now causing an error. I've attached the project for your reference. …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,852 questions
asked 2025-01-24T08:51:39.9833333+00:00
Bhuwan 736 Reputation points
edited an answer 2025-01-24T10:36:23.96+00:00
Bhuwan 736 Reputation points
7 answers One of the answers was accepted by the question author.

How to create Excel file with Visual Studio 2022 and C#

I'm working with Visual Studio 2022, Project WPF C# with .Net 6.0 and Entity Framework Core. DataBase MS SQL Express.I have also a valid and active licence Microsoft Office 365. I try to Create an Excel File but I have different error msg (see…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,062 questions
Excel
Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
2,102 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,230 questions
asked 2023-08-06T15:37:30.7133333+00:00
Dmtr_Grms 331 Reputation points
answered 2025-01-24T10:28:07.3566667+00:00
Stefan Krabbe 0 Reputation points
1 answer One of the answers was accepted by the question author.

Java.Lang.ClassNotFoundException Didn't find class "androidx.core.splashscreen.SplashScreen" on path: DexPathList

I get the following error in Activity1.cs in my Android project: protected override void OnCreate(Bundle bundle) { AndroidX.Core.SplashScreen.SplashScreen.InstallSplashScreen(this); Java.Lang.ClassNotFoundException Message=Didn't find class…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,852 questions
asked 2025-01-12T14:14:34.6133333+00:00
Kim Strasser 1,221 Reputation points
accepted 2025-01-24T10:27:12.5033333+00:00
Kim Strasser 1,221 Reputation points
1 answer

How to upload a file from my local computer to a Sharepoint folder

Hi,  I´m using something like this:   string userName = “nelson.soares@********.pt”; string password = “*********”; var securePassword = new SecureString();   foreach (char c in password) {  securePassword.AppendChar(c); }  using (var…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,062 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
11,110 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,230 questions
asked 2025-01-22T20:48:33.8166667+00:00
Nelson Soares 0 Reputation points
commented 2025-01-24T10:16:28.4066667+00:00
Yanli Jiang - MSFT 28,531 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

As per Official Documentation we can get Get Selected Fields ,but using solution(Provided by : https://learn.microsoft.com/en-us/graph/api/listitem-list?view=graph-rest-1.0&tabs=csharp) can not get desired output

I want to get below result [ { "@odata.etag": "\"65dba275-af1c-4ff4-b85b-4afde8046f07,10\"", "id": "11", "fields@odata.context":…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,750 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,857 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
11,110 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,230 questions
asked 2025-01-23T11:19:50.6833333+00:00
Marcelo Lorenzetti 0 Reputation points
accepted 2025-01-24T09:15:29.65+00:00
Marcelo Lorenzetti 0 Reputation points
0 answers

Maui app in mac using VS Code stop working

Hi, Maui app in mac using VS Code stop working. I got this error. Using .Net 8.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,852 questions
asked 2025-01-05T08:46:43.92+00:00
Dani_S 3,956 Reputation points
commented 2025-01-24T09:11:19.98+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 34,871 Reputation points Microsoft Vendor
1 answer

purpose of the services in building asp.net mvc app

builder.Services.AddScoped<IMyScopedService, MyScopedService>();

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,750 questions
asked 2025-01-24T05:57:51.0733333+00:00
Aayush Sharma 0 Reputation points
edited an answer 2025-01-24T07:58:27.67+00:00
SurferOnWww 3,791 Reputation points
2 answers

Can't get address or phone from Microsoft Login

Hi all; I have a Blazor Server app using the Identity Library. I have added the following code and it works for login: var microsoftClientId = configMgr.GetValue("Authentication:Microsoft:ClientId"); var microsoftClientSecret =…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,750 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,970 questions
asked 2025-01-22T18:56:38.86+00:00
David Thielen 3,166 Reputation points
commented 2025-01-24T07:23:46.2833333+00:00
Raja Pothuraju 11,510 Reputation points Microsoft Vendor
1 answer

Fix intermittent exceptions with an Azure function running as a .NET8 isolated worker process

I inherited an Azure function that has been running fine on .NET6 In-Process Model. I recently moved it to .NET8 Isolated Worker Model and I am seeing some Exceptions in my App Insights log. There are about 10k requests made per hour and only 10 of them…

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,341 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,062 questions
asked 2024-05-13T19:24:05.7066667+00:00
AK-9186 55 Reputation points
commented 2025-01-24T07:05:55.2433333+00:00
Soni, Pratik 0 Reputation points
1 answer One of the answers was accepted by the question author.

MAC - change project reference from 8 to 9 using VS code

Hi, From my maui app I have two ProjectRefrences to 8 , how to change them to 9 ? Curret: <PropertyGroup> <TargetFramework>8.0.0</TargetFramework> <PropertyGroup>

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,852 questions
asked 2025-01-23T09:35:01.21+00:00
Dani_S 3,956 Reputation points
accepted 2025-01-24T07:05:43.1066667+00:00
Dani_S 3,956 Reputation points
0 answers

Silent Printing in .NET MAUI App

In a .NET MAUI app, a PDF document is read into a Stream object for printing. The requirement is to restrict the user from selecting any printer, only allowing a predefined set of printers. Additionally, the user should not be able to modify the print…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,852 questions
asked 2025-01-24T05:54:25.2433333+00:00
Navaneeth 21 Reputation points
edited the question 2025-01-24T05:56:04.5333333+00:00
Navaneeth 21 Reputation points
1 answer

How to get the current page number or check if PDF viewer is on the Last page of a PDF in WPF Webview2 control?

I am working on a WPF application where I use Webview2 to display PDF files. I rely on Edge's built in PDF rendering mechanism and am not using any external PDF libraries. I've successfully loaded the PDF using the following…

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,817 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,230 questions
asked 2025-01-23T07:01:02.52+00:00
Praveena S Kumar 0 Reputation points
commented 2025-01-24T05:34:51.5033333+00:00
Hongrui Yu-MSFT 4,195 Reputation points Microsoft Vendor
11 answers

SQL Server 2022 install on Windows 10 fails with error that .NET is not installed, but it is installed and up to date

I have installed SQL Server 2022 Developer edition successfully on a Windows 10 and 11 virtual machine. The issue is that I cannot install it on a physical machine. During the install, I get the following fatal error. I have tried to install the latest…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,062 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.
14,356 questions
asked 2023-03-23T18:04:44.7966667+00:00
MJ Skeet 40 Reputation points
answered 2025-01-24T05:33:54.8366667+00:00
Virender Jain 25 Reputation points