26,991 questions with .NET-related tags

Sort by: Updated
3 answers

Prepare code to fetch data from mock server does not seem to work

Hi! I am working through this Exercise: https://learn.microsoft.com/en-us/training/modules/build-web-api-minimal-spa/5-exercise-create-api. After starting the Mock Server (I can see in the Browser that it is running) The Website has the error: Unexpected…

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.
36 questions
asked May 28, 2024, 7:02 PM
Frank Geisler 21 Reputation points MVP
edited an answer Mar 1, 2025, 8:29 AM
Tabea Kirchner 0 Reputation points
0 answers

how to disable AOT in Maui

how to disable AOT in Maui My MauiApp runs ONLY in 'debug' mode! According to the .net, VS, Maui community I found many recommendations to disable AOT. Although, I never got an error msg to this direction! In .csproj I tested with 'all' combinations…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,964 questions
asked Mar 1, 2025, 8:09 AM
Eduard Kaufmann 271 Reputation points
0 answers

MAUI Map is opening Apple Maps by default in IOS, How to ask for options like Google Maps etc?

await Map.OpenAsync(placeMark); is opening Apple Maps by default in iOS physical device. If Apple Maps is not there, it is showing an error message in iOS I would like to show all the possible application list from below like google Maps etc.. I have…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,964 questions
asked Mar 1, 2025, 5:10 AM
RaviKiran P 0 Reputation points
1 answer

Visual Studio 2022 Enterprise cannot create an ASP.NET using .NET8

I use Visual Studio 2022 Enterprise. Try to create an ASP.NET Web application using .NET8 framework. However, .NET8 is not listed in "Targeted framework drop list". How to create an ASP.NET Web Applicaiton using .NET8 framework? How to…

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.
388 questions
asked Feb 28, 2025, 4:55 PM
Lu, Xinghua 0 Reputation points
edited a comment Mar 1, 2025, 12:40 AM
SurferOnWww 3,886 Reputation points
0 answers

I need help with azure app service, recently it got way to slow

I have an app service in azure Web Apps, but recently it started to be way to slow and get timed out. This started two weeks ago, and I am trying to understand how to solve it. My api has some methods that changed the response time from 20-30 seconds…

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.
388 questions
asked Feb 28, 2025, 11:15 PM
Luis Gamez 0 Reputation points
1 answer

Post migrating from Azure to on-premises our Development and Production servers, our .NET API, Angular site throwing Azure CLI authentication failure issue

An error occurred while starting the application. CredentialUnavailableException: EnvironmentCredential authentication unavailable. Environment variables are not fully configured. Azure.Identity.CredentialDiagnosticScope.FailWrapAndThrow(Exception…

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.
388 questions
asked Feb 27, 2025, 4:34 PM
Kumar, Kiran 0 Reputation points
answered Feb 28, 2025, 9:21 PM
Bruce (SqlWork.com) 71,776 Reputation points
2 answers

Request Permission not working on Android Maui

I am having an issue requesting storage read/write permissions. I have them Selected in the manifest file. Onappearing I have: PermissionStatus nWritePermission = await GP.CheckAndRequestStorageWritePermission(); The method is: public async…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,964 questions
asked Feb 26, 2025, 4:44 PM
Phunction 301 Reputation points
edited an answer Feb 28, 2025, 8:55 PM
Phunction 301 Reputation points
1 answer

.NET 9 Open API Migration not returning the API Schema

I am migrating a .NET 6 API application to .NET 9. Installed the Microsoft.AspNetCore.OpenApi and Microsoft.Extensions.ApiDescription.Server packages with version 9.0.2. I am keeping the Swashbuckle.AspNetCore 6.5.0 for the UI experience. Here is the…

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.
36 questions
asked Feb 25, 2025, 10:48 PM
Divakaran, D (Dipu) 0 Reputation points
commented Feb 28, 2025, 8:23 PM
Divakaran, D (Dipu) 0 Reputation points
1 answer One of the answers was accepted by the question author.

How can you unhide a Button inside a UserControl when a Page loads into a Frame on the MainWindow?

UserControl: <UserControl x:Class="Scores.Views.UserControls.MenuBar" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"    …

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,833 questions
asked Feb 27, 2025, 5:55 PM
Michael Bahr 20 Reputation points
accepted Feb 28, 2025, 6:11 PM
Michael Bahr 20 Reputation points
4 answers

Multiple App.Razor components

Hello, Is it possible to have an additional App.razor file that I can use for e.g. Admin area only? Currently, if I create a new folder named Admin and create a new layout there, it inherits from the existing App.razor and linked css files. Basically, I…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,790 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,665 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,598 questions
asked Jan 31, 2025, 8:47 AM
Kuler Master 406 Reputation points
commented Feb 28, 2025, 5:22 PM
Bruce (SqlWork.com) 71,776 Reputation points
4 answers

Need assistance and git hub code for multifactor authentication in core mvc or mvc project.

Need assistance and git hub code for multifactor authentication in core mvc or mvc project. regrads vinayak

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,790 questions
asked Feb 20, 2025, 10:29 AM
vinayak p 0 Reputation points
commented Feb 28, 2025, 3:06 PM
zunaira khalid1022 0 Reputation points
1 answer One of the answers was accepted by the question author.

runs only in 'debug' mode

I found lots of issues (google browsing) re 'running only in debug mode'! However, I cannot figure out what to do in my case. myapp https://github.com/edikaufmann/RandoJson PS: I obviously cannot debug without debugging!?! Your help is appreciated, ed

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,964 questions
asked Feb 27, 2025, 7:43 AM
Eduard Kaufmann 271 Reputation points
accepted Feb 28, 2025, 2:49 PM
Eduard Kaufmann 271 Reputation points
1 answer

WebView is not working correctly in IOS MAUI

I have added a webview in my MAUI crossplateform app but I am not able to type in textbox or click on image buttons even pop up shows up but not able to even ok/cancel. While working fine with Android, Another issue with voice and video that is happening…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,964 questions
asked Feb 27, 2025, 11:09 PM
Shraddha Chauhan 0 Reputation points
commented Feb 28, 2025, 2:41 PM
Shraddha Chauhan 0 Reputation points
1 answer

MAUI for iOS Publish in Visual Studio 2022 for Windows in Parallax VM

I have a Mac. I have a Parallels Windows 11 VM with Visual Studio 2022 installed with the dotnet SDK and MAUI workloads. My source code is on the Mac and shared as a drive in the VM so I can open the exact same project on either the Mac using VSCode or…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,964 questions
asked Feb 5, 2025, 10:07 PM
Tony Pitman 100 Reputation points
commented Feb 28, 2025, 2:37 PM
Tony Pitman 100 Reputation points
1 answer One of the answers was accepted by the question author.

Canvas math problem

I have this Canvas that is 100 mm x 100 mm the problem is that when I draw a line es calculating bad (or I'm the bad one) if I select 0,0 and 18,18. I shod have but for some reason I get this is the code private readonly…

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,833 questions
asked Feb 27, 2025, 3:49 PM
Eduardo Gomez Romero 1,255 Reputation points
accepted Feb 28, 2025, 1:48 PM
Eduardo Gomez Romero 1,255 Reputation points
1 answer One of the answers was accepted by the question author.

Points displaying wrong

Hello I am sorry or not putting the framework correctly, but I cannot find WinUI The problem is that in the canvas my points are displaying correctly but when I go into guided mode to select my points they dont correspond I don't have point 1,…

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,833 questions
asked Feb 23, 2025, 9:52 PM
Eduardo Gomez Romero 1,255 Reputation points
accepted Feb 28, 2025, 1:42 PM
Eduardo Gomez Romero 1,255 Reputation points
2 answers

Why is only .NET 6 installed on Azure App Service Linux with .NET 8 configured

I have created a new Azure App Service. Operating System is Linux, Runtime Stack is "Dotnetcore - 8.0". The Stack Settings are: Stack: .NET Major version: .NET 8 (LTS) Minor version: .NET 8 (LTS) My expectation is, that .NET 8 is available…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,104 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,395 questions
asked Nov 15, 2024, 6:33 PM
Hilmar Bunjes 10 Reputation points
answered Feb 28, 2025, 12:46 PM
Vladimir Stanev 0 Reputation points
0 answers

MAUI: Blank space on the UI in between the contents and font style issue

I have a label, image and a webview on the UI. My XAML: <ScrollView Grid.Row="0" Orientation="Vertical" VerticalOptions="FillAndExpand"> <VerticalStackLayout Grid.Row="0" …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,964 questions
asked Feb 27, 2025, 1:54 PM
Sreejith Sreenivasan 941 Reputation points
commented Feb 28, 2025, 12:41 PM
Sreejith Sreenivasan 941 Reputation points
1 answer

Browser unable to use certificate

Hi All, I cloned project code from Azure Repo, installed certificates, configured Project Web Properties, configured applicationhost.config, setup SSL URL in IIS using certificate Thumbprint. My project builds successfully, but application fails to load…

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.
36 questions
asked Feb 25, 2025, 9:53 AM
Swapnil Giram 0 Reputation points Microsoft Employee
commented Feb 28, 2025, 10:44 AM
Swapnil Giram 0 Reputation points Microsoft Employee
2 answers

Root detection on Android device using MAUI .net framework

The Android root detection logic implemented in .NET MAUI is not working as expected. Tried both a custom implementation and a NuGet package as in link below, but both approaches failed. nuget package >…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,964 questions
asked Feb 27, 2025, 9:04 AM
Manjunath Vadigeri 0 Reputation points
answered Feb 28, 2025, 8:57 AM
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 48,666 Reputation points Microsoft External Staff