Microsoft Q&A

.NET

20,540 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

20,540 questions with .NET-related tags

Sort by: Updated
0 answers

How to integrate a web service soap into your C# windows forms project

Hello, I'm a junior C# developer and I'm developing a project with Windows Forms that communicates with a counter via a network cable, the counter has a map with an integrated soap web service, I have the url that corresponds to the counter's ip +…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,631 questions
asked 2023-09-21T10:18:13.4+00:00
Wilfried ODORICO 0 Reputation points
edited the question 2023-09-21T11:03:45.77+00:00
Jiale Xue - MSFT 10,081 Reputation points Microsoft Vendor
1 answer

How can I create a Complex View Like this one in WPF DataGridView C#?

I created this Example and Tried to make it as Simple as Possible so that you can Understand Clearly. I have SQL Server Database Named EmployeesDB that contains 4 Tables as following: 1.       Employees Table which is the Parent Table in this Example. 2.…

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,474 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
3,761 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,896 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,937 questions
asked 2023-09-20T09:04:32.94+00:00
Mesh Ka 140 Reputation points
commented 2023-09-21T10:58:19.31+00:00
Mesh Ka 140 Reputation points
1 answer One of the answers was accepted by the question author.

Binding refresh counter smoootly

Hi, Please see https://app.screencast.com/itMCskOJqMYAL The finished counter value change its value from zero to new value. In the begging of the loop the value is zero of finished counter and later when the loop it finished it get it real value. How i…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,834 questions
asked 2023-09-14T13:12:51.5+00:00
דני שטרית 1,161 Reputation points
commented 2023-09-21T10:44:04.96+00:00
דני שטרית 1,161 Reputation points
1 answer One of the answers was accepted by the question author.

Icon status dynamically change in collection view

Hi, How can I present in collection view the status of queue list. Assume you have two states: in process && finish and two icons accordingly. When process in status in process it will show this icon. When process in status finished it will…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,834 questions
asked 2023-09-20T11:48:10.8+00:00
דני שטרית 1,161 Reputation points
accepted 2023-09-21T10:43:01.7933333+00:00
דני שטרית 1,161 Reputation points
5 answers

What is the best way to implement Handling Concurrency Conflicts?

Hi, with useful exchanges I've had on this forum, I haven't implemented Handling Concurrency Conflicts in my application. My application is made up of a few CRUDs where I feel it is necessary to manage conflicts when modifying users. Do you have any…

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,100 questions
asked 2023-09-11T13:31:15.1966667+00:00
sblb 1,141 Reputation points
commented 2023-09-21T10:35:22.37+00:00
sblb 1,141 Reputation points
0 answers

How to display ContextMenu on certain TreeViewItem and highlight the selected TreeViewItem in WPF following MVVM

Following MVVM, I have developed a TreeView and now I want mouse right click to show ContextMenu on certain TreeViewItem. As you can see in the screeshot, I only want the ContextMenu to be displayed when mouse right clicks on the first level…

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,474 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,937 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.
687 questions
asked 2023-09-20T10:36:51.4633333+00:00
BabyHai 21 Reputation points
edited a comment 2023-09-21T10:16:34.88+00:00
BabyHai 21 Reputation points
1 answer One of the answers was accepted by the question author.

Maui android .net 8 issue

Hello all. my app built ok on .net 7 and I want to build it in maui .net 8 what I need to do. Thank you very much.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,834 questions
asked 2023-09-20T09:33:13.4233333+00:00
Haviv Elbsz 1,206 Reputation points
accepted 2023-09-21T10:14:09.01+00:00
Haviv Elbsz 1,206 Reputation points
1 answer

What is the alternate IDE in place of Visual Studio MAC to support the .NET8 in the MAC system for the development of native .NET SDK style IOS projects ?

Hi Team, As we already know Visual Studio for MAC is going to retire in Aug 31, 2024. We are working on Migration of Xamarin Native Projects(Xamarin.Android and Xamarin.IOS) to .Net-Android /.Net-IOS Style Projects. What will be the alternate IDE for…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,142 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,015 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
3,761 questions
asked 2023-09-18T05:53:58.22+00:00
Sheetal Rodrigues 0 Reputation points
edited a comment 2023-09-21T09:58:26.91+00:00
Tianyu Sun-MSFT 20,681 Reputation points Microsoft Vendor
0 answers

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,540 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,100 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
5,598 questions
asked 2023-09-21T06:31:02.0733333+00:00
takeolexus 60 Reputation points
commented 2023-09-21T09:58:18.2433333+00:00
JasonPan - MSFT 2,451 Reputation points Microsoft Vendor
0 answers

How to avoid or skip the error when hexadecimal invalid character processed

I am processing some xml document. while reading xml value through dataset, getting below error. System.Xml.XmlException: ''', hexadecimal value 0x02, is an invalid character. Line 1, position 989.' How to avoid this...?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,015 questions
asked 2023-09-21T09:49:42.04+00:00
Gani_tpt 1,401 Reputation points
edited the question 2023-09-21T09:51:17.0366667+00:00
Gani_tpt 1,401 Reputation points
1 answer

Insert SAML2 Assertion into WCF header

Hi all, I have built a SOAP client to consume remote SOAP service USING WCF and System.IdentityModel. Remote service requests a signed SAML2 assertion inside a WSSE header to authenticate the users. The request must be signed with a X509 certificate. Is…

Windows Communication Foundation
Windows Communication Foundation
A Microsoft runtime and set of application programming interfaces in the .NET Framework for building service-oriented applications.
290 questions
asked 2023-09-19T10:13:22.68+00:00
Nazza 0 Reputation points
answered 2023-09-21T09:47:01.6866667+00:00
QiYou-MSFT 3,306 Reputation points Microsoft Vendor
3 answers

Asp.net core razor pages(.cshtml) not loading properly after upgrading to .net 6 and angular 14

Hi Team, Currently, in my project, we have the angular and .net core apps. The project was created using an SPA template adding angular to it. The projects had a few razor pages included. Now the issue is those razor pages not loading properly in CI/CD…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,015 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,540 questions
asked 2023-09-04T10:06:53.6+00:00
Umapathi Arumugam 0 Reputation points
edited an answer 2023-09-21T09:47:00.43+00:00
Ruikai Feng - MSFT 1,121 Reputation points Microsoft Vendor
0 answers

Using AddHostObjectToScript in MAUI apps

Hey there, I'm not sure if it's a feature request or a bug report, so I post my question here. Resources about it are very scarce, especially with MAUI. I hope that at least someone else will find this thread at some point searching for a solution. I'm…

Microsoft Edge
Microsoft Edge
A Microsoft cross-platform web browser that provides privacy, learning, and accessibility tools.
1,801 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,834 questions
asked 2023-05-25T11:04:10.59+00:00
lmoe 0 Reputation points
commented 2023-09-21T09:29:11.42+00:00
Gert Hermans 0 Reputation points
1 answer

Is there a Blazor server localization sample somewhere

Hi all; Is there a good Blazor server localization sample somewhere. I've read the ASP.NET Core Blazor globalization and localization page and it's good. But in a lot of places it's not clear what is for WASM and what is for server side. And it's also…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,540 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,100 questions
asked 2023-09-21T03:44:28.2666667+00:00
David Thielen 1,386 Reputation points
edited an answer 2023-09-21T08:30:08.92+00:00
Ruikai Feng - MSFT 1,121 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

How can i make a popup dialog form in WPF?

as the heading suggests, i have a wpf application like this, on the MainPanel of my application i display user controls and sometimes i want to display a popup menu like the picture below when for example a user wants to do add some changes in 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,474 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,937 questions
asked 2023-09-02T08:51:03.27+00:00
Mesh Ka 140 Reputation points
commented 2023-09-21T08:26:50.73+00:00
Mesh Ka 140 Reputation points
0 answers

Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent. Strongly consider using FLAG_IMMUTABLE, only use F

I am getting the below error for my Xamarin forms application when we upgraded to XF 5, and Android target version 13.0 (API Level 33). I already tried to install the Xamarin.AndroidX.Work.Runtime, both (2.7.0 and 2.8.1.4) tested but, none of them…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,142 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,937 questions
asked 2023-09-20T16:49:55.08+00:00
Gian Salaritan 0 Reputation points
commented 2023-09-21T08:11:18.6333333+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 53,506 Reputation points Microsoft Vendor
0 answers

Can AnchorTagHelper specify different controllers with the same name?

I have multiple controllers with the same name in different namespaces. To explain clearly what I want to do, I first briefly show part of my code. I created a ViewLocationExpander class. Its main function is to automatically find the view corresponding…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,540 questions
asked 2023-09-21T00:59:44.6833333+00:00
刘琦 0 Reputation points
commented 2023-09-21T08:05:20.99+00:00
Ping Ni-MSFT 0 Reputation points Microsoft Vendor
0 answers

Xamarin.Forms building with Pair to Mac XCode 15, building for iOS 17

VS Version 2022 Pro 17.6.5 Xamarin.Forms 5.0.0.2312 XCode 15 Xamarin.iOS 16.4.0.18 - Installed Manually Mac M2 Ventura 13.5.2 I am unable to debug my application on my Visual Studio. Another issue that started happening is I am opening and creating…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,142 questions
asked 2023-09-21T07:54:29.7833333+00:00
Deon Van Niekerk 0 Reputation points
0 answers

ContentPage not (anymore) showing via 'url'

after some VS/w11 updates, a simple/static 'ContentPage' (MotivationPage) does not show anymore (see attached.png) PS: All other functions in the App work ok! Of course I do NOT exclude any changes I made ....! But I'm not aware of! environment: VS…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
3,761 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,834 questions
asked 2023-09-21T07:45:40.49+00:00
Eduard Kaufmann 171 Reputation points
1 answer

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,100 questions
asked 2023-09-20T15:57:55.88+00:00
sblb 1,141 Reputation points
edited an answer 2023-09-21T07:33:21.7466667+00:00
Ping Ni-MSFT 0 Reputation points Microsoft Vendor