23,760 questions with .NET-related tags

Sort by: Updated
0 answers

How to copy big file 5g with task and within impersonation

Hi, How to copy big file 5G from source to destination using impersonation: WindowsIdentity.RunImpersonated( ImpersonationHelper.Token Thanks,

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,339 questions
asked 2024-04-18T08:06:36.18+00:00
דני שטרית 2,686 Reputation points
1 answer

Round in the navigation of flylou

Hi, In https://github.com/dotnet/maui/issues/21576 there is attached sample. Why there is round in the navigation of flylout ( See attched picture) and how is can be fixed ?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,834 questions
asked 2024-04-17T11:50:03.91+00:00
דני שטרית 2,686 Reputation points
commented 2024-04-18T07:59:03.0733333+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 34,841 Reputation points Microsoft Vendor
0 answers

FCM V1 notifications are not delivered from Azure Notification Hub

I am following this Microsoft Guide to migrate from GCM/FCM notifications to FCM v1. From the guide, I - Configured the Firebase Service Account Credentials in Azure Notification Hub Updaeted backend and app (Xamarin) to use FCM v1 platform during…

Azure Notification Hubs
Azure Notification Hubs
An Azure service that is used to send push notifications to all major platforms from the cloud or on-premises environments.
256 questions
Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,288 questions
asked 2024-04-16T12:06:03.7033333+00:00
Hiran Desai 15 Reputation points
commented 2024-04-18T07:57:24.61+00:00
ajkuma 22,081 Reputation points Microsoft Employee
1 answer

I am having a problem with WPF text box , its not allowing record space when pressing space bar on key board

When adding some text on text box in a wpf application its not arecording the space. it's only allowing it if i type the text as one string and use the back keys to go back to to where i want to record the space. Not sure what is the cause and solution…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,339 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,665 questions
asked 2024-04-15T13:52:54.78+00:00
Sgcino Ngema 0 Reputation points
commented 2024-04-18T07:57:20.56+00:00
Sgcino Ngema 0 Reputation points
2 answers

Multiple forms with common buttons

I need to create multiple winforms in an application with two buttons previous and next. When I click on the next button in a form the next form should open up. Similarly when I click on previous button previous form should open up. I don't want to…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,820 questions
asked 2024-04-16T11:10:28.12+00:00
Prash 21 Reputation points
commented 2024-04-18T07:54:36.7333333+00:00
Jiale Xue - MSFT 30,581 Reputation points Microsoft Vendor
1 answer

can not find path for sqlite db in Maui app

i try to create local sqlite db in maui app . private const string DbName = "SweetsShopDb.db3"; private static string DbPath => Path.Combine(Environment.GetFolderPath( Environment.SpecialFolder.LocalApplicationData),…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,571 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,834 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.
10,191 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
935 questions
Visual Studio Testing
Visual Studio Testing
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Testing: The act or process of applying tests as a means of analysis or diagnosis.
326 questions
asked 2024-04-17T07:00:39.2033333+00:00
amr yakout 40 Reputation points
answered 2024-04-18T07:50:38.5666667+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 34,841 Reputation points Microsoft Vendor
2 answers

Samphore Silm usage in two diffrent project.

Hi, I have maui app in windows, .NET 8. I have also worker service in NET 8. I have class librarary common to both projects that use Samphore Silm. SessionTokenSingelton.GetInstance().GetSessionToken(key); Both apps running on same machine. Does every…

.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,117 questions
asked 2024-04-07T10:44:27.83+00:00
דני שטרית 2,686 Reputation points
commented 2024-04-18T07:48:50.8233333+00:00
דני שטרית 2,686 Reputation points
1 answer

How to get Custom Namespaces and Prefix for an XML file?

I have a structure in which I fill in data and I want to save it as an XML file. How can I set Namespaces and Prefix so as to obtain an XML file with the structure as in the example below? Thank you! public class AuditFile { public Header Header { get;…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,339 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.
10,191 questions
asked 2024-04-17T11:23:54.3966667+00:00
TRAIAN MACAVEIU 26 Reputation points
answered 2024-04-18T07:48:00.83+00:00
Jiale Xue - MSFT 30,581 Reputation points Microsoft Vendor
2 answers

How to update entire MAUI workload to latest? (8.0.20)

How do I update my entire .NET MAUI workload to the latest stable version 8.0.20? The latest version can be found here: https://github.com/dotnet/maui/releases/tag/8.0.20 When i run sudo dotnet workload update then it doesn't update to the latest version…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,834 questions
asked 2024-04-16T09:48:41.18+00:00
Mikkel Bech 10 Reputation points
commented 2024-04-18T07:47:52.0333333+00:00
Mikkel Bech 10 Reputation points
1 answer

How to implement layered architecture?

Hello I started working on layered architecture to write some more professional code in C#. As a result of research on the internet, I saw that each person implements layered architecture differently. This caused confusion. I use the MVVM pattern in my…

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,665 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.
10,191 questions
asked 2024-04-10T20:42:05.4866667+00:00
fatih uyanık 80 Reputation points
commented 2024-04-18T07:42:05.57+00:00
Hui Liu-MSFT 37,946 Reputation points Microsoft Vendor
0 answers

how to save in other storage folder in android?

I am using .net MAUI and want to save the sqlite db to other folder. I know I can get the FileSystem.AppDataDirectory and save the db but it will be deleted when I remove the APP. how to keep the db when I remove the APP and when I reinstall it I can use…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,834 questions
asked 2024-04-14T15:56:15.6833333+00:00
mc 3,641 Reputation points
commented 2024-04-18T06:54:56.05+00:00
Gyan yog breath 0 Reputation points
0 answers

CoreMessagingXP.dll crash

Hello, I am maintaining a .NET application with a WinUI3 UI which sometime crashes. In the event viewer I see that the crash is caused by CoreMessagingXP.dll but I have no idea about the real cause of the problem since I see the application crashing…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,339 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.
10,191 questions
asked 2024-04-18T06:49:47.9733333+00:00
Mario Raffin 0 Reputation points
edited the question 2024-04-18T06:52:31.7833333+00:00
Mario Raffin 0 Reputation points
0 answers

Xamarin.Android specific: Error Code 53000, but device is compliant.

Prerequisites: Android phone with V12 Setup Microsoft Intune company portal Register your device with InTune successfully Microsoft credentials or account to log in Expected Result: I want a user to log in with a Microsoft account and fetch a…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,288 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
4,294 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,365 questions
asked 2022-03-29T18:28:51.943+00:00
MVS 21 Reputation points
edited a comment 2024-04-18T06:47:12.6+00:00
SHEETAL RODRIGUES 20 Reputation points
0 answers

Maui packaged as iOS 17 system failed to send message using udpClient No Route to Host

I have implemented the following code in C#: IPEndPoint remoteEP = new IPEndPoint(IPAddress.Parse(udpServerIp), udpPort); udpClient.Send(requestBytes, requestBytes.Length, remoteEP); However, Packaging it as Android can send UDP messages, when using…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,834 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.
10,191 questions
asked 2024-04-17T02:53:26.8433333+00:00
于晏 彭 0 Reputation points
commented 2024-04-18T06:27:45.6433333+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 25,841 Reputation points Microsoft Vendor
1 answer

ContentView as CollectionView's ItemTemplate with custom Command

Hi, I have a CollectionView that have as ItemTemplate a ContentView. I need to pass at the XAML of the ContentView a custom Command, so I have created a BindableProperty but it remains always null. public ICommand ApriCommand { get { return…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,834 questions
asked 2024-04-15T14:45:48.2866667+00:00
Matteo Pozzato 96 Reputation points
commented 2024-04-18T06:15:00.08+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 67,781 Reputation points Microsoft Vendor
0 answers

Versioned Artifacts for .NET Framework and .NET Core application(s)

Hi Microsoft, I am trying to create versioned artifacts for dotnet applications (.NET Framework & .NET Core) using msbuild and dotnet CLI commands. I ran it for msbuild while implementing CI/CD pipeline using GitHub Actions following Microsoft's…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,133 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,240 questions
asked 2024-04-17T17:41:02.4466667+00:00
Arjun Goel 0 Reputation points
commented 2024-04-18T06:11:26.22+00:00
Ping Ni-MSFT 2,085 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Entry UnFocused Event not trigger after change value

After changing the value of an entry, the 'Entry Unfocused' event does not trigger, nor does it trigger when clicking on any other page after changing the entry value. please provide me any solution or any patch to fix this issue.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,834 questions
asked 2024-04-15T06:10:45.9+00:00
Bhuwan 596 Reputation points
accepted 2024-04-18T06:02:10.7433333+00:00
Bhuwan 596 Reputation points
1 answer

Xamarin iOS unable to debug over local device iOS 17.1.1

I have two real devices: iPhone 15 Pro Max iOS 17.1.1 iPhone 7 iOS 15.7.8 I'm trying to debug my Xamarin application over a real device. Using my iPhone 7 works as expected. But it has been impossible for me to do the same using my iPhone 15 Pro…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,288 questions
asked 2024-04-11T07:21:13.1733333+00:00
Alex 0 Reputation points
answered 2024-04-18T06:00:03.8433333+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 25,841 Reputation points Microsoft Vendor
0 answers

Is control.TrayLocation in resource file is really required?

whenever I add a non visual control(tooltip, dataset etc) to windows form, an entry control.TrayLocation gets added in the resource file. is it really required? is it okay to delete this entry before checking-in into source control?

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,820 questions
asked 2024-04-18T05:31:12.0666667+00:00
Prash 21 Reputation points
1 answer

On Click of hyperlink Teams chat opening

Hello Team I am working on a requirement which on a click of hyperlink. I am using Microsoft Razor Microsoft Teams should open and a particular person chat should open, message should contain a message along with a div ready to be delivered(Waiting for…

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,023 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,133 questions
asked 2024-04-17T08:00:52.94+00:00
Sridhar, Arun (Cognizant) 0 Reputation points
answered 2024-04-18T05:21:07.0666667+00:00
LiweiTian-MSFT 13,675 Reputation points Microsoft Vendor