Microsoft Q&A

.NET

20,701 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

20,701 questions with .NET-related tags

Sort by: Updated
1 answer

Logging in C# - To a text file

I am creating a console application and I understand that I need to use ILoggerFactory for logging purpose, but how can I get it to be written to a text file instead to the debug section or the console window.

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,062 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.
9,000 questions
asked 2023-09-29T07:13:11+00:00
Kalpana 246 Reputation points
answered 2023-09-29T08:59:42.8966667+00:00
Jiale Xue - MSFT 11,251 Reputation points Microsoft Vendor
2 answers

removing focus from buttons

Hello , this is the what the main exit form looks when it loads . i found that when it loads the yes button has focus on it by default . Although i had hard coded that when the user presses enter here , the application should gets closed but what i am…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,632 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.
9,000 questions
asked 2023-09-29T08:21:45.1033333+00:00
Shaifali jain 220 Reputation points
edited an answer 2023-09-29T08:56:40.7+00:00
Karen Payne MVP 32,916 Reputation points
0 answers

Image inside a DataGrid in a FixedDocument Error

I have created this small demonstration project to highlight a problem I have encountered when working with an Image within a DataGrid created in C# and then utilised within a FixedDocument. Everything appears to work as expected until the mouse goes…

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,480 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.
9,000 questions
asked 2023-09-28T12:40:04.9533333+00:00
BigH61 501 Reputation points
commented 2023-09-29T08:55:47.9166667+00:00
BigH61 501 Reputation points
2 answers One of the answers was accepted by the question author.

System.InvalidOperationException: There is an error in XML document (0, 0). ---> System.Xml.XmlException: Root element is missing.

Hi, Everybody!... I am trying to parse the following XML…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,062 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,639 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.
9,000 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: The period of time during which a program is being executed in a computer.
1,044 questions
asked 2023-09-27T22:41:28.2466667+00:00
Julio Bello 221 Reputation points
accepted 2023-09-29T08:44:00.3766667+00:00
Julio Bello 221 Reputation points
1 answer

Why does hosting a grpc service in a Windows service fail?

I have a gprc service which runs perfectly when hosted on asp.net core in a console app. I create the same service in the same way (slightly different place in the code) in a Windows service and it throws an exception 'Stopped without starting'. The…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,576 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.
9,000 questions
asked 2023-09-28T11:09:12.32+00:00
Stephen Richardson 21 Reputation points
edited an answer 2023-09-29T08:40:45.37+00:00
Zhi Lv - MSFT 27,756 Reputation points Microsoft Vendor
3 answers

How to build Xamarin iOS after iOS MAC is discontinue in 2024

Being that MAC Visual Studio 2024 is being discontinued in August of 2024, those of use with an Xamarin app, how we continue to build the iOS portion?

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,160 questions
asked 2023-09-05T14:02:56.1066667+00:00
Seth Isaacks 46 Reputation points
commented 2023-09-29T08:32:03.3366667+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 22,416 Reputation points Microsoft Vendor
1 answer

iOS Error: clang++ exited with code 1:

Hi, Why i am suddenly getting this error: Xamarin.Shared.Sdk.targets(3,3): Error: clang++ exited with code 1: Undefined symbols for architecture arm64: "_OBJC_CLASS_$_OSInAppMessage", referenced from: objc-class-ref in registrar.o …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,870 questions
asked 2023-08-31T20:32:01.88+00:00
Jassim Al Rahma 26 Reputation points
commented 2023-09-29T08:14:54.48+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 22,416 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Server 2022 - Maui app with net .7 is not working

Hi, I installed Maui app on server 2019 with this command and its works but on server 2022 its not work: dotnet publish -f net7.0-windows10.0.19041.0 -c Release -p:WindowsPackageType=None -p:WindowsAppSDKSelfContained=true…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,870 questions
asked 2023-09-26T15:03:25.4466667+00:00
דני שטרית 1,201 Reputation points
accepted 2023-09-29T07:59:34.2733333+00:00
דני שטרית 1,201 Reputation points
3 answers One of the answers was accepted by the question author.

How to fix double permission popup in xamarin ios web view

When I am trying to use camera in a web view, there are two permissions that are asked in iOS. One is the popup created from browser and the other is created from the Phone. Are there are any ways to avoid the browser popup for camera permission? …

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,160 questions
asked 2023-02-06T09:19:10.4933333+00:00
Anila Mathew 25 Reputation points
commented 2023-09-29T07:59:32.2866667+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 22,416 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

What is net Maui class library ?

Hi, What is net Maui class library ? Thanks,

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,870 questions
asked 2023-09-28T06:22:27.5333333+00:00
דני שטרית 1,201 Reputation points
accepted 2023-09-29T07:58:50.17+00:00
דני שטרית 1,201 Reputation points
1 answer

Archive for Publishing not creating archive file

Hi Visual Studio Mac. MAUI app builds fine however Archive for Publishing does not create an archive file without any apparent error message. Checked under XCode->Organize->Window as well just to be sure. What can I do to fix this issue and get the…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,870 questions
asked 2023-09-09T19:02:03.33+00:00
-- -- 841 Reputation points
commented 2023-09-29T07:29:51.3466667+00:00
-- -- 841 Reputation points
0 answers

MAUI: How to add splash screen in android platform

I am trying to add splash screen on my new MAUI application. I tried the implementation on this blog but the image is in circle (Android 12 device) and only showing black and white color on the icon. Is there anyway to show the real color of the icon on…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,870 questions
asked 2023-09-25T15:20:10.3266667+00:00
Sakshi Poojary 40 Reputation points
commented 2023-09-29T07:28:16.4033333+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 21,431 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Finding parent form and tablelayoutPanel

hello , private void TDlloading_error_Load(object sender, EventArgs e) { HideButtonsInParentFormTableLayoutPanel(); } private void HideButtonsInParentFormTableLayoutPanel() { // Access the parent…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,632 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.
9,000 questions
asked 2023-09-26T10:44:39.0333333+00:00
Shaifali jain 220 Reputation points
accepted 2023-09-29T07:24:36.3933333+00:00
Shaifali jain 220 Reputation points
1 answer

ArgumentNullException on add-migration com.

Hello, I'm still on my app dev which is a Blazor Wasm with it's API (developped with .Net core 7.0) and I try to create an EF Core migration, but I've got an issue. N.B.: I use environment variables to set my connection string (to change it…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
587 questions
asked 2023-09-28T13:07:03.4866667+00:00
Laurent Guigon 221 Reputation points
answered 2023-09-29T07:08:47.6866667+00:00
Jack J Jun 23,946 Reputation points Microsoft Vendor
1 answer

How to deploy or use .Net MAUI Blazor app in Tizen browser instead of native apk or .tpk (direct browsing in tizen tv)?

Is it possible to publish or host the .net maui blazor app to the server and browse it in the Tizen TV internet like browsing ? Or Is it only possible by creating .tpk and installing it in developer mode on tizen tv as a native app ?

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,110 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,870 questions
asked 2023-09-28T11:42:30.4+00:00
Mounika Booreddy 1 Reputation point
edited the question 2023-09-29T06:58:01.2233333+00:00
Mounika Booreddy 1 Reputation point
0 answers

Why ScrollView in .Net MAUI can not show its content

in this code for example : <?xml version="1.0" encoding="utf-8" ?> <ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,870 questions
asked 2023-09-13T14:29:51.87+00:00
TD D 0 Reputation points
edited a comment 2023-09-29T06:55:23.57+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 22,416 Reputation points Microsoft Vendor
1 answer

LINQ and VB 2015 : Select Distinct in Sub-List of Objects...

Hi, this is a simple example about my task. I have a List of Objects, let's say a group of Persons and each Person has a Property which is a List of other type of Objects, let's say Colors. I'd like to get a Distinct List of all Colors kept by all…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,062 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,317 questions
asked 2023-09-28T15:16:16.5533333+00:00
Marco Gregori 41 Reputation points
answered 2023-09-29T06:34:41.2266667+00:00
Jiachen Li-MSFT 19,931 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Which is the latest version of Microsoft Report Viewer Runtime which is compatible with Windows server 2019 and .Netframework 4.7?

Which is the latest version of Microsoft Report Viewer Runtime which is compatible with Windows server 2019 and .Netframework 4.7?

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
2,993 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,062 questions
asked 2023-09-29T05:18:23.12+00:00
Babu \ Vimitha 0 Reputation points
accepted 2023-09-29T06:30:54.7733333+00:00
Babu \ Vimitha 0 Reputation points
1 answer

Which is the latest version of Microsoft Report Viewer Runtime which is compatible with Windows server 2019 and .Netframework 4.7?

Which is the latest version of Microsoft Report Viewer Runtime which is compatible with both Windows server 2019 and .Netframework 4.7?

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
2,993 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,062 questions
asked 2023-09-29T05:17:00.74+00:00
Babu \ Vimitha 0 Reputation points
answered 2023-09-29T06:22:01.99+00:00
Olaf Helper 34,276 Reputation points
1 answer One of the answers was accepted by the question author.

issue in opacity of the parent form and panel

Hi , my other problem is there is a scenario in which i have a form named child which is opened inside a panel of a form named father . what i am trying is when i press F2 on my keyboard a new form opens asking for current date . at this moment i want…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,632 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.
9,000 questions
asked 2023-09-23T11:43:45.1433333+00:00
Shaifali jain 220 Reputation points
accepted 2023-09-29T06:11:37.99+00:00
Shaifali jain 220 Reputation points