27,000 questions with .NET-related tags

Sort by: Updated
1 answer

MAUI: Keep audio playing when navigating to a new page

I am using Webview for playing audio and when I navigate to a new page the audio stops playing. I want to play the audio in background when navigating to new pages, or switching app or locking device. My Code: <WebView …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,969 questions
asked 2025-02-24T16:33:00.5866667+00:00
Sreejith Sreenivasan 941 Reputation points
commented 2025-03-03T08:28:46.2133333+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 80,211 Reputation points Microsoft External Staff
0 answers

How to fix XA0141: NuGet package '<unknown>' version '<unknown>' contains a shared library 'libe_sqlite3.so' which is not correctly aligned. See https://developer.android.com/guide/practices/page-sizes for more details

How to change compilation options in net Maui, the web page only says: Solution The indicated native shared library must be recompiled and relinked with the 16k alignment, as per URL indicated in the message.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,969 questions
asked 2025-02-28T21:41:20.53+00:00
commented 2025-03-03T08:27:00.87+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 80,211 Reputation points Microsoft External Staff
1 answer

.NET MAUI ML.NET LOADED FROM CSV file Chart is not diplayed

ML.NET Time Series algorithm is parsing csv and predicting forecasts but chart is not loading , here is sample csv file Date ,Open ,High ,Low ,Close ,Shares Traded…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,969 questions
asked 2025-03-01T16:49:57.4066667+00:00
Kalyan A 380 Reputation points
edited an answer 2025-03-03T08:18:02.7+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 80,211 Reputation points Microsoft External Staff
1 answer

Microsoft .NET Host -8.0.13 (x64) Popup

I keep getting a random popup with the header Microsoft .NET Host - 8.0.13 (x64) stating "The feature you are trying to use is on a network resource that is unavailable." It further states "Click OK to try again, or enter an alternative…

.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,196 questions
asked 2025-03-02T14:53:00.7466667+00:00
Steve Bailey 0 Reputation points
answered 2025-03-03T07:57:11.9+00:00
Jiachen Li-MSFT 33,546 Reputation points Microsoft External Staff
0 answers

How to setup and access an ftp server in Windows Server 2019 with vb.net code?

I have written an app using webforms in visual studio 2019. I have setup a Windows Server 2019 on a server. With IIS, I am able to access my WebForms.aspx from the internet ok. I made an FTP server website, and also added ftp services to my first website…

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.
390 questions
asked 2025-03-02T20:48:21.2033333+00:00
Bryan 0 Reputation points
commented 2025-03-03T07:41:53.12+00:00
XuDong Peng-MSFT 11,336 Reputation points Microsoft External Staff
0 answers

How to fix "Operation is not valid due to the current state of the object."

When I use aspnet-codegenerator I get this error even though I could use it normally before. How can I fix it? Thank you everyone !!

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.
390 questions
asked 2025-03-01T01:10:34.3433333+00:00
Dũng Tiến 0 Reputation points
edited the question 2025-03-03T07:11:35.3666667+00:00
Jiachen Li-MSFT 33,546 Reputation points Microsoft External Staff
1 answer

Image Resizing issue on MAUI android app

Requirement :The MAUI android app allows users to capture / pick 75 images with any size and orientation. Here the challenge is to resize these 75 images into a standard size such that it fits the screen and the images maintain its aspect ratio. I have…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,969 questions
asked 2025-02-28T06:00:33.0166667+00:00
Leon Rodrigues 0 Reputation points
commented 2025-03-03T07:07:30.6933333+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 48,666 Reputation points Microsoft External Staff
1 answer

How to enable typing and search functionality inside a Picker in .NET MAUI?

How to enable typing and search functionality inside a Picker in .NET MAUI?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,969 questions
asked 2025-03-02T07:27:56.81+00:00
Bhuwan 801 Reputation points
answered 2025-03-03T06:58:22.8366667+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 35,921 Reputation points Microsoft External Staff
1 answer

Upload .csv file to HTML table MAUI BLAZOR

I am getting .csv file from https://www.nseindia.com/reports-indices-historical-index-data and I want to show it in a table in .NET MAUI BLAZOR C# @page "/Forecast" @using NSEBlazor.Models namespace NSEBlazor.Models; @inject CsvService…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,969 questions
asked 2025-03-01T15:05:30.2233333+00:00
Kalyan A 380 Reputation points
answered 2025-03-03T06:50:09.5066667+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 80,211 Reputation points Microsoft External Staff
4 answers One of the answers was accepted by the question author.

Unable to create a DbContext' Error when Using EF Core in .NET 8 ClassLibrary Project

Hello everyone, I've developed a ClassLibrary project using .NET 8 and C#, and I've utilized EF Core 8 in it. I've defined my own models and context within it. However, when I attempt to use the add-migration command, I encounter this error: "Unable…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
779 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,104 questions
Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
779 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,104 questions
asked 2024-06-01T01:35:11.9766667+00:00
Kamyab Faghih 70 Reputation points
edited an answer 2025-03-03T06:43:39.21+00:00
TP 107K Reputation points
4 answers One of the answers was accepted by the question author.

Unable to create a DbContext' Error when Using EF Core in .NET 8 ClassLibrary Project

Hello everyone, I've developed a ClassLibrary project using .NET 8 and C#, and I've utilized EF Core 8 in it. I've defined my own models and context within it. However, when I attempt to use the add-migration command, I encounter this error: "Unable…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
779 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,104 questions
Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
779 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,104 questions
asked 2024-06-01T01:35:11.9766667+00:00
Kamyab Faghih 70 Reputation points
edited an answer 2025-03-03T06:43:39.21+00:00
TP 107K Reputation points
1 answer

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,969 questions
asked 2025-03-01T05:10:30.3133333+00:00
RaviKiran P 0 Reputation points
commented 2025-03-03T05:43:15.2833333+00:00
RaviKiran P 0 Reputation points
2 answers

dotnet SDK isnt found/recognized.

Ive been having a problem with .NET SDK. Whenever im trying to do anything with the SDK, its like its not there, even though i have it installed, and its added to the PATH system variable. Im gonna attach pics in the replies. When im not in the dotnet…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,104 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,320 questions
asked 2024-09-03T20:16:38.0466667+00:00
Michał Delert 0 Reputation points
commented 2025-03-03T05:34:40.4566667+00:00
YOSHIDA Hayato 0 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 2025-02-25T22:48:20.3233333+00:00
Divakaran, D (Dipu) 0 Reputation points
commented 2025-03-03T04:19:13.2333333+00:00
Pradeep M 6,315 Reputation points Microsoft External Staff
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 2024-05-28T19:02:39.45+00:00
Frank Geisler 21 Reputation points MVP
commented 2025-03-03T04:08:38.6+00:00
Pradeep M 6,315 Reputation points Microsoft External Staff
0 answers

Is there a sample MAUI application to call c/c++ libraries that can be built from Windows and used on Windows, iOS and Android?

I am trying to convert my Xamarin.Forms mobile applications to MAUI. My applications depend on C libraries developed by government agencies (NOAA and USNO). For Xamarin.Forms I found a very good example for building a NuGet package from C library code…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,969 questions
asked 2025-02-21T16:50:34.97+00:00
Brian Johnson 0 Reputation points
commented 2025-03-03T03:44:54.55+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 35,921 Reputation points Microsoft External Staff
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,969 questions
asked 2025-02-05T22:07:05.2566667+00:00
Tony Pitman 100 Reputation points
commented 2025-03-03T03:38:58.5566667+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 35,921 Reputation points Microsoft External Staff
1 answer

I am getting error while building the sample maui application using vs2022

I am facing below errors resource style/Animation.AppCompat.Dialog (aka com.companyname.mauiapp1:style/Animation.AppCompat.Dialog) not found. f resource style/RtlOverlay.DialogWindowTitle.AppCompat (aka…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,969 questions
asked 2025-02-26T15:39:09.22+00:00
Seema CHAUDHARY 0 Reputation points
commented 2025-03-03T03:11:03.7966667+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 48,666 Reputation points Microsoft External Staff
1 answer

Using VS 17.14.0 Preview 1.1 and XCode 16.2 I can not compile a Maui application to a remote iPhone device

Using Visual Studio version 17.12 Preview 1 and XCode 16.0 Beta I was able to connect to a remote iPhone and deploy my Maui app to the physical device. I however can not debug the app. So my development environment/MAC is set up properly. Updating Visual…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,969 questions
asked 2025-02-27T22:13:06.61+00:00
David Richards 1 Reputation point
edited a comment 2025-03-03T02:48:45.3133333+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 35,921 Reputation points Microsoft External Staff
1 answer

export a gridview to a pdf or to excel file

in aspx page and i am using vb.net how can i export a gridview to a PDF or to Excel file thamks in advence

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.
390 questions
asked 2025-03-02T22:48:26.4466667+00:00
Simon 366 Reputation points
answered 2025-03-03T02:46:33.3633333+00:00
XuDong Peng-MSFT 11,336 Reputation points Microsoft External Staff