26,876 questions with .NET-related tags

Sort by: Updated
0 answers

How to extend execution of background task in WinUI 3 (analog of ExtendedExecutionSession in UWP)?

My application has a background task that performs a cleanup of unnecessary or unused system files selected by the user. However, this task takes more than 30 seconds to complete, which exceeds the standard time limit. Question: Is there any way to…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,097 questions
Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
822 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,731 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,284 questions
asked 2025-02-10T11:59:45.8866667+00:00
2 answers One of the answers was accepted by the question author.

can I return object in razor pages?

can I return object in razor pages? public async Task<object>OnPostDeleteAsync() { return MySuccessMessage(); }

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,776 questions
asked 2025-01-18T02:34:55.8966667+00:00
mc 5,121 Reputation points
accepted 2025-02-10T11:16:35.2366667+00:00
mc 5,121 Reputation points
1 answer One of the answers was accepted by the question author.

how to use my font in UIGraphics in MAUI?

.ConfigureFonts(fonts => { fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular"); fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold"); }); how to use this font in UIGraphics in ios? new…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,912 questions
asked 2025-02-06T13:00:53.0866667+00:00
mc 5,121 Reputation points
accepted 2025-02-10T11:16:10.35+00:00
mc 5,121 Reputation points
1 answer

Portal returns updated results while the API returns outdated ones

I have created a GPT4 model in Azure OpenAI Service, and I want to add data source which is Azure AI Search (Cognitive Search Service). The problem is at the time of deployment i cannot see any data source adding option, it is deployed first and then…

Azure AI Search
Azure AI Search
An Azure search service with built-in artificial intelligence capabilities that enrich information to help identify and explore relevant content at scale.
1,177 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.
373 questions
Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
3,635 questions
asked 2025-01-06T07:37:01.02+00:00
Hassan Kaleem 0 Reputation points
commented 2025-02-10T11:01:55.7933333+00:00
Suresh Chikkam 0 Reputation points Microsoft Vendor
0 answers

MAUI CollectionView selected item not shown as selected

Hello. I starts to learn MAUI Enterprise apps patterns and I found en error (or unexpected behavior) in CollectionView. In my example, I have TrainingsViewModel whitch have ObservableCollection of TrainingViewModel property named as AllTrainings. This…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,097 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,912 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,097 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,912 questions
asked 2025-02-08T21:06:15.0066667+00:00
Lukas Hubacek 0 Reputation points
edited the question 2025-02-10T10:44:11.26+00:00
Lukas Hubacek 0 Reputation points
0 answers

MAUI CollectionView selected item not shown as selected

Hello. I starts to learn MAUI Enterprise apps patterns and I found en error (or unexpected behavior) in CollectionView. In my example, I have TrainingsViewModel whitch have ObservableCollection of TrainingViewModel property named as AllTrainings. This…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,097 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,912 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,097 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,912 questions
asked 2025-02-08T21:06:15.0066667+00:00
Lukas Hubacek 0 Reputation points
edited the question 2025-02-10T10:44:11.26+00:00
Lukas Hubacek 0 Reputation points
0 answers

getting error on picker when binding data CommunityToolkit.Mvvm

xmlns:viewModels="clr-namespace:Dev.ViewModels" xmlns:models="clr-namespace:Dev.Models" x:DataType="viewModels:LoginViewModel" <Picker ItemsSource="{Binding Genders,Mode=TwoWay}" …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,912 questions
asked 2025-02-10T10:21:01.89+00:00
Bhuwan 781 Reputation points
0 answers

Touch events on background elements triggered when popup is open in .NET MAUI

I am using a ContentView as a popup in my .NET MAUI app. The popup displays correctly, but when I tap inside the popup (e.g., on the title), touch events from background elements (like a Entry or Button) are still triggered. This causes issues like the…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,912 questions
asked 2025-02-10T10:13:09.31+00:00
KarPreet 80 Reputation points
3 answers

.NetCore 9.0 webAPI published and deployed to IIS gives HTTP Error 404 upon browsing -

Hello, I need some pointers reg. this scenario I am about to describe. I created a .NetCore 9.0 WebAPI and published it to my IIS. My installed IIS version is 10 (v10.0.19041.1). I created separate Application Pool setting the CLR Version to 'No…

Internet Information Services
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,776 questions
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.
32 questions
asked 2025-02-09T13:37:24.01+00:00
P. G. Choudhury 121 Reputation points
commented 2025-02-10T09:57:43.7633333+00:00
Jalpa Panchal-MSFT 785 Reputation points Microsoft Vendor
0 answers

When users sign in to my app I can't get their Google profile info

Please view here. The issue is carefully documented with all screen shots etc: https://stackoverflow.com/questions/79424370/how-do-i-get-google-users-profile-details-such-as-their-name-and-pic I ended up with a duplicate question because this Microsoft…

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,664 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,912 questions
Microsoft Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
3,019 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
23,161 questions
asked 2025-02-10T05:27:30.4+00:00
Mark Evans 5 Reputation points
edited the question 2025-02-10T09:40:11.8966667+00:00
VarunTha 12,420 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

API returns status 200 but empty body after IIS restart or Idle time

I have a .Net core 8 webapi project. it works fine normally. but when it is called after a long idle time or after the iisrestart, returns 200 and the response body is empty. I tried to log the data, and there is data in the log. don't know what is…

Internet Information Services
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,776 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.
373 questions
asked 2025-02-09T06:36:09.7666667+00:00
Binu Thomas 166 Reputation points
edited a comment 2025-02-10T09:35:42.01+00:00
Binu Thomas 166 Reputation points
0 answers

How to draw the path as imaged attached

Need to draw the path as shown in the image in .NET Maui, it was implemented in Xamarin forms while converting to MAUI path are not creating same as Xamarin forms used same coordinates to create the path, please help us to create the path. It was…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,912 questions
asked 2025-02-05T08:28:48.0533333+00:00
Jeyamani Sekar 0 Reputation points
commented 2025-02-10T09:29:25.1966667+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 48,181 Reputation points Microsoft Vendor
0 answers

I'm having an issue with​ Android SDK not found​ in Visual Studio Code on Mac​(For Run .Net maui)

Error : Android platform failed with an unexpected error: The type initializer for 'AndroidSdk.SdkLocator' threw an exception.. Please verify the Android SDK and JDK installation. Additional information: Android studio​ (required SDK Tool and emulator)…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,097 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,912 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,097 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,912 questions
asked 2025-02-09T03:11:31.2366667+00:00
รชต เคช 5 Reputation points
commented 2025-02-10T09:25:43.5966667+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 79,546 Reputation points Microsoft Vendor
0 answers

I'm having an issue with​ Android SDK not found​ in Visual Studio Code on Mac​(For Run .Net maui)

Error : Android platform failed with an unexpected error: The type initializer for 'AndroidSdk.SdkLocator' threw an exception.. Please verify the Android SDK and JDK installation. Additional information: Android studio​ (required SDK Tool and emulator)…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,097 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,912 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,097 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,912 questions
asked 2025-02-09T03:11:31.2366667+00:00
รชต เคช 5 Reputation points
commented 2025-02-10T09:25:43.5966667+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 79,546 Reputation points Microsoft Vendor
1 answer

Error when attempting to connect to a Mac

I am getting and error when attempting to connect to my Mac to build my Maui App. The UI says Error: 'I' is an invalid start of a value. LineNumber: 0 | BytePositionInLine: 0. The log files show the error details below. I have cleared all the caches,…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,912 questions
asked 2025-02-01T04:00:48.85+00:00
Aaron Robertson-Hodder 0 Reputation points
commented 2025-02-10T09:09:59.3166667+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 35,346 Reputation points Microsoft Vendor
1 answer

How to Save a WPF DataGrid Back to Database after Editing

Hi, I am wondering if theirs a way to save a updated Line from WPF DataGrid back to Database . I don't Know the best way to do this without going back to WinForms Apps. I would like to use WPF, any help would be appreciated.

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,824 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,284 questions
asked 2025-01-22T21:17:16.64+00:00
Luke A'Court 0 Reputation points
commented 2025-02-10T08:12:24.7733333+00:00
Hongrui Yu-MSFT 4,360 Reputation points Microsoft Vendor
0 answers

How can I connect to my SQL server from my VM using a .NET application.

I have a .NET application on my azure virtual machine that will not connect to my azure SQL database. I can otherwise connect to the db on my vm using SSMS. My .NET application will connect from my local laptop. I am using ENTRA ID authentication.

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,097 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,776 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,441 questions
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
41,914 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,097 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,776 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,441 questions
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
41,914 questions
asked 2025-02-07T23:50:29.9033333+00:00
Nicholas Pallotta 0 Reputation points
edited a comment 2025-02-10T08:03:54.3066667+00:00
Jalpa Panchal-MSFT 785 Reputation points Microsoft Vendor
0 answers

How can I connect to my SQL server from my VM using a .NET application.

I have a .NET application on my azure virtual machine that will not connect to my azure SQL database. I can otherwise connect to the db on my vm using SSMS. My .NET application will connect from my local laptop. I am using ENTRA ID authentication.

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,097 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,776 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,441 questions
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
41,914 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,097 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,776 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,441 questions
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
41,914 questions
asked 2025-02-07T23:50:29.9033333+00:00
Nicholas Pallotta 0 Reputation points
edited a comment 2025-02-10T08:03:54.3066667+00:00
Jalpa Panchal-MSFT 785 Reputation points Microsoft Vendor
1 answer

Visual studio 2022 Maui project unable to compile for .net 9.0-ios target

Hi, I am trying to deploy a test app to iPhone from windows visual studio but getting the following error when trying to compile. The specified network password is not correct. I have completed the automatic provisioning : I obviously have no problem…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,912 questions
asked 2025-02-02T07:27:26.12+00:00
Ryan Lee 25 Reputation points
commented 2025-02-10T07:59:37.5066667+00:00
Fredrik Hansson 0 Reputation points
1 answer

Showing WPF window having webView2 control gives error dialog with description - Microsoft Edge can't read and write to its data directory

Showing WPF window having webView2 control gives error dialog with description - Microsoft Edge can't read and write to its data directory I have Webview2 control in WPF Window as shown below in webViewStrings.xaml file <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,824 questions
asked 2025-02-07T15:57:54.6933333+00:00
Ajay Gera 40 Reputation points
edited an answer 2025-02-10T07:45:55.1966667+00:00
Hongrui Yu-MSFT 4,360 Reputation points Microsoft Vendor