26,931 questions with .NET-related tags

Sort by: Updated
1 answer

Validating user's input format is not working

Our requirement is to ask users to create a password with the following format: First letter of firstname+First letter of lastname+2 digits of month+2 digits of day+4 digits of year. For instance, a user with the name of John Doe, born January 1, 1900…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,600 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,781 questions
asked Feb 18, 2025, 11:08 PM
Simflex 301 Reputation points
edited the question Feb 19, 2025, 2:08 AM
Simflex 301 Reputation points
1 answer

Excel is not visible for Android

Hello, I have created a test project to show Excel using web view. Here is the GitHub URL TestWebVeiw. I am trying to open the Excel file using WebView. The Excel is visible on the iPhone, but it shows a blank page when I try to run it on Android. I…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,933 questions
asked Feb 18, 2025, 11:11 AM
Chinmay Dole 200 Reputation points
answered Feb 19, 2025, 2:01 AM
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 48,501 Reputation points Microsoft Vendor
2 answers

Maui: Image not displayed

Hi, in the process of migrating the data input from 'data.cs' to 'data.json' I'm stuck ... or, as a senior hobby developer just not experienced enough. Thanks for your time, help and advice. On GIT I have two sites (both are public) 1st App RandoCS:…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,448 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,933 questions
asked Feb 17, 2025, 2:55 PM
Eduard Kaufmann 211 Reputation points
commented Feb 19, 2025, 1:49 AM
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 48,501 Reputation points Microsoft Vendor
1 answer

WPF Cannot see SelectedItem in TreeView

I'm using WPF .Net 9.0, I cannot see the SelectedItem element of the TreeView. Anybody would know why ?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,108 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,827 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,108 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,827 questions
asked Feb 17, 2025, 12:51 AM
Bernard Lessard 1 Reputation point
edited a comment Feb 19, 2025, 1:48 AM
Hongrui Yu-MSFT 4,365 Reputation points Microsoft Vendor
1 answer

WPF Cannot see SelectedItem in TreeView

I'm using WPF .Net 9.0, I cannot see the SelectedItem element of the TreeView. Anybody would know why ?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,108 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,827 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,108 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,827 questions
asked Feb 17, 2025, 12:51 AM
Bernard Lessard 1 Reputation point
edited a comment Feb 19, 2025, 1:48 AM
Hongrui Yu-MSFT 4,365 Reputation points Microsoft Vendor
0 answers

Could not load type 'Microsoft.EntityFrameworkCore.Metadata.Internal.AdHocMapper'

I'm using .NET 8.0, Entity FrameworkCore 9.0.2, MySql.EntityFrameworkCore 9.0.0 and when I try to get data from the database I get the following error. How to resolve this problem? System.TypeLoadException: Could not load type…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
778 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,108 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,785 questions
Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
778 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,108 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,785 questions
asked Feb 18, 2025, 9:23 AM
Misha Kurytsia 0 Reputation points
commented Feb 19, 2025, 1:43 AM
Tiny Wang-MSFT 3,146 Reputation points Microsoft Vendor
0 answers

Could not load type 'Microsoft.EntityFrameworkCore.Metadata.Internal.AdHocMapper'

I'm using .NET 8.0, Entity FrameworkCore 9.0.2, MySql.EntityFrameworkCore 9.0.0 and when I try to get data from the database I get the following error. How to resolve this problem? System.TypeLoadException: Could not load type…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
778 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,108 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,785 questions
Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
778 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,108 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,785 questions
asked Feb 18, 2025, 9:23 AM
Misha Kurytsia 0 Reputation points
commented Feb 19, 2025, 1:43 AM
Tiny Wang-MSFT 3,146 Reputation points Microsoft Vendor
1 answer

Showing WPF window having webView2 control gives error dialog with description - Microsoft Edge can't read and write to its data directory

Showing WPF window having webView2 control gives error dialog with description - Microsoft Edge can't read and write to its data directory I have Webview2 control in WPF Window as shown below in webViewStrings.xaml file <Window…

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,827 questions
asked Feb 7, 2025, 3:57 PM
Ajay Gera 45 Reputation points
edited a comment Feb 19, 2025, 1:41 AM
Hongrui Yu-MSFT 4,365 Reputation points Microsoft Vendor
1 answer

can not change appicon in android?

I am using net.android I can not change the appicon 1.I have change 2.changed appicon.xml but there is error: how to change the icon to my image?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,933 questions
asked Feb 17, 2025, 3:30 PM
mc 5,161 Reputation points
edited a comment Feb 19, 2025, 1:05 AM
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 79,941 Reputation points Microsoft Vendor
1 answer

I'm missing a few project templates in VS 2022

In VS 2019, I frequently created new projects with the following templates: ASP.NET Web Application (.NET Framework) C# Report Server Project But I don't see those two templates in VS 2022. Did I miss something when installing 2022?

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,600 questions
asked Feb 17, 2025, 7:57 PM
Coreysan 1,806 Reputation points
edited a comment Feb 19, 2025, 1:04 AM
SurferOnWww 3,796 Reputation points
1 answer One of the answers was accepted by the question author.

Disable iOS Swipe gestures in .NET 8.0 Maui

Hi, I am new to .Net Maui and trying to disable the iOS Swipe gestures in my .NET 8.0 Maui App. I followed this example for Shell,: https://learn.microsoft.com/en-us/answers/questions/1143556/how-to-disable-the-swipe-back-in-ios-using-net-mau but my…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,933 questions
asked Feb 17, 2025, 10:16 AM
Aiko 20 Reputation points
commented Feb 19, 2025, 12:53 AM
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 35,826 Reputation points Microsoft Vendor
0 answers

Cookie Authentication Without Asp>net Core Identiy

Hello everyone and thanks for the help in advance. I am learning Asp>net Core Identity and want to try rolling my own without using the Identity package. I am working through the examples at…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,785 questions
asked Feb 18, 2025, 11:38 PM
Kmcnet 966 Reputation points
1 answer One of the answers was accepted by the question author.

Shell child screen navigability MAUI

¿What is the best way to navigate between a stack of screens whose root is a Shell type screen? ¿It is recommended to use ContentPage.Navigation.PushAsync() in applications that implement Shell?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,933 questions
asked Feb 17, 2025, 10:53 PM
Kevin Anchapaxi 60 Reputation points
accepted Feb 18, 2025, 11:01 PM
Kevin Anchapaxi 60 Reputation points
1 answer

Fix "AADSTS500112" in "Azure Container App" running asp.net with Identity

I am encounter error "AADSTS500112" in an asp.net running in azure container app behind an ingress which is handing SSL termination. This means that all address are coming in as https and the ingress is forwarding http to port 8080. The Azure…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,600 questions
Azure Container Apps
Azure Container Apps
An Azure service that provides a general-purpose, serverless container platform.
541 questions
Microsoft Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
3,039 questions
asked Feb 8, 2025, 5:54 PM
Kelvin Hoover 5 Reputation points
commented Feb 18, 2025, 10:36 PM
Sanoop M 765 Reputation points Microsoft Vendor
3 answers

How to convert Wordpress website to ASP.net web form?? is it possible??

We don't have the source code for the WordPress website. We got the code from the inspect-->view page source method. We just pasted the code in Visual studio and it's working but the problem is we were unable to separate the CSS and script file. As…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,600 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,448 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,779 questions
asked Apr 25, 2023, 7:18 AM
Anitha Sivakumar 0 Reputation points
answered Feb 18, 2025, 8:32 PM
RabNawaz khan 0 Reputation points
1 answer One of the answers was accepted by the question author.

Simplifying APK Update Process in MAUI App

I am looking for ways to simplify the update process for a private app Currently, I can download the APK of the new version from a database. However, once the APK is downloaded, I'm unsure how to use code to perform the update. It is not on the store.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,933 questions
asked Feb 6, 2025, 12:15 PM
F Dhcdgb 80 Reputation points
edited the question Feb 18, 2025, 6:52 PM
TP 103.5K Reputation points
1 answer

how to install APP in android in maui?

I will download new version update and install it in my android device.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,933 questions
asked Apr 26, 2024, 1:06 AM
mc 5,161 Reputation points
edited the question Feb 18, 2025, 6:50 PM
TP 103.5K Reputation points
1 answer

How do I revoke a 3rd party app able to use my Microsoft account for login?

Hi all; I am trying to unlink my Microsoft login to an app. I need to do this so I can test it first logging in for my app. Where can I do this? Everything on the web says go to the privacy tab in my account. There is no privacy tab. ??? - thanks -…

Microsoft Identity Manager
Microsoft Identity Manager
A family of Microsoft products that manage a user's digital identity using identity synchronization, certificate management, and user provisioning.
758 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,785 questions
asked Feb 17, 2025, 10:49 PM
David Thielen 3,186 Reputation points
edited a comment Feb 18, 2025, 5:59 PM
David Thielen 3,186 Reputation points
1 answer

Will the list of tasks being cleared after await Tasks.WhenAll(tasks)?

Hi, Will the list of tasks being cleared after await Tasks.WhenAll(tasks)? int i=0; List<Task> tasks = new List<Task>(); do { tasks.Add(Do_Test1(i)); tasks tasks tasks tasks await Task.WhenAll(tasks); //…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,785 questions
asked Feb 18, 2025, 7:49 AM
Dondon510 241 Reputation points
answered Feb 18, 2025, 5:29 PM
Bruce (SqlWork.com) 71,586 Reputation points
0 answers

IDA code works perfect on local but not on server

Hello Team, we have written a code for linking our asp.net application through ad account by OpenIdConnect . This works perfectly on local environment but while deploying on server it throws task canceled error . A task was canceled. Description: An…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,600 questions
asked Feb 18, 2025, 12:42 PM
Suchita jain 0 Reputation points
edited the question Feb 18, 2025, 5:16 PM
Sanoop M 765 Reputation points Microsoft Vendor