Microsoft Q&A

.NET

21,844 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

21,844 questions with .NET-related tags

Sort by: Updated
0 answers

EF Core .Net 8 error after TLS 1.0 was disabled.

The admins where I work have disabled TLS 1.0 but now all of a sudden, my .Net 8 app is getting the following error: Microsoft.Data.SqlClient.SqlException (0x80131904): A connection was successfully established with the server, but then an error occurred…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
632 questions
asked 2023-12-05T17:06:22.9333333+00:00
Lange Gregory 20 Reputation points
commented 2023-12-06T21:45:28.48+00:00
Bruce (SqlWork.com) 48,881 Reputation points
1 answer

How to migrate users from Blazor WASM to Blazor server side

Hi, I'm in a pickle, hoping someone can help me. I would like to know if it is possible (and if so, how?) to migrate existing users from Blazor WASM site to a Blazor Server site, without the users taking any actions like manually clearing site data…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,776 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,211 questions
asked 2023-12-06T19:16:18.8166667+00:00
Oliver 1 Reputation point
edited an answer 2023-12-06T21:36:35.11+00:00
Bruce (SqlWork.com) 48,881 Reputation points
1 answer

How to write a reminder app that gives an alarm at the appointed time even when the program is closed. in .net MAUI

I want to create a reminder mobile application in .net MAUI that will run an alarm at a specified time even when the program is closed, and display a screen that has a button to disable the alarm.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,194 questions
asked 2023-12-06T20:15:33.6266667+00:00
mehdi khorami 0 Reputation points
answered 2023-12-06T21:32:27.1933333+00:00
Bruce (SqlWork.com) 48,881 Reputation points
0 answers

centering label on webform

@Lan Huang-MSFT i've inserted a label onto my webform. and have it center per my view. however when i expand or resize the test window it shifts position. just trying to figure out how to have it float with resizing, minimizing, maximizing the browser…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,723 questions
ASP.NET Web Forms
ASP.NET Web Forms
A part of the ASP.NET web application framework that can be used to create ASP.NET web applications.
655 questions
asked 2023-12-06T18:32:36.68+00:00
Joseph Hedbon 141 Reputation points
edited the question 2023-12-06T21:01:29.72+00:00
Joseph Hedbon 141 Reputation points
0 answers

What is a proper way decode frame ot image bitmap

Dear Gurus! I use RtspClientSharp for receiving frames from the remote Ip camera in Blazor server Application. And now I need to convert the received frame to a bitmap (imageByte in the next expression) for use as a source in the <img> tag ,…

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,211 questions
asked 2023-12-04T08:02:57.6066667+00:00
edited a comment 2023-12-06T19:01:35.35+00:00
4 answers One of the answers was accepted by the question author.

How to implement Google Authetication in Blazor server app without Core Identity

Hello I would like to use custom authentication without using out-of-the-box Core Identity in my Blazor Server App with Oauth authentication. I started the app using the template without using individual user account because we have our own…

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,211 questions
asked 2022-04-29T01:37:58.587+00:00
biprism 46 Reputation points
answered 2023-12-06T18:57:10.75+00:00
Jason Mock 0 Reputation points
3 answers

Backspace trapped possibly due to alignment or Code bug

Hi below is the code snippet which i have asked previously from a respected member @KOZ6.0 . protected override void OnCreateControl() { base.OnCreateControl(); foreach (DataGridViewColumn column in Columns) …

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,737 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,490 questions
asked 2023-12-01T10:20:01.1066667+00:00
rahul kumar 565 Reputation points
edited a comment 2023-12-06T18:24:51.3133333+00:00
rahul kumar 565 Reputation points
2 answers

Issue downloading file with + signs in their name, from Azure Blob Storage, in Azure App Service

I am experiencing an issue downloading a file with a + sign in its name ( 14595-2023-2157-1-GCSU+Tree+Campus+Plan+2022 .docx ), specifically when my code is deployed in Azure App Service. Surprisingly, the file exists in Blob Storage and can be…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,776 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,064 questions
asked 2023-12-04T17:58:41.95+00:00
sekou keita 0 Reputation points
commented 2023-12-06T17:56:23.18+00:00
sekou keita 0 Reputation points
2 answers

I get an error when creating a new project with ASP.net Application (.NET Framework) format

This is my error message interface, I have checked the complete files in Packages but the device still says these versions cannot be found. If I uninstall and reinstall VS, I still have the same problem

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,103 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
1,058 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,490 questions
Visual Studio Setup
Visual Studio Setup
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
900 questions
asked 2023-12-04T10:28:24.36+00:00
THANH HUY ĐẶNG 0 Reputation points
answered 2023-12-06T17:20:21.1366667+00:00
Bruce (SqlWork.com) 48,881 Reputation points
1 answer

Which should I use, Blazor WebAssembly or Blazor Server?

I'm trying to decide which option to choose. I plan to develop two applications using Blazor. The first one is intended to be a wiki-type application. The second one is an online manager for the Palladium RPG (specifically for Macross/Robotech RPG),…

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,211 questions
asked 2023-12-06T15:19:46.75+00:00
Laurent Guigon 226 Reputation points
answered 2023-12-06T17:14:25.74+00:00
Bruce (SqlWork.com) 48,881 Reputation points
0 answers

code snippet for BindableProperty

I am creating a BindableProperty snippet, so far, I have this. <CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> <CodeSnippet…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,194 questions
asked 2023-12-06T17:09:40.53+00:00
Eduardo Gomez 2,871 Reputation points
0 answers

push notifications in Windows

Hi, I'm developing an application in MAUI, and I'm working with push notifications in Windows, what is the normal behavior of push notifications when the application is closed (not minimized)? When the app is open the notifications arrive and everything…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,194 questions
asked 2023-12-05T17:41:03.5466667+00:00
Luis Rodriguez 0 Reputation points
commented 2023-12-06T17:09:14.7166667+00:00
Luis Rodriguez 0 Reputation points
1 answer One of the answers was accepted by the question author.

No Internet page problems

I have a strange problem. I want to navigate to a certain page, when there is no internet. So, I am doing this. public LoginPage(LoginPageViewModel loginPageViewModel, IConnectivity connectivity, IAppService appService) { …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,194 questions
asked 2023-12-04T18:57:26.0066667+00:00
Eduardo Gomez 2,871 Reputation points
accepted 2023-12-06T17:02:20.48+00:00
Eduardo Gomez 2,871 Reputation points
1 answer One of the answers was accepted by the question author.

How can I change the Windows title bar to a specific color like purple?

I have a purple title bar (Primary color) How can I achieve the same on windows?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,194 questions
asked 2023-12-05T23:04:41.56+00:00
Eduardo Gomez 2,871 Reputation points
accepted 2023-12-06T17:01:30.1733333+00:00
Eduardo Gomez 2,871 Reputation points
0 answers

Stop timer when Quiz is completed

Here is my quiz app ,the current functionality is to capture if question is correct or wrong and give a score 9/10 , 10/10 etc and display the user "Questions incorrectly answered with answers:" Now I added timer too ,please suggest on how to…

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,211 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,194 questions
asked 2023-12-06T16:59:09.46+00:00
Maui Learner 100 Reputation points
edited the question 2023-12-06T17:00:22.72+00:00
Maui Learner 100 Reputation points
1 answer

How to get all screenshots with MAUI?

I'm trying to make a screenshot program using MAUI, but Screenshot can only get screenshots of the app.

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,316 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,194 questions
asked 2023-12-06T16:30:40.78+00:00
iweir man 0 Reputation points
answered 2023-12-06T16:53:37.3233333+00:00
Bruce (SqlWork.com) 48,881 Reputation points
2 answers One of the answers was accepted by the question author.

Is the conditional compilation option changed in VS 2022 17.5.2?

I used conditional compilation in my last project and it worked very well. Today I try to use it too, but the compiler doesn't recognise my condition that I added under Properties -> Build-> General For example, if I want to use my MAUI input as…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,103 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,194 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,490 questions
asked 2023-03-16T16:11:47.82+00:00
perfect code 271 Reputation points
answered 2023-12-06T16:46:28.4233333+00:00
Justin Strawther 0 Reputation points
1 answer

how to write TagHelper in c++?

how to write Taghelper in C++ and using it in asp.net core razor pages?

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,776 questions
asked 2023-12-06T06:49:42.0366667+00:00
mc 3,221 Reputation points
answered 2023-12-06T16:34:59.6766667+00:00
Bruce (SqlWork.com) 48,881 Reputation points
2 answers

Difference between "private instance fields" and "private fields"

According to this Microsoft document, specific conventions for naming have been written, and the meaning of the following two items is not clear to me. 1: Use camelCase for method arguments, local variables, and private fields. 2: Private instance…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,316 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,490 questions
asked 2023-12-05T16:44:14.7166667+00:00
Reza Jaferi 271 Reputation points
edited an answer 2023-12-06T16:13:39.57+00:00
Bruce (SqlWork.com) 48,881 Reputation points
4 answers

When will NET 8 be available on Azure App Services?

When will ASP.NET 8 be available for use on App Services, even as a preview please? We've been using 8 for a while in VS2022 Preview and need to start testing in a live environment (away from VM's!).

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,776 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,064 questions
asked 2023-06-12T10:46:45.1133333+00:00
David 86 Reputation points
commented 2023-12-06T16:13:08.9+00:00
Ian Jones 0 Reputation points