Microsoft Q&A

.NET

20,222 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

20,222 questions with .NET-related tags

Sort by: Updated
1 answer

Maui for android toolkit ppoup Size(x,y) works when x,y are literals only.

Hello all this works using CommunityToolkit.Maui.Views; namespace MauiToolKitPopup; public partial class MyPopup : Popup { public MyPopup() { InitializeComponent(); this.Size = new(300, 120); } async void…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,755 questions
asked 2023-08-28T13:49:44.4433333+00:00
Haviv Elbsz 1,066 Reputation points
edited a comment 2023-09-01T02:17:10.9066667+00:00
Rob Caplan - MSFT 5,052 Reputation points Microsoft Employee
1 answer

why Layout.cshtml will run lots of times?

I am using asp.net core web application using a _Layout.cshtml in Index.cshtml I write some code in _Layout.cshtml and add breakpoint. I find it will hit 10 or 8 times when I open the Index.cshtml why?

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,480 questions
asked 2023-08-31T02:55:49.02+00:00
mc 2,521 Reputation points
commented 2023-09-01T02:15:25.5866667+00:00
Bruce (SqlWork.com) 42,546 Reputation points
0 answers

iOS app suddenly kicking out can not encode offset

Hi, I have a VS 2019 project for iOS with Xamarin. It was working fine in June, I have my SKD version set for 10.2 and supported architectures set to ARMv7 + ARM64. Today I loaded up my project as I wanted to check something but when I go to build I now…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,106 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,787 questions
asked 2023-08-31T23:31:24.8266667+00:00
Phunction 196 Reputation points
edited the question 2023-09-01T01:59:37.8066667+00:00
Jiale Xue - MSFT 8,606 Reputation points Microsoft Vendor
0 answers

What is way to get IServicePrincipal using Azure.ResourceManager?

In deprecated packages IServicePrincipal was a result of calls: Microsoft.Azure.Management.Fluent.Azure.Configure()?.Authenticate(...)?ServicePrinciples

Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
16,189 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,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.
8,787 questions
Azure Advisor
Azure Advisor
An Azure personalized recommendation engine that helps users follow best practices to optimize Azure deployments.
31 questions
asked 2023-08-30T16:08:46.9166667+00:00
Sharma, Kavita (ext) 0 Reputation points
edited the question 2023-09-01T01:57:40.85+00:00
Brando Zhang-MSFT 2,086 Reputation points Microsoft Vendor
1 answer

InvalidProgramException in Windows Forms application

Hello, I'm a developer of the desktop .NET Windows Forms application. I faced a strange exception thrown by .NET runtime on a single production PC. On a component initialization phase .NET throws the following: System.InvalidProgramException: Common…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,594 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
1,924 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,034 questions
asked 2023-08-29T18:10:10.3533333+00:00
Vadym Lenda 0 Reputation points
answered 2023-09-01T01:57:28.4633333+00:00
Jiale Xue - MSFT 8,606 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Differences between GC.Collect method and JavaScript's window.gc method

Version .NET Framework 4.8 What are the differences between the GC.Collect method and JavaScript's window.gc method? Specifically, what are the differences in the scope of objects targeted for garbage collection? Is there a possibility that manually…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
1,924 questions
asked 2023-08-30T01:16:48.1266667+00:00
Kazuki Sato 20 Reputation points
accepted 2023-09-01T01:36:13.4233333+00:00
Kazuki Sato 20 Reputation points
3 answers

C# Winforms how to set Datagridview DataGridViewCheckBoxCell via code

I am stumped on finding a solution to allow me to set a hidden DataGridViewCheckBoxCell checked state with code. The application is using a DataGridView to present a recipe on the form. Users are allowed to add/change the rows of the recipe. I want…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,594 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,787 questions
asked 2023-08-28T18:00:42.5866667+00:00
Pat Hanks 81 Reputation points
commented 2023-09-01T01:33:49.82+00:00
Jiale Xue - MSFT 8,606 Reputation points Microsoft Vendor
2 answers

when microsoft not support for vs for mac can we use vs code to develop maui?

I know microsoft will not support vs for mac 2024. what should we use to develop ios ?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,755 questions
asked 2023-08-31T00:41:21.0633333+00:00
mc 2,521 Reputation points
answered 2023-09-01T01:13:37.0033333+00:00
Bruce (SqlWork.com) 42,546 Reputation points
1 answer

[MAUI]When I use the AudioTrack.Write() ,it stuck the main thread

I created an AudioTrack object named audioTrack, and use the audioTrack.Play(), Then in an Event I use the audioTrack.Write() method, and it stuck the MainThread, I have try to use the async, but it doesn't help. I also try to use Task.Run() to created…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,755 questions
asked 2023-08-30T22:46:07.1933333+00:00
studio XFE 0 Reputation points
commented 2023-09-01T00:57:26.6866667+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 52,456 Reputation points Microsoft Vendor
2 answers

.NET Maui Android App not showing Flyout Menus

In my Windows app, my Flyout Menus are showing up correctly and respond correctly when clicked, however, the Flyout Menus do not show up while using any Android Emulators. Here is my xaml: <ContentPage.MenuBarItems> <MenuBarItem…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,755 questions
asked 2023-08-04T21:52:36.5466667+00:00
Fritz Switzer 221 Reputation points
edited a comment 2023-09-01T00:14:54.5266667+00:00
Dave Gerding 0 Reputation points
1 answer One of the answers was accepted by the question author.

how to remove or hide indicator carouselview MAUI app

how can i remove or hide this? it appears when i swipe carousel. it happens on iOS

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,755 questions
asked 2023-03-15T08:57:13.9733333+00:00
Nam Pham 66 Reputation points
commented 2023-08-31T23:30:17.6833333+00:00
Hugo Cruz 0 Reputation points
1 answer One of the answers was accepted by the question author.

How to ask user permission before closing MAUI APP?

I have read about the lifecycle events in maui and found the below: #if WINDOWS events.AddWindows(windows => windows .OnActivated((window, args) => LogEvent(nameof(WindowsLifecycle.OnActivated))) …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,755 questions
asked 2023-07-05T18:30:06.65+00:00
Lohith K K 40 Reputation points
commented 2023-08-31T22:15:49.93+00:00
axa88 0 Reputation points
1 answer

Magnifier with pixels grid in WPF

How can I create magnifier with pixels grid in WPF app? I need that pixels under cursor of mouse showing in circle of magnifier in enlarged size, for example like on photo.

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,449 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.
676 questions
asked 2023-08-31T11:55:47.9866667+00:00
Alexander Kvitko 21 Reputation points
answered 2023-08-31T21:41:35.15+00:00
Castorix31 75,626 Reputation points
5 answers

Apple Developer Account: Individual - error 'There was an error while trying to log in: Provide a properly configured and signed bearer token, and make sure that it has not expired learn more about generating tokens for API requests'

I have an issue when trying to sign in with my apple developer account on visual studio 2022 (v17.4.1). Firstly, I when trying to sign in as an 'individual account' I get this error ‘there was an error while loading your certificates: The Apple Developer…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,106 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,649 questions
asked 2022-11-22T08:48:18.217+00:00
Brian Kekana 11 Reputation points
answered 2023-08-31T20:44:21.58+00:00
Brett Whittaker 0 Reputation points
0 answers

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,755 questions
asked 2023-08-31T20:32:01.88+00:00
Jassim Al Rahma 26 Reputation points
0 answers

JQuery, Inline Edit, calender bbox not disppearing

Hi I am using Datatables.net For inline editing I'm using https://github.com/ejbeaty/CellEdit Git Repo to depemostrate the problem https://github.com/singhswat/InLineEditDatatables Problem: Once I click on a cell that has date to be entered. Cell becomes…

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
672 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
961 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,787 questions
asked 2023-08-31T18:47:06.5666667+00:00
SSinhg 286 Reputation points
edited the question 2023-08-31T20:27:56.5233333+00:00
SSinhg 286 Reputation points
0 answers

How to prevent to navigate to the previous page

Hello In android app xamarin In my app i have 2 activities. Is there a possibility to prevent the user to navigate to the previous activity (the last page). when i click the > on the bottom toolbar i navigate to the last page so i would like…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,106 questions
asked 2023-08-30T19:34:37.52+00:00
Shay Wilner 1,666 Reputation points
commented 2023-08-31T20:11:05.91+00:00
Shay Wilner 1,666 Reputation points
0 answers

Sync data of Table A between SQL Server 1 and SQL Server 2

One is live and SQLSVR2 is a backup.  From time to time, I may need to switch them so I am writing a sync application that uses ADO .Net to read the modified/new rows from SQLSVR1->Table A and update/insert/delete them from SQLSVR2->Table A.  These…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
569 questions
Azure SQL Database
.NET
.NET
Microsoft Technologies based on the .NET software framework.
1,924 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,787 questions
asked 2023-08-31T19:25:07.13+00:00
John Pike 1 Reputation point
0 answers

Issue with adding Service-Based Database

When I attempt to add a Service-based database to my project, I encounter an error message that reads: "Could not load file or assembly 'Microsoft.Data.SqlClient, Version=3.0.0.0, Culture=natural, PublicKeyToken=23ec7fc2d6eaa4a5' or one of its…

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,449 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,649 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,697 questions
asked 2023-08-31T17:59:14.01+00:00
Bahman Kazem 0 Reputation points
edited the question 2023-08-31T18:02:00.2+00:00
Bahman Kazem 0 Reputation points
1 answer

Will Applying a Patch to ASP.NET MVC Also Update Associated Components (Web Pages, Web API, SignalR)?

The question is asking whether, when applying a patch to ASP.NET MVC, the other associated components (ASP.NET Web Pages, Web API, and SignalR) will also be updated as part of the patching process. In other words, will the patch affect not only ASP.NET…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,608 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
961 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
232 questions
asked 2023-08-24T21:41:39.84+00:00
Abdur Montoya 0 Reputation points
answered 2023-08-31T17:29:52.8766667+00:00
Bruce (SqlWork.com) 42,546 Reputation points