24,616 questions with .NET-related tags

Sort by: Updated
0 answers

Maui .Net 8 iOS MediaPicker.CapturePhotoAsync issue returns null after user presses USE PHOTO on apple device

Hi, Maui .Net 8 iOS MediaPicker.CapturePhotoAsync returns null after user presses USE PHOTO on apple device. Works perfectly on Windows and Android. Please help. Thank you, Grant

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,080 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,524 questions
asked 2024-06-22T16:31:55.83+00:00
Grant Schaffer 25 Reputation points
0 answers

Android Emulator 34 - " Could not start Emulator in HOST GPU Mode"

I downloaded the latest Visual Studio 2022 and I am following the steps to create an Android App. When starting the Emulator I get the Popup error: "Could not start Emulator in host GPU mode" "Please check if you can update your video…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,789 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,080 questions
asked 2024-06-22T15:50:12.65+00:00
PeterSmith-3108 0 Reputation points
edited the question 2024-06-22T16:12:03.2366667+00:00
PeterSmith-3108 0 Reputation points
2 answers

How to close Bootstrap modal in Blazor WASM?

Hi, In my Blazor WASM (.net 6) application, I am displaying a modal popup as follows. <!-- Modal --> <div class="modal fade bg-transparent" id="templatemo_search" tabindex="-1" role="dialog"…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,308 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,459 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,524 questions
asked 2024-06-21T19:34:00.18+00:00
Cenk 981 Reputation points
commented 2024-06-22T16:04:35.7533333+00:00
Bruce (SqlWork.com) 59,471 Reputation points
2 answers

Cancellation Token signal not being received by the application code

looks like there is a limitation as it can be read here https://github.com/dotnet/aspnetcore/issues/20229#issuecomment-623289191 https://learn.microsoft.com/en-us/answers/questions/391343/cancellationtoken-in-controller-endpoint-hosted-in but is there…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,308 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,385 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,524 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.
312 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,208 questions
asked 2024-06-20T19:01:11.7333333+00:00
Michel Fornaris 0 Reputation points
commented 2024-06-22T15:56:34.3533333+00:00
Michel Fornaris 0 Reputation points
1 answer

How to create bootstrap Tab Menu in top of the heading on ASP.NET Home page

I have designed login page for my asp.net application. when user logging the application, in the home page, user want to see the settings of their menu's like below. On the top of the heading in right corner, user want to see the settings image. when…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,385 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,524 questions
asked 2024-06-22T12:51:39.3366667+00:00
Gani_tpt 2,106 Reputation points
answered 2024-06-22T15:49:21.0033333+00:00
AgaveJoe 26,856 Reputation points
1 answer

How to connect Access Database to a VB.Net project in VS 2022 using .Net 8.0?

Hi All, I am trying to use .Net 8.0 in Visual Studio 2022; I am unable to use Access Database; the usual way of adding "Data Sources" is not available ( I have been using .Net Framework 4.5 for my projects without any difficulties.) I used the…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,544 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,636 questions
asked 2024-06-20T18:51:16.6666667+00:00
VKSB 216 Reputation points
commented 2024-06-22T13:50:06.9233333+00:00
VKSB 216 Reputation points
4 answers

Issue with View ActionResult on Button Click in MVC 5

The following code works fine and display student enrollment records on the page. Right before the table element, I have 3 buttons to filter out records based on the button that was clicked. In the controller, I added a function "IsEnrolled". …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,308 questions
asked 2024-06-21T05:39:46.3533333+00:00
Hursh 131 Reputation points
answered 2024-06-22T12:35:52.2866667+00:00
AgaveJoe 26,856 Reputation points
1 answer

Filter Records in ASP.NET MVC

The following code searches students by students name and it works fine. I want to add 3 radio button (Enrolled, Not Enrolled, All Students) and filter records based on the radio button selection. How do I do it? Also, is there a way to put these…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,308 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,385 questions
asked 2024-06-20T05:14:05.8133333+00:00
Hursh 131 Reputation points
edited a comment 2024-06-22T12:31:23.64+00:00
AgaveJoe 26,856 Reputation points
1 answer One of the answers was accepted by the question author.

How can I find out if my video view is on top of my game view in my Android .NET 7.0 project?

I want to play a video in my Android .NET 7.0 project. I have installed the NuGet package XamarinMediaManager version 1.2.2: https://github.com/Baseflow/XamarinMediaManager But the problem is that I only hear the sound of the video when I debug on my…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,080 questions
asked 2024-06-09T21:02:21.89+00:00
Kim Strasser 751 Reputation points
commented 2024-06-22T10:43:40.3733333+00:00
Amy McCarthy 0 Reputation points
0 answers

My CollectionView not update ItemSources ussing MVVM?

Hi, my name Liem! I using CommunityToolkit.MVVM for my NET MAUI project. I have success load data to CollectionView by binding ItemSource to [ObservableProperty] ObservableColleciont<T> Items. Now I use for loop to change item properties inide…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,080 questions
asked 2024-06-22T08:08:36.86+00:00
Liem Nguyen 11 Reputation points
2 answers

Passing another parameter from Index.cshtml to ActionResult Index in StudentsControler.cs

I am able to pass a Search string and a Sort string parameter from Index.cshtml to ActionResult Index in StudentsControler.cs. I have added 3 button and need to pass either True if button1 or False if button2 or NULL if button3. It is much like Search…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,308 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,385 questions
asked 2024-06-22T05:07:37.38+00:00
Hursh 131 Reputation points
answered 2024-06-22T08:04:04.4166667+00:00
SurferOnWww 2,176 Reputation points
0 answers

Develop an ASP.NET Core web app that consumes an API - NO SCORE AT ALL

hi, after submitting my assessment score didn't show after, that was my third attempt. Microsoft Credential task: "Develop an ASP.NET Core web app that consumes an 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.
14 questions
asked 2024-06-21T03:01:09.4366667+00:00
David Jugeli 0 Reputation points
edited the question 2024-06-22T03:37:19.73+00:00
Pradeep M 1,135 Reputation points Microsoft Vendor
3 answers

System.NullReferenceException: 'Object reference not set to an instance of an object.' model was null

model { public int VehicleID { get; set; } public int VehicleTypeID { get; set; } public string Brand { get; set; } public string Model { get; set; } public int Capacity { get; set; } = 0; public bool IsActive { get; set; } } controller //…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,544 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,308 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,789 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
914 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,524 questions
asked 2024-06-21T09:37:52.91+00:00
Naveinthiran 0 Reputation points
commented 2024-06-22T03:14:03.6933333+00:00
SurferOnWww 2,176 Reputation points
2 answers

validate antiforgery token genereted by aps.net mvc framework and used in back for front (BFF) api .net core when ajax called

Hi, there, I would like to validate an "antiforgery token" generated on an asp.net mvc framework application hosted on IIS in a BFF .net core API (back for front) hosted on Kestrel Linux with the ValidateAntiForgeryToken attribute. When I…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,308 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,385 questions
asked 2024-06-21T11:44:44.45+00:00
Pierre Guillaume 0 Reputation points
answered 2024-06-22T02:14:43.85+00:00
SurferOnWww 2,176 Reputation points
0 answers

Getting "Value does not fall within the expected range." on a call to EventWaitHandle.WaitAll(WaitHandle[], Int32)

In my code I make a call (from an MTA thread) to EventWaitHandle.WaitAll(WaitHandle[], Int32) and get the exception: "Value does not fall within the expected range." All the handles in the array (three of them at this time) are non-null, valid…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,544 questions
asked 2024-06-22T00:29:01.43+00:00
Kamen 45 Reputation points
commented 2024-06-22T01:50:58.2566667+00:00
Viorel 114K Reputation points
0 answers

How do you use the 26100 SDK with .NET?

Using the latest visual studio, all current updates, build system is OS version 22621, deploying to OS version 26100. 26100 SDK is installed from Visual Studio installer. Create a blank "WPF Application" project from Visual Studio Target…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,544 questions
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,700 questions
asked 2024-06-21T20:42:25.8866667+00:00
yoyodyne01 46 Reputation points
edited the question 2024-06-21T21:49:48.8233333+00:00
Rob Caplan - MSFT 5,427 Reputation points Microsoft Employee
4 answers

.NET8 MAUI and Azure Notifications Hub implementation

In my NET8 MAUI application, I'm trying to add push notifications using Azure Notification Hub. I can't find an updated example of how to configure and implement correctly the push notification for Windows, Android and iOS. Can you point me in the right…

Azure Notification Hubs
Azure Notification Hubs
An Azure service that is used to send push notifications to all major platforms from the cloud or on-premises environments.
285 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,080 questions
asked 2024-02-03T10:33:24.31+00:00
Enrico Rossini 181 Reputation points
answered 2024-06-21T20:12:09.9366667+00:00
Sergio Alejandro Perez Molina 0 Reputation points
0 answers

Shell.Current.GoToAsync Failed with Error: java.lang.IllegalStateException: The specified child already has a parent.

In my ViewModel, I had a RelayCommand to send parameters to another page. [RelayCommand] public async Task ReviewIt() { // ... await Shell.Current.GoToAsync(nameof(ReviewItView), new Dictionary<string, object>{ ["key1"] = value1,…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,080 questions
asked 2024-06-21T19:32:07.13+00:00
Fan Yang 0 Reputation points
0 answers

GoToAsync Failed With Java.Lang.IllegalStateException

In my ViewModel, I had a relaycommand to navigation another page: [RelayCommand] public async Task ReviewIt () { ... await Shell.Current.GoToAsync(nameof(ReviewItView), new Dictionary<string, object>{ ["key1"] = value1, …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,080 questions
asked 2024-06-21T19:12:56.94+00:00
Fan Yang 0 Reputation points
4 answers One of the answers was accepted by the question author.

How to design patterns from scratch using C# asp.net MVC

I am new to building design pattern using factory design pattern, its C# asp.net mvc application which i am going developing my new web application, please can you help me how to start from scratch. I have worked one design pattern application which is…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,544 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,385 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,524 questions
asked 2024-04-19T14:27:10.4633333+00:00
coder rock 236 Reputation points
accepted 2024-06-21T18:41:50.0666667+00:00
coder rock 236 Reputation points