26,654 questions with .NET-related tags

Sort by: Updated
0 answers

Blazor .Net 9 Default template simple usage of a service - porting from an earlier version

I tried to port this simple project: https://github.com/JWealthall/BlazorWindowResize to .net 9.0 So, I created a simple sample at: https://github.com/KKacer/BlazorTestWindowSize I'm trying to understand the usage and changes I need to do in the 2…

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,646 questions
asked 2025-01-16T18:50:15.5666667+00:00
Kasrak 26 Reputation points
edited the question 2025-01-16T18:56:35.16+00:00
Kasrak 26 Reputation points
1 answer

Why would my inbound port rules re-prioritize themselves automatically?

I have a server running on Azure and the Inbound Port Rules will automatically change their order in priority causing connection issues on the end-user. Is there anyway to avoid from having to rearrange priorities on these rules?

Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,593 questions
.NET F#
.NET F#
.NET: Microsoft Technologies based on the .NET software framework.F#: A strongly typed, multi-paradigm programming language developed by the F# Software Foundation, Microsoft, and open contributors.
116 questions
asked 2025-01-02T15:02:54.9333333+00:00
Jamison Ballou 0 Reputation points
edited an answer 2025-01-16T18:42:45.64+00:00
Sai Prasanna Sinde 3,090 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

Cannot update .NET to 6.0.36

I'm currently trying to update .NET runtime however, when trying to uninstall an older version of .NET the following error occurs: I check for it and the program is in fact installed However uninstalling it by any means I've tried gives this error,…

.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,186 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,445 questions
asked 2025-01-16T02:40:32.95+00:00
Miguel Rodrigues 0 Reputation points
accepted 2025-01-16T18:34:10.8466667+00:00
Miguel Rodrigues 0 Reputation points
1 answer

VS 2019 always crashes whenever I try to open this one solution

I am tasked with maintaining an old VB.NET ASP.NET WebForms application. It has 9 projects within the solution. It is at least 15 years old, which is longer than I have been employed in this position. None of the original developers are around. They left…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,566 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,765 questions
asked 2025-01-10T20:34:16.4966667+00:00
Falanga, Rod, DOH 260 Reputation points
commented 2025-01-16T17:59:51.6266667+00:00
Michael Taylor 56,261 Reputation points
0 answers

Firewall blocking OneDrive file content using Graph .NET SDK

I have a C# backend code that uses Microsoft Graph SDK for .NET and reads file content from OneDrive. The solution is a multi tenant solution and is deployed in Azure but secured by NVA Firewall (Fortinet) even for outbound connections. We have patched…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,047 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,795 questions
OneDrive
OneDrive
A Microsoft file hosting and synchronization service.
1,265 questions
asked 2025-01-16T17:16:44.88+00:00
Ajay MS 0 Reputation points
1 answer One of the answers was accepted by the question author.

Unable to display alert after modal popup

I have an issue I am unable to solve. In this code: var popupPage = new myPopup(); var taskCompletionSource = new TaskCompletionSource<bool>(); // Set up an event to resolve the task when the modal is dismissed popupPage.Disappearing += (s, args)…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,830 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,201 questions
asked 2025-01-08T17:19:31.36+00:00
Phunction 281 Reputation points
accepted 2025-01-16T16:49:52.97+00:00
Phunction 281 Reputation points
2 answers One of the answers was accepted by the question author.

aspx page i droge in a listbox to my form

aspx page i droged in a listbox to my form and i cannot move it even i set in code the location and it dont help it is staion on the feft side of the form and cannot move it

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,566 questions
asked 2025-01-15T21:09:57.9466667+00:00
Simon 326 Reputation points
accepted 2025-01-16T16:18:35.9166667+00:00
Simon 326 Reputation points
1 answer One of the answers was accepted by the question author.

Button appearing above page content for all pages on iOS tablet - .NET MAUI

Hi, I have a .NET 8 MAUI app that I'm developing for Android and iOS. I have an issue where all of my pages are showing a blank space at the top with a button, but it's only doing that on iOS when on a tablet. My iPhone doesn't show it and neither does…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,830 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,201 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
827 questions
asked 2025-01-15T09:13:50.77+00:00
Ben 25 Reputation points
commented 2025-01-16T15:47:34.4166667+00:00
Ben 25 Reputation points
0 answers

Requirements to register and authenticate a .NET desktop app in M365

Hi, all. I have a .NET desktop application (C# + WPF) which is to be registered in Microsoft Store and made available via subscription. Part of the process is clear, such as having authentication via MSAL (which I understand as having the user…

Microsoft 365
Microsoft 365
Formerly Office 365, is a line of subscription services offered by Microsoft which adds to and includes the Microsoft Office product line.
5,494 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,047 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,883 questions
asked 2025-01-13T17:49:26.8733333+00:00
Saulo Silva 0 Reputation points
commented 2025-01-16T15:36:25.86+00:00
Janaki Kota 230 Reputation points Microsoft Vendor
1 answer

NPGSQL - Common Language Runtime detected an invalid program.

I have two servers with windows server 2019 and an a Simple API project developed with .NET 8. The project use Npgsql library at version 4.0.0. The configuration between servers are the same: same path same .NET hosting bundle same IIS…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,047 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,735 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,201 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,047 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,735 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,201 questions
asked 2024-10-01T06:22:10.66+00:00
DSpada 0 Reputation points
commented 2025-01-16T15:33:21.5133333+00:00
Eleena SAin 0 Reputation points
1 answer

NPGSQL - Common Language Runtime detected an invalid program.

I have two servers with windows server 2019 and an a Simple API project developed with .NET 8. The project use Npgsql library at version 4.0.0. The configuration between servers are the same: same path same .NET hosting bundle same IIS…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,047 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,735 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,201 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,047 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,735 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,201 questions
asked 2024-10-01T06:22:10.66+00:00
DSpada 0 Reputation points
commented 2025-01-16T15:33:21.5133333+00:00
Eleena SAin 0 Reputation points
1 answer

Will publishing an ASP.NET WebForms app remove Crysttal Reports from the web server?

I maintain a legacy Intranet ASP.NET WebForms app written years ago using VB.NET. When the original developers wrote it, they used Crystal Reports 13.0.2 (I think, I'm going on memory and I'm home, so I cannot verify this, but I'm sure it is very close.)…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,566 questions
asked 2025-01-16T02:06:01.4266667+00:00
Rod Falanga 566 Reputation points
answered 2025-01-16T15:23:26.2566667+00:00
Michael Taylor 56,261 Reputation points
2 answers One of the answers was accepted by the question author.

Error RZ10012 when adding a component in blazor

Hello, I'm trying to learn Blazor with a youtube video. I have this page : MainLayout.razor @inherits LayoutComponentBase <div class="page"> <div class="sidebar"> <NavMenu /> </div> …

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,646 questions
asked 2023-01-18T12:23:31.0866667+00:00
Laurent Guigon 311 Reputation points
commented 2025-01-16T14:22:35.48+00:00
Oliver_P 15 Reputation points
1 answer

How Can I Detect if the System Clock is Moved Forward or Backward in a C# WPF Application?

Hello, In my C# WPF desktop project, I want to detect if the system clock has been moved forward or backward. When such a change is detected, I would like to take specific actions. For example: Show a warning if the system clock is moved forward. Log an…

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,812 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,201 questions
asked 2025-01-16T10:34:03.34+00:00
fatih uyanık 160 Reputation points
edited the question 2025-01-16T13:25:21.84+00:00
Jiachen Li-MSFT 33,046 Reputation points Microsoft Vendor
1 answer

[iOS] MAUI app crashing when calling function from external library in Release mode, but works in Debug mode

MAUI .NET 9, 9.0.21, targeting iOS and Android I'm observing the app crashing on iOS when running in Release mode build from TestFlight on physical device, but works when running in Debug mode in simulators. The app crashes when a particular method is…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,830 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,201 questions
asked 2025-01-15T15:15:36.6666667+00:00
Muhammad Sharif Uddin 0 Reputation points
edited a comment 2025-01-16T13:06:40.6633333+00:00
Muhammad Sharif Uddin 0 Reputation points
0 answers

Xamarin.uwp- getting run time error - System.Reflection.MissingMetadataException: ''Xamarin.Forms.Platform.UWP.WindowsPlatformServices' is missing metadata. For more information, please visit http://go.microsoft.com/fwlink/?LinkID=392859'

Xamarin.uwp- getting run time error - System.Reflection.MissingMetadataException: ''Xamarin.Forms.Platform.UWP.WindowsPlatformServices' is missing metadata. For more information, please visit http://go.microsoft.com/fwlink/?LinkID=392859' Tried multiple…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,370 questions
asked 2025-01-16T12:03:26.72+00:00
APM Rounds 21 Reputation points
0 answers

Called multiple times

Minimal code example AppShellViewModel public partial class AppShellViewModel { private readonly IConnectivity _connectivity; public AppShellViewModel(IConnectivity connectivity, NoInternetPopUp noInternetPopUp) { …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,830 questions
asked 2025-01-14T16:59:23.9566667+00:00
Eduardo Gomez Romero 1,215 Reputation points
edited the question 2025-01-16T12:02:33.7933333+00:00
Eduardo Gomez Romero 1,215 Reputation points
1 answer

Why can I not see ioS Local Device in VS 2022 on Windows ARM (Snapdragon) device?

I have recently purchased a Surface laptop with Snapdragon X 12-core processor and am struggling to create a useable VS2022 .Net MAUI development environment. I discover that there are no Android emulators available at present, but attaching a physical…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,354 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,830 questions
asked 2025-01-15T11:28:38.3533333+00:00
Adrian Lewis 20 Reputation points
commented 2025-01-16T11:45:25.64+00:00
Adrian Lewis 20 Reputation points
1 answer

Can I use custom DataAnnotations localization?

[Required(ErrorMessage = "The Email field is required.")] [EmailAddress(ErrorMessage = "The Email field is not a valid email address.")] [Display(Name = "Email")] public string Email { get; set; } how to…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,735 questions
asked 2025-01-16T04:37:33.9233333+00:00
mc 5,061 Reputation points
commented 2025-01-16T11:03:04.1833333+00:00
mc 5,061 Reputation points
1 answer One of the answers was accepted by the question author.

MAUI: Issue with subscription page in play store, plans are not listing and no cancel option

I purchased a subscription for my own app from play store using real card and I successfully completed the payment. I am redirecting the users to play store subscription page for upgrade, downgrade and cancel subscription. My problem is when I visit the…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,830 questions
asked 2025-01-15T14:22:59.7166667+00:00
Sreejith Sreenivasan 901 Reputation points
edited a comment 2025-01-16T10:59:55.6266667+00:00
Sreejith Sreenivasan 901 Reputation points