Microsoft Q&A

.NET

21,709 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

21,709 questions with .NET-related tags

Sort by: Updated
0 answers

Is it possible to identify monitors at runtime using the Identify system function?

Hi, I'm working in a multimonitor environment and I need to know at runtime which monitor my application is running on, so I need the numbers used by the display settings app. I tried different methods to have this information (for example using the…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,291 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,437 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
6,710 questions
asked 2023-11-27T11:54:47.31+00:00
AndreaMarconi 0 Reputation points
commented 2023-11-30T11:30:30.7933333+00:00
AndreaMarconi 0 Reputation points
2 answers

show total and grand total without postback

Hello This Is my sql data SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO CREATE TABLE [dbo].[Table_1]( [ID] [int] IDENTITY(1,1) NOT NULL, [Field1] [varchar](50) NULL, [Field2] [varchar](50) NULL, [Field3] [varchar](50)…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,715 questions
asked 2023-11-29T16:44:27.1966667+00:00
RAVI 496 Reputation points
answered 2023-11-30T11:20:01.69+00:00
RAVI 496 Reputation points
2 answers One of the answers was accepted by the question author.

When will .NET Core 8 web apps run on Azure?

I'm testing out .NET Core 8 and trying to deploy to Azure. I created a new Blazor web app in Visual Studio. I go to publish the app, creating a new Azure Web App. Once published, I see "HTTP Error 500.31 - ANCM Failed to Find Native…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,757 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,020 questions
asked 2023-11-18T15:52:06.42+00:00
Aaron Smith 70 Reputation points
commented 2023-11-30T11:14:44.3366667+00:00
CB 5 Reputation points
0 answers

Flyout problems

Ok so this is kind of weird, I have a HomePage and a Registration page. They are registered in my appShell <ShellContent Title="loginPage" ContentTemplate="{DataTemplate view:LoginPage}" …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,139 questions
asked 2023-11-30T01:54:13.74+00:00
Eduardo Gomez 2,771 Reputation points
edited the question 2023-11-30T11:09:21.7366667+00:00
Eduardo Gomez 2,771 Reputation points
0 answers

MAUI Back button navigates to an empty page (Android)

Issue: We are converting a large app from Xamarin to MAUI. When we tap a back button on a page, this code is called: xxx.Navigation.PopAsync() The next page appears to load Ok, but it is completely white. Potential fix: [Bug] NavigationPage doesn't work…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,139 questions
asked 2023-11-29T10:00:13.0033333+00:00
Vince Melia 0 Reputation points
commented 2023-11-30T10:56:50.74+00:00
Vince Melia 0 Reputation points
1 answer

Using SignalR and SqlDependency with Asp.Net Core 8.0 N-Tier Architecture

Dear all, I am developing an Asp.Net Core 8.0 API project. There are 5 layers in my project, --EntityLayer (Class Library) --DataAccessLayer(Class Library) --Business Layer (Class Library) --DtosLayer(Class Library) --ApiLayer (Core 8.0 API) …

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
627 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,757 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.
11,566 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,437 questions
asked 2023-11-25T18:49:31.09+00:00
Gökmen Ada 0 Reputation points
commented 2023-11-30T10:17:07.56+00:00
Qing Guo - MSFT 731 Reputation points Microsoft Vendor
0 answers

How to fix datagridview designer not returning idesignerhost service in user control

I have a user control which contains a DataGridView. I add a property "Columns" to the designer with <Editor(GetType(MyColumnCollectionEditor), GetType(UITypeEditor))> …

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,291 questions
asked 2023-11-30T10:07:48.2066667+00:00
iLens 6 Reputation points
2 answers

SQL Server Mangement Studio a cessé de fonctionner

Bonjour, Je me permets de vous solliciter en urgence concernant un problème critique que je n'ai pas arrivé à le résoudre depuis un certain temps. mon problème est au niveau du SQL SERVER 2012. au moment de l'exécution d'une nouvelle requête au niveau de…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,291 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.
11,566 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
11,107 questions
asked 2023-07-25T10:20:06.94+00:00
BERDOUDOU.Abderrazzak 0 Reputation points
edited a comment 2023-11-30T10:00:40.78+00:00
Bryce Donald 0 Reputation points
2 answers

How to pass data between a razor page (*.cshtml) and Razor component (*.razor)

How Do I pass data between a razor page (.cshtml) and a razor component (.razor). From a razor page (*.cshtml) I save some data using shared services and then I move to *.razor component using LocalDirect. I thought I would inject the service in *razor…

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,194 questions
asked 2023-11-27T00:19:42.1266667+00:00
Balu Raju 46 Reputation points
commented 2023-11-30T10:00:02.8533333+00:00
Qing Guo - MSFT 731 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

how to stop css isolation in asp.net core?

I do not want to use it.

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,757 questions
asked 2023-07-19T09:46:59.48+00:00
mc 3,181 Reputation points
accepted 2023-11-30T09:57:08.5266667+00:00
mc 3,181 Reputation points
1 answer

MAUI SQLLite App not working on Android (apk)

The below quiz app is working in Windows but not in Android , I tested on my Android phone using apk file. It stopped working after I added sqllite , please suggest on this. I used the version sqlite-net-pcl 1.6.292 private async Task…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,139 questions
asked 2023-11-29T19:17:33.12+00:00
Maui Learner 60 Reputation points
edited an answer 2023-11-30T09:46:08.3+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 58,011 Reputation points Microsoft Vendor
0 answers

iOS App screen size problems after upgrading to .net8.0

I have noted that after an upgrade to .net8.0 that my iOS app has a size issue. This persists even after returning to .net7.0 and gets resolved after reverting code before the upgrade. After some digging myself i have noted that some files are not being…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,139 questions
asked 2023-11-23T10:53:10.2366667+00:00
No_Focus 20 Reputation points
commented 2023-11-30T09:45:12.19+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 23,296 Reputation points Microsoft Vendor
1 answer

MAUI: 'Controls' could not be found and mipmap/appicon_round not found.

I am getting below errors when rebuilding the app in release mode before creating APK file. Severity Code Description Project File Line Suppression State Error APT2067 failed processing manifest. MyProjectName C:\Program…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,139 questions
asked 2023-11-28T13:55:21.8733333+00:00
Sreejith Sreenivasan 591 Reputation points
commented 2023-11-30T09:44:10.1366667+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 58,011 Reputation points Microsoft Vendor
0 answers

I encountered an issue when trying to create a .NET MAUI project as .NET 6 doesn't seem to be available.

I recently installed Visual Studio 2022 (version 17.8.2) and opted for the .NET 6 framework during installation. While attempting to create an ASP.NET Core project, I was able to select .NET 6 successfully. However, I encountered an issue when trying to…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,139 questions
asked 2023-11-30T09:39:54.5666667+00:00
Sarfaraz Sable 0 Reputation points
1 answer

AZ-900 Badge Missing

HI MS, I Passed AZ-900 Exam . Got a cerfification but no badge. Best regards, Steve Dong

.NET Machine learning
.NET Machine learning
.NET: Microsoft Technologies based on the .NET software framework.Machine learning: A type of artificial intelligence focused on enabling computers to use observed data to evolve new behaviors that have not been explicitly programmed.
139 questions
asked 2023-11-30T07:44:45.1633333+00:00
Steve Dong 0 Reputation points
answered 2023-11-30T09:31:37.4366667+00:00
JimmySalian-2011 38,621 Reputation points
2 answers

Date format changing

I used Visual Studio ASP.NET Core 8 MVC, and in my project I enter the date in input method and debug when the date changes to month. For example, debugging with the date 15.10.2023 shows the date 0001.01.01, and debugging with the date 5.6.2023 shows…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,757 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,437 questions
asked 2023-11-29T17:56:54.9933333+00:00
Bipin 0 Reputation points
commented 2023-11-30T09:26:34.0433333+00:00
Jalpa Panchal-MSFT 170 Reputation points Microsoft Vendor
0 answers

Why does SSL connection to grpc server fail if the client is not running as admin and using client certificates?

I have a grpc server hosted in a Windows Service based on the grpc sample Greeter. Server Code: var builder = WebApplication.CreateBuilder(args); builder.Host.UseWindowsService(options => { options.ServiceName =…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,291 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,437 questions
asked 2023-11-29T11:32:31.86+00:00
Stephen Richardson 21 Reputation points
commented 2023-11-30T09:24:06.1333333+00:00
Stephen Richardson 21 Reputation points
1 answer

Can the code for this example of EF core be written like this?

Can the code for this example of EF core be written like this? public partial class Hlabel { public int Hid { get; set; } public string Hname { get; set; } = null!; public string Htime { get; set; } = null!; public virtual…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
627 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,437 questions
asked 2023-11-30T07:57:28.2233333+00:00
王好 王 1 Reputation point
answered 2023-11-30T09:22:12.1766667+00:00
Wenbin Geng 326 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

How to fix error "No webpage was found for the web address:" when I am opening the url for my app service.

Hi community, I have created one dotnet core web app. Pushed it to repos in azure devops, created a pipeline and deployed it on azure web app services. After creating the release and publishing it on web app, when I am trying to open the URL of web app,…

Azure SQL Database
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,757 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,020 questions
asked 2023-05-18T08:39:43.7833333+00:00
Rajneesh Yadav 20 Reputation points
commented 2023-11-30T09:09:32.4633333+00:00
Abhishek Umar 0 Reputation points
1 answer

如何启动这个无法启动的服务 通过尽量避免重装系统的方式

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,291 questions
asked 2023-11-24T03:18:24.2233333+00:00
义勇 富冈 0 Reputation points
commented 2023-11-30T09:06:55.1533333+00:00
Jiale Xue - MSFT 13,341 Reputation points Microsoft Vendor