26,754 questions with .NET-related tags

Sort by: Updated
1 answer

Issue with saving single record the form saves multiple records until the modelstate is valid

I am using asp.net core 8 i have a popup form when i click submit with empty fields it returns required validation error and when i fill data in fields then submit again it save multiple records is sql database the number of time i click on submit…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
774 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,756 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,238 questions
asked 2025-01-27T07:05:16.65+00:00
Asif_360 0 Reputation points
commented 2025-01-28T03:02:58.1466667+00:00
SurferOnWww 3,811 Reputation points
0 answers

How can I resolve runtime crashes in a MAUI project when integrating Android libraries as AARs, despite resolving dependencies and fixing NoClassDefFoundError exceptions?

We already have working libraries for iOS and Android, and now I’m trying to integrate them into a MAUI project. The iOS binding works fine, but I’m running into issues with the Android binding. At first, I was getting NoClassDefFoundError exceptions. To…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,864 questions
Microsoft Intune iOS
Microsoft Intune iOS
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.iOS: An Apple mobile operating system.
248 questions
Microsoft Intune Android
Microsoft Intune Android
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Android: An open-source mobile platform based on the Linux kernel, developed by Google, and maintained by the Open Handset Alliance.
326 questions
asked 2025-01-27T13:44:34.9866667+00:00
Megha Raypuriya 0 Reputation points
commented 2025-01-28T02:30:48.68+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 47,766 Reputation points Microsoft Vendor
1 answer

ITMS-90683: Missing purpose string in Info.plist

I got an email with this message from App Store Connect after uploading my new build to TestFlight. ITMS-90683: Missing purpose string in Info.plist Your app’s code references one or more APIs that access sensitive user data, or the app has one or more…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,864 questions
asked 2025-01-27T12:27:30.0233333+00:00
Kim Strasser 1,261 Reputation points
edited an answer 2025-01-28T02:08:47.1433333+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 47,766 Reputation points Microsoft Vendor
1 answer

how to fix .NET 3.5 Installation error

Ive been trying to install "iracing" but while downloading, it says couldnt find .NET 3.5 and a menu popped up for me to download it. while downloading it, an error saying it couldnt download. ive tried using fixing with the error codes here:…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,069 questions
asked 2025-01-28T01:01:21.4266667+00:00
Jack Webster 0 Reputation points
answered 2025-01-28T01:47:27.5166667+00:00
Jiale Xue - MSFT 48,856 Reputation points Microsoft Vendor
1 answer

new main window in net 9 changed

Hi, I looked in app.xaml.cs file in net 9 and create instance of main window change to: protected`` override Window CreateWindow(IActivationState? activationState) { return`` new Window(new AppShell()); } is must? why this change? Is releavant for…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,864 questions
asked 2025-01-27T07:43:15.64+00:00
Dani_S 3,976 Reputation points
commented 2025-01-28T01:29:02.8433333+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 47,766 Reputation points Microsoft Vendor
1 answer

Cannot find .NET 8.0.12-windows server hosting installer

In our Windows Server 2022 virtual machines, we are using We need to update to v8.0.12. I found .NET Runtime but not .NET-Windows Server hosting in the link below. https://dotnet.microsoft.com/en-us/download/dotnet/8.0 Please guide me with the right link…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,069 questions
asked 2025-01-27T20:47:52.32+00:00
Farzana Mustafa 181 Reputation points
answered 2025-01-28T01:06:14.3933333+00:00
Jiachen Li-MSFT 33,196 Reputation points Microsoft Vendor
5 answers

Is it true that .aspx (WebForms) is old technology and will be absent in all future asp.net versions?

I wonder that people say that WebForms is old/legacy/outdated technology, and that everyone should create MVC/.Core projects, which have no .aspx pages. Is it true that .aspx technology (WebForms) is not developed any more? I like visual design in…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,577 questions
asked 2021-10-22T17:03:31.903+00:00
Ivan 1 Reputation point
commented 2025-01-28T01:05:55.25+00:00
Bruce (SqlWork.com) 70,056 Reputation points
5 answers

HttpClient // Timeout // The remote name could not be resolved

Hello, The remote name could not be resolved using (HttpClient client = new HttpClient()) { client.BaseAddress = new Uri(System.BaseAddress); client.Timeout = new TimeSpan(0, 0, System.Timeout); public void Exception(Exception ex, string…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,577 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,238 questions
asked 2025-01-23T18:48:34.5966667+00:00
Noah Aas 545 Reputation points
commented 2025-01-28T00:37:53.5933333+00:00
SurferOnWww 3,811 Reputation points
1 answer One of the answers was accepted by the question author.

When using NavigationPage as the main page, I do not receive back button events.

Hi, in App.xaml.cscs I have my main page initiated like this: MainPage = new NavigationPage(new MainPage()); However when I do that, this event is never called from any of my pages: protected override bool OnBackButtonPressed() If I use …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,864 questions
asked 2025-01-21T18:05:54.9866667+00:00
Phunction 301 Reputation points
accepted 2025-01-27T21:38:47.6666667+00:00
Phunction 301 Reputation points
1 answer

I broke my Pair to Mac in Windows: An error occurred while trying to start Broker 17.12.0.153

So I tried getting my project running in VSCode on the Mac, I got all the bits installed and it runs. Unfortunately doing that seems to have killed the Pair to Mac on my PC. Somehow my broker thinks I need to install .net 8 but I want .net 9. I don't…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,864 questions
asked 2025-01-14T00:26:30.5766667+00:00
Steven Roman 0 Reputation points
commented 2025-01-27T20:58:23.4166667+00:00
Steven Roman 0 Reputation points
2 answers One of the answers was accepted by the question author.

Integrating RDLC reports in Blazor Web apps

Hello, Is it possible to call RDLC reports in a Blazor web app or use report viewer to load RDLC reports? I'm not seeing the reporting options in the latest framework. Could someone please share examples and resources for integrating RDLC reports with…

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,654 questions
asked 2023-12-25T14:16:50.2066667+00:00
Diwakar Devangam 75 Reputation points
commented 2025-01-27T20:39:40.3+00:00
Iannick Tremblay-Levasseur 0 Reputation points
1 answer

allow only one system to login the aspx page

Hello I have hosted my aspx pages in serevr its accesing using local ip 192.168.xx.x for example i have abc.aspx it should allow only one system and one login to access if any other same user login and coming from difference browser or system has to…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,577 questions
asked 2025-01-27T11:19:39.5733333+00:00
RAVI 1,056 Reputation points
edited an answer 2025-01-27T20:32:32.6233333+00:00
Albert Kallal 5,491 Reputation points
2 answers One of the answers was accepted by the question author.

API response is missing but not middleware response updates

I was experimenting asp.net core (net9.0) custom middleware with below sample code. In API response I get the text written by middleware but the API response itself is missing. Any insights to help me understand on what is actually happening ? This is…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,069 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,756 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,069 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,756 questions
asked 2025-01-24T12:00:55.5133333+00:00
Harish Lakshmana 0 Reputation points
commented 2025-01-27T20:29:03.4033333+00:00
Bruce (SqlWork.com) 70,056 Reputation points
2 answers One of the answers was accepted by the question author.

API response is missing but not middleware response updates

I was experimenting asp.net core (net9.0) custom middleware with below sample code. In API response I get the text written by middleware but the API response itself is missing. Any insights to help me understand on what is actually happening ? This is…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,069 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,756 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,069 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,756 questions
asked 2025-01-24T12:00:55.5133333+00:00
Harish Lakshmana 0 Reputation points
commented 2025-01-27T20:29:03.4033333+00:00
Bruce (SqlWork.com) 70,056 Reputation points
1 answer One of the answers was accepted by the question author.

How to disconnect a Bluetooth (not LE) device from windows computer in UWP/.NetCore/etc.?

I have a Bluetooth device connected to my computer. The following is the state of the device in Bluetooth & Other Devices list. I want to disconnect it from the computer using any API of desktop/UWP app (e.g., IOCTL etc.). So I want to make it to…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,069 questions
Universal Windows Platform (UWP)
asked 2023-04-02T11:02:17.5733333+00:00
Marjan Khan 25 Reputation points
commented 2025-01-27T19:59:37.7666667+00:00
F Farah 0 Reputation points
1 answer

dotnet build run with platform Any CPU

Hi, I have Mac with Sonoma 14.7.2, Xcode 16.2 in net 9. I create new empty project in maui in net 9. I clean and build my app and got Platform="Any CPU" and project not running. Can you please help ? Console: dotnet build…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,864 questions
asked 2025-01-27T07:03:06.18+00:00
Dani_S 3,976 Reputation points
edited a comment 2025-01-27T19:51:16.7733333+00:00
Dani_S 3,976 Reputation points
1 answer One of the answers was accepted by the question author.

Build fail for project in Android [.NET 8]

Good morning, I have a perfectly working MAUI project developed with .NET7 that I decided to migrate to .NET8. However, I am unable to publish in Release, while in Debug it works correctly. Good morning, I have a perfectly working MAUI project developed…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,864 questions
asked 2024-01-18T14:28:49.43+00:00
Alberto Fagni 20 Reputation points
commented 2025-01-27T19:34:42.2266667+00:00
Alex G 0 Reputation points
0 answers

Can't debug new empty project in net 9 using VS code in Mac

Hi, I open new empty net 9 in maui in MAC and can't run it after build. What to do ? I got this error:

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,864 questions
asked 2025-01-24T10:29:27.97+00:00
Dani_S 3,976 Reputation points
commented 2025-01-27T19:28:04.1366667+00:00
Dani_S 3,976 Reputation points
1 answer

Application is Crashing when opening the collection view in iOS 18 (if the collection is having grouping)

I can able to see this the App center. When ever we are working without grouping the collectionview is working fine. The production application is working fine, without any code changes in our application the collectionview is started crashing when…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,864 questions
asked 2024-11-15T11:01:38.8133333+00:00
Vaibhav Methuku 80 Reputation points
commented 2025-01-27T18:02:52.4966667+00:00
gladis wilson 0 Reputation points
1 answer One of the answers was accepted by the question author.

Why in maui net 9 compatibility reference no need any more

Hi, Why in maui net 9 compatibility reference no need any more ? <``PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="$(MauiVersion)" /> Thanks,

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,864 questions
asked 2025-01-27T12:30:00.4+00:00
Dani_S 3,976 Reputation points
accepted 2025-01-27T17:08:25.2466667+00:00
Dani_S 3,976 Reputation points