Microsoft Q&A

.NET

20,643 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

20,643 questions with .NET-related tags

Sort by: Updated
0 answers

Azure Application has 2 Web RedirectURIs, startup.vb attempts to only go to 1 even if the other is specified.

I have a .net application that is using Azure authentication and the application has 2 defined redirect URIs. 2 URIs are https://ovfsstoreorders.frischs.com/default.aspx and https://extranet.frischs.com/https/ovfsstoreorders.frischs.com/default.aspx In…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,561 questions
Microsoft Entra
asked 2023-09-25T20:32:37.35+00:00
Worthington, Charity 0 Reputation points
edited the question 2023-09-26T04:48:20.58+00:00
ajkuma 17,441 Reputation points Microsoft Employee
0 answers

Seeking Assistance for Windows Server 2022 Issue

Dear Community Members, I am currently encountering an issue on my Windows Server 2022 system that requires your expert guidance and assistance. Issue Description: My server has .NET 4.8 features already installed. However, I am facing difficulties while…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,050 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
10,575 questions
asked 2023-09-26T04:37:42.4033333+00:00
Shinaz Fiyaz 0 Reputation points
edited the question 2023-09-26T04:39:01.06+00:00
Shinaz Fiyaz 0 Reputation points
1 answer One of the answers was accepted by the question author.

How to get user name for Blazor server applications (EasyAuth)?

I configured azure app service using EasyAuth. I tried to get the user name in the article below, but the username was returned null. The EasyAuth is working…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,561 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,105 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
5,618 questions
asked 2023-09-21T06:31:02.0733333+00:00
takeolexus 60 Reputation points
accepted 2023-09-26T04:09:14.62+00:00
takeolexus 60 Reputation points
1 answer

Property not being set

Hi In my MAUI app I am calling OnItemTapped method from a command. I have implemented IsBusy logic in OnItemTapped to avoid it being executed again until it is done. At the end of OnItemTapped method I am setting IsBusy to false. However IsBusy…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,858 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.
8,973 questions
asked 2023-09-25T02:26:21.6533333+00:00
-- -- 796 Reputation points
answered 2023-09-26T03:51:15.25+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 53,921 Reputation points Microsoft Vendor
2 answers

Remove the index.html from url asp .net react IIS

I have an asp.net core and react project and I publish it to the IIS server. But after deploying it, it showed 'page can't be found' error. And when I added /index.html to the url (www.mywebsite.com/index.html), it showed my website and it seemed to be…

Internet Information Services
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,561 questions
asked 2023-09-22T19:33:55.8066667+00:00
Jackie Moen 0 Reputation points
edited an answer 2023-09-26T03:49:15.8433333+00:00
Sam Wu-MSFT 6,431 Reputation points Microsoft Vendor
1 answer

.NET Maui: how do you process low memory notifications from iOS

iOS sends warnings to an app when it approaches its memory limit. How do you process those warnings in a .NET Maui app? (I see that for Android, .NET Maui supports delegates OnApplicationLowMemory and OnApplicationTrimMemory, but I do not see any such…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,858 questions
asked 2023-09-06T02:48:46.1+00:00
Kurt K 96 Reputation points
edited a comment 2023-09-26T03:20:08.5433333+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 22,331 Reputation points Microsoft Vendor
0 answers

How do click events get introduced into the hierarchy in UWP (or Maui in general)? What function puts them in?

I am attempting to design my own click management system based on a WindowOverlay: https://github.com/dotnet/maui/tree/5e77c2a28a278f8e00f31d9692da2543c8086d6e/src/Core/src/WindowOverlay In Windows, this method just adds a W2DGraphicsView _graphicsView…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,050 questions
Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
601 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,858 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.
8,973 questions
asked 2023-09-25T08:44:27.15+00:00
M M 0 Reputation points
commented 2023-09-26T03:08:46.84+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 22,331 Reputation points Microsoft Vendor
1 answer

MAUI: The content page and pop up pages are breaking in normal running

I am facing a weird issue in my new MAUI project. When LIVE running in visual studio all of my pages are working fine. But when I open the app normally, the app is breaking on some of the pages, but no issue in LIVE running. The same pages are working…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,858 questions
asked 2023-09-25T15:29:08.9033333+00:00
Sakshi Poojary 20 Reputation points
answered 2023-09-26T03:04:12.2066667+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 21,196 Reputation points Microsoft Vendor
1 answer

How to bind Command in ContextMenuItem

Thanks to @Hui Liu-MSFT and @Peter Fleischer (former MVP) ,now I am able to operate my TreeView and do Drag&Drop on it. Also I can ONLY display ContextMenu by right click on the first level of TreeViewItem, which is required. You can see the…

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,477 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.
8,973 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.
688 questions
asked 2023-09-25T10:08:05.2533333+00:00
BabyHai 41 Reputation points
answered 2023-09-26T02:48:14.3066667+00:00
Hui Liu-MSFT 21,376 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

How to get the selected values ​​from a CheckedListBox in c#

I come with a question since I have no idea how to capture the data stored in the following checkedlistbox, which in this example is made up of 6 options to be able to check, in reality there are like 20, each selection option is a field in a table that…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,050 questions
asked 2023-09-21T02:29:02.95+00:00
Roberto Carlos Espinosa 20 Reputation points
commented 2023-09-26T02:38:49.9+00:00
Roberto Carlos Espinosa 20 Reputation points
2 answers

How to create HTTP Error Handling for the PUT method?

Hi, I would like to know how create HTTP Error Handling for the PUT method and rendering the information to user in UI. I guess that it's also possible to make GLobal HTTP Error Handling for all methods! I've created the put method which, when two users…

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,105 questions
asked 2023-09-20T15:57:55.88+00:00
sblb 1,141 Reputation points
commented 2023-09-26T02:26:26.25+00:00
Ping Ni-MSFT 75 Reputation points Microsoft Vendor
0 answers

Unable to run MAUI Android app

Hi, Why I am suddenly getting this error when trying to run MAUI's Android app? /Users/jassim/Downloads/MyApp: Error JAVA0000: Error in…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,858 questions
asked 2023-09-24T20:56:07.6633333+00:00
Jassim Al Rahma 26 Reputation points
commented 2023-09-26T02:03:50.6733333+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 21,196 Reputation points Microsoft Vendor
1 answer

Make Customize splash screen

Can anyone make like this below fully customize splash screen that also runs for android 12 and later versions also? with background images as well

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,858 questions
asked 2023-09-25T13:15:33.3666667+00:00
Haider Ali Faizi 40 Reputation points
answered 2023-09-26T01:44:48.24+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 21,196 Reputation points Microsoft Vendor
1 answer

HttpListener used on Xamarin.IOS app. "Safari cant open the page because it couldn't connect to the server" error only on iOS 17 devices.

Our project uses the latest Xamarin and our app has a function that creates a HTTP server to store a html and config file, and we use SfSafariViewController to view the contents on the html file. However, after the release of iOS17, this function does…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,151 questions
asked 2023-09-20T06:21:25.29+00:00
ZNXJH 0 Reputation points
edited a comment 2023-09-26T01:23:46.6+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 22,331 Reputation points Microsoft Vendor
2 answers

ComboBox Control how to define MaxLength of input Text

Hi, a client asked me a change. I have an app with several STANDARD ComboBoxes Control. Until this morning they were all defined with IsEditable="False". Now I have to give the possibility to the user to input a value even if it is not in the…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,050 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,477 questions
asked 2023-09-08T12:51:39.2933333+00:00
Dimitri Garmaise 291 Reputation points
commented 2023-09-26T01:22:04.3733333+00:00
Hui Liu-MSFT 21,376 Reputation points Microsoft Vendor
1 answer

How to check for null column in a DataRow

I'm using DataTables in 4.7.2, and I have defined a table with 2 columns, Start_Date and End_Date. If the 2nd column has a null value, how can I check for that? Right now I've gotten this far, which abends at runtime: // foreach (DataRow eachrow in…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,050 questions
asked 2023-09-26T00:26:22.24+00:00
Coreysan 1,346 Reputation points
answered 2023-09-26T01:20:33.6533333+00:00
Jiale Xue - MSFT 10,381 Reputation points Microsoft Vendor
2 answers

Problem in the size of the form and controls at the time of execution

I have created a form in the form of image 1, but at the time of execution, the distance between the controls increases and the size of the form also increases. What is the problem? Image 2 is at runtime. I have also used TableLayoutPanel to place the…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,628 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.
8,973 questions
asked 2023-09-11T10:17:47.9166667+00:00
Mohammad Hasan Salmanian 45 Reputation points
commented 2023-09-26T01:06:24.69+00:00
Jiale Xue - MSFT 10,381 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Bot to accept human commands

Hi I want to cerate a basic bot which understands simple user commands in English such as 'book staff John Smith on job xyz' and executes the actions on a backend database as insert queries. How do I go about doing this? Where to start? What…

Azure Bot Service
Azure Bot Service
An Azure service that provides an integrated environment for bot development.
670 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,050 questions
Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
1,004 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
1,680 questions
asked 2023-09-19T15:10:07.7866667+00:00
-- -- 796 Reputation points
accepted 2023-09-26T00:16:27.3+00:00
-- -- 796 Reputation points
1 answer

Failing to save and display Save and display Images from sql Table in ASP .Net

I am creating a web application in ASP .Net, and I want to save and display pictures from an SQL table. I need help

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,634 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.
10,944 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
987 questions
asked 2023-09-25T11:44:47.3533333+00:00
Lumbo Chenge bin 20 Reputation points
answered 2023-09-25T21:01:56.5+00:00
Erland Sommarskog 87,431 Reputation points
1 answer One of the answers was accepted by the question author.

Decimal price input is not a number

Good evening, I have started a new ASP.NET mvc project that works with EntityFramework. When I create a decimal Price (with Precision(18,2)) and generate a CRUD on it, the validation indicates that it is not a valid number with an input of 23,23. I…

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
987 questions
asked 2023-09-24T17:42:33.1333333+00:00
Lyoon 0 Reputation points
accepted 2023-09-25T19:50:40.8433333+00:00
Lyoon 0 Reputation points