16,621 questions with .NET-related tags

Sort by: Updated
1 answer

MAUI *.xaml.sg.cs files are not regenerating causing Duplicate 'global::Microsoft.Maui.Controls.Xaml.XamlFilePath' attribute errors

MAUI *.xaml.sg.cs files are not regenerating on build causing "Duplicate 'global::Microsoft.Maui.Controls.Xaml.XamlFilePath' attribute" errors.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,104 questions
asked 2025-05-10T23:03:45.31+00:00
Steven Scearce IV 6 Reputation points
answered 2025-05-11T23:28:13.64+00:00
Steven Scearce IV 6 Reputation points
0 answers

Loading pop up

https://reccloud.com/u/nq75s16 <toolkit:Popup x:Class="FireChat.Views.PopUps.LoadingPopUp" xmlns="http://schemas.microsoft.com/dotnet/2021/maui" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,104 questions
asked 2025-05-11T22:16:44.19+00:00
Eduardo Gomez 3,651 Reputation points
edited the question 2025-05-11T22:33:04.89+00:00
Eduardo Gomez 3,651 Reputation points
1 answer

Unable to load the service index for source https://api.nuget.org/v3/index.json.

Visual Studio2022: Nuget package manager is giving error: Unable to load the service index for source https://api.nuget.org/v3/index.json. Windows 10 machine Cannot access https://api.nuget.org/v3/index.json. in the browser …

.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,242 questions
asked 2025-05-11T07:23:07.2+00:00
Sajjad Afzal 1 Reputation point
answered 2025-05-11T17:10:05.2166667+00:00
Sajjad Afzal 1 Reputation point
1 answer

How to Upload a Xamarin IPA to App Store with Xcode 16.3 on macOS 15.4.1?"

Following the resolution of a recent production issue, I attempted to build the IPA on a Mac that was just updated to the latest macOS version(15.4.1). and Xcode version from 15.5 to 16.3. This update is necessary because, starting May 1st, 2025, all…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,380 questions
asked 2025-05-11T11:16:37.98+00:00
developer xamarin maui 0 Reputation points
answered 2025-05-11T15:10:29.62+00:00
Bruce (SqlWork.com) 75,386 Reputation points Moderator
1 answer

The process cannot access the file because it is being used by another process

I tried to update me db schema in my code and after changing that if i run my application i ma getting the error as follows The process cannot access the file because it is being used by another process but my db is not opened anywhere so how to…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,103 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,453 questions
asked 2023-02-09T13:53:39.9233333+00:00
Dineshkumar.S 456 Reputation points
edited a comment 2025-05-11T14:45:12.4+00:00
Scott Thomas Nieman 0 Reputation points
0 answers

Flayout page navigation-passing parameter

Hi, im using net 9. I would like to know how i can pass parameters between pages using official maui flayout page navigation. Thanks in advance,

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,104 questions
asked 2025-05-07T19:52:51.8733333+00:00
Dani_S 4,461 Reputation points
commented 2025-05-11T06:18:23.5133333+00:00
Dani_S 4,461 Reputation points
1 answer

Microsoft.EntityFrameworkCore.DbUpdateConcurrencyException: The database operation was expected to affect 1 row(s), but actually affected 0 row(s); data may have been modified or deleted since entities were loaded.

I am using DDD architecture and the following code changes the aggregate Root (basically adds a comment which is an Entity to the aggregate Root). public sealed class AddCommentToPostCommandHandlers : ICommandHandler<AddCommentToPostCommand,…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
779 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,494 questions
asked 2024-11-24T08:29:09.3733333+00:00
Arman Espiar 1 Reputation point
edited an answer 2025-05-10T22:19:03.3933333+00:00
Robert Eru 0 Reputation points
1 answer

How to fix The AOTCompile task failed unexpectedly in .NET Maui iOS on MacOs?

I recently moved from an x86 Intel Macbook to an Apple Silicon Macbook. I'm working on a .NET9 iOS app in Maui using JetBrains Rider. The app builds but won't deploy. The error states that the AOTCompile command is looking in the wrong directory for…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,104 questions
asked 2025-05-09T18:30:43.9466667+00:00
Jerod Motley 0 Reputation points
answered 2025-05-10T18:00:47.14+00:00
Bruce (SqlWork.com) 75,386 Reputation points Moderator
1 answer

First time login after setting the password. When user tried to login with correct username and password then user is getting redirect to login page without any error

We are experiencing an issue with the Azure AD B2C login flow. After a user sets their password for the first time and attempts to log in using the correct username and password, they are unexpectedly redirected back to the login page. No error message…

.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,242 questions
asked 2025-05-10T04:51:16.02+00:00
Chandan Singh 0 Reputation points
answered 2025-05-10T17:50:09.71+00:00
Bruce (SqlWork.com) 75,386 Reputation points Moderator
2 answers

Error In Blazor Web App

I am getting error in browser console Project version is .NET 9 Template Blazor Web App Auto Interactive Render @rendermode @(new InteractiveWebAssemblyRenderMode(false)) after setting data not get loaded and error still there. why data is not…

Blazor Training
Blazor Training
Blazor: A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.Training: Instruction to develop new skills.
32 questions
asked 2025-05-06T12:11:45.9733333+00:00
Prathamesh Shende 441 Reputation points
commented 2025-05-10T16:10:01.7766667+00:00
Bruce (SqlWork.com) 75,386 Reputation points Moderator
1 answer

Images show up on other devices but not windows build

Hi, I am building a .net maui application my .png's show up on android and android emulators But I am unable to get the same image on windows build, or any image for that matter of fact Here is the code that use. var var image = new Image() { …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,104 questions
asked 2025-04-25T18:25:52.6066667+00:00
anandarus allen 0 Reputation points
answered 2025-05-10T10:23:10.62+00:00
Kshitij Wankhade 0 Reputation points
0 answers

Image do not bind

This is the VM public partial class AppShellViewModel : BaseViewModel { readonly FirebaseAuthClient _authClient; readonly WeakReferenceMessenger _messenger; readonly IMediaPicker _mediaPicker; [ObservableProperty] LocalUser…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,104 questions
asked 2025-05-10T00:02:24.8933333+00:00
Eduardo Gomez 3,651 Reputation points
edited the question 2025-05-10T00:08:00.7033333+00:00
Eduardo Gomez 3,651 Reputation points
0 answers

Binding null, but is working

In have my viewModel using System.Collections.ObjectModel; namespace FireChat.ViewModels; public partial class AppShellViewModel : BaseViewModel { readonly FirebaseAuthClient _authClient; readonly WeakReferenceMessenger _messenger; …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,104 questions
asked 2025-05-09T23:45:59.3366667+00:00
Eduardo Gomez 3,651 Reputation points
edited the question 2025-05-10T00:07:08.2666667+00:00
Eduardo Gomez 3,651 Reputation points
1 answer One of the answers was accepted by the question author.

Command does not hit

I have this chunk of code <sfPopup:SfPopup x:Name="UserProfilePopup" AbsoluteY="20" AcceptButtonText="Save and close" AcceptCommand="{Binding SavePopUpContentCommand}" …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,104 questions
asked 2025-05-08T21:29:08.7766667+00:00
Eduardo Gomez 3,651 Reputation points
accepted 2025-05-09T22:58:44.98+00:00
Eduardo Gomez 3,651 Reputation points
0 answers

Splash Screen not showing up for windows build on .net maui

Hello all, So I created a simple custom splash screen, it works for android but not on a windows desktop. Here is the code public partial class SplashScreen : ContentPage { private ContinousAudio continousAudio; public…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,104 questions
asked 2025-04-19T20:11:17.8933333+00:00
anandarus allen 0 Reputation points
commented 2025-05-09T22:20:01.9066667+00:00
anandarus allen 0 Reputation points
1 answer One of the answers was accepted by the question author.

Blazor app .NET 8 interactive buttons with @onclick not working

I am making a .NET 8 Blazor web app with interactive server components but when i make a simple button that has to perform a simple function i declared it doesn't do anything, no messages via the websockets, no UI change. I think i have done all the…

Blazor Training
Blazor Training
Blazor: A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.Training: Instruction to develop new skills.
32 questions
asked 2025-05-02T14:08:16.08+00:00
qnqdotnet 25 Reputation points
commented 2025-05-09T19:00:31.7366667+00:00
qnqdotnet 25 Reputation points
0 answers

Connecting to SQLExpress Database takes long time

Upgraded .net 4.8 C# app to .net 8. The new version takes 30 seconds to connect to SQLExpress database on server (\ServerName\SQLExpress). Original version took less than 1 second to connect to same server. Management Studio and reporting tool also…

.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,242 questions
asked 2025-05-09T18:00:30.5266667+00:00
Lorne Johnson 0 Reputation points
1 answer

Limitations When Launching .NET MAUI Windows App via Custom URI Scheme

I've added the following entry to the Package.appxmanifest for my .NET MAUI Windows app to support activation via a custom URI scheme: After investigating this setup, I observed the following limitations: Key Findings Windows Focus Restrictions: When the…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,104 questions
asked 2025-05-09T07:36:07.6433333+00:00
Sagar Shinde 0 Reputation points
answered 2025-05-09T16:12:25.4966667+00:00
Bruce (SqlWork.com) 75,386 Reputation points Moderator
1 answer

How to fix System.IO.FileLoadException: Could not load file or assembly 'file:///C:\inetpub\wwwroot\project\bin\BusinessLayer.dll' or one of its dependencies. Access is denied.

On IIS server, after hosting my Web API works fine for two or three minutes then it get crashed with below message .. Server Error in '/' Application. Could not load file or assembly 'file:///C:\inetpub\wwwroot\project\bin\BusinessLayer.dll' or one of…

.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,242 questions
asked 2025-05-06T19:28:18.9966667+00:00
Rohit Kalyanpuri 0 Reputation points
answered 2025-05-09T14:34:00.6+00:00
Samuel Lima 0 Reputation points
0 answers

Visual Studio 2022 Professional build issue -.net 4.8

I am using nuget of some organization. And when I am trying to run the sample Azure Function -https://github.com/Azure/azure-functions-dotnet-worker/tree/main i am getting below error: C:\Program Files\Microsoft Visual…

.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,242 questions
asked 2025-05-09T13:18:07.64+00:00
Abhay 0 Reputation points
edited the question 2025-05-09T13:20:33.2033333+00:00
Abhay 0 Reputation points