Microsoft Q&A

.NET

21,822 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

21,822 questions with .NET-related tags

Sort by: Updated
0 answers

Why does VS 2022 add using statements to my code

Every so often (at least it has happened enough that I know what to do) when I go to debug a solution it will add using statement(s) to my code. They will always cause a compile error which on the surface makes not sense. The most recent one was for…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,098 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,183 questions
asked 2023-11-10T20:44:18.74+00:00
Lloyd Sheen 1,261 Reputation points
commented 2023-12-05T21:51:35.53+00:00
Lloyd Sheen 1,261 Reputation points
0 answers

How Can I Use AddRange In Master Details Table

i have 2 table Order OrderLineItems namespace BasketWebApp.Models { using System; using System.Collections.Generic; public partial class Order { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage",…

Entity Framework 6.0
Entity Framework 6.0
A Microsoft open-source object-database mapper for .NET.
267 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,610 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
1,057 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,481 questions
asked 2023-12-05T21:21:42.09+00:00
AHSAN ALI 81 Reputation points
1 answer

How to Monitoring and Navigating URLs in Blazor Maui with Social Authentication

I'm currently working on a Blazor Maui app using C# and integrating UAE Pass authentication. In my application, I need to monitor and navigate URLs within a Blazor page, such as Login.razor. I attempted to achieve this using an iframe, but encountered an…

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,208 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,183 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,481 questions
asked 2023-12-01T06:06:18.66+00:00
Raju Gadda 66 Reputation points
commented 2023-12-05T21:16:26.4033333+00:00
Bruce (SqlWork.com) 48,711 Reputation points
1 answer One of the answers was accepted by the question author.

Timer to MAUI Blazor App

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 time which is in minutes 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,208 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,183 questions
asked 2023-12-03T17:29:16.65+00:00
Maui Learner 100 Reputation points
accepted 2023-12-05T21:00:09.0433333+00:00
Maui Learner 100 Reputation points
2 answers

How can i add select columns in specification pattern

i followed this medium article https://medium.com/@rudyzio92/net-core-using-the-specification-pattern-alongside-a-generic-repository-318cd4eea4aa how can i add select like this in my specification class UsersWithRecipesAndIngredientsSpecification …

Entity Framework 6.0
Entity Framework 6.0
A Microsoft open-source object-database mapper for .NET.
267 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,772 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
1,057 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,481 questions
asked 2023-11-26T10:28:47.2+00:00
AHSAN ALI 81 Reputation points
commented 2023-12-05T20:56:08.2233333+00:00
AHSAN ALI 81 Reputation points
2 answers One of the answers was accepted by the question author.

Does ASP.NET Core Identity library have an option for CAPTCHA?

Hi; In the ASP.NET Core Identity library, is there a way to have it require a CAPTCHA when a new user is registering? thanks - dave

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,772 questions
asked 2023-12-05T00:22:06.3733333+00:00
David Thielen 1,616 Reputation points
commented 2023-12-05T20:45:49.79+00:00
Bruce (SqlWork.com) 48,711 Reputation points
1 answer

Authenticate with AcquireTokenInteractive and use security key as default

I have a C# program (Windows Application .NET 7.0) for logging in to Azure using Web Account Manager (WAM). This works fine but I would like to have "Sign in with a security key" as the default sign-in option. Currently I get a dialog where I…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,311 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,481 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
17,568 questions
asked 2023-11-24T11:21:33.09+00:00
Arne Kjetil Bjelland 0 Reputation points
commented 2023-12-05T20:30:15.9933333+00:00
JamesTran-MSFT 34,211 Reputation points Microsoft Employee
1 answer

KERNELBASE.dll Exception code: 0xe0434352 Fault offset: 0x000000000002cf19 Faulting process ID: 0x26c0 error

after the clickonce setup. the application gets terminates and in event viewer two erros are generated What may be going wrong ? Applicaton error Faulting application name: Bansal-RM.exe, version: 1.0.0.2, time stamp: 0x656e13f7 Faulting module name:…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,738 questions
asked 2023-12-05T06:40:08.7766667+00:00
Sushil Agarwal 361 Reputation points
answered 2023-12-05T19:45:50.9733333+00:00
Sushil Agarwal 361 Reputation points
1 answer

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,772 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,059 questions
asked 2023-12-04T17:58:41.95+00:00
sekou keita 0 Reputation points
edited the question 2023-12-05T19:07:39.0133333+00:00
deherman-MSFT 30,466 Reputation points Microsoft Employee
1 answer One of the answers was accepted by the question author.

Upgrade .Net framework 2.0 to latest version

My current project is .Net Web Form with .Net framework 2.0 version (Visual Studio 2005). I want to change .Net framework latest version (with Visual Studio 2019). Is this possible 2.0 to 4.8 directly. Or, should I change to another version (like…

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.
653 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,481 questions
asked 2022-05-24T02:33:37.117+00:00
Yee Mon Zaw 21 Reputation points
commented 2023-12-05T19:04:59.7433333+00:00
Nick Honetschlager 0 Reputation points
5 answers One of the answers was accepted by the question author.

how to get live stream which push by obs?

I want to get live stream that obs(obsproject.com) push. how to get the live video stream and send it to users? do not use azure.

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,772 questions
asked 2023-04-21T01:25:21.27+00:00
mc 3,221 Reputation points
answered 2023-12-05T17:46:17.58+00:00
emma olivia 0 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,183 questions
asked 2023-12-05T17:41:03.5466667+00:00
Luis Rodriguez 0 Reputation points
2 answers

Maui .net. RelayCommand when pressing button doesn't fire.

I have VS 2022 preview Version 17.5.0 Preview 1.0 In my project I installed CommuniToolkit.Maui v2.0 and CommunityToolkit.Mvvm V8.0 I created this MVVM test app and when I press the button it doesn't fire. <ContentPage…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,183 questions
asked 2022-11-29T18:16:09.833+00:00
Heinz Deubler 176 Reputation points
answered 2023-12-05T17:19:20.97+00:00
Vinay Kudtarkar 0 Reputation points
1 answer

CaptchaMvc.Mvc5 Captcha loading error

Hi, We are facing the captcha loading error if user browse the URL multiple times. here we are using CaptchaMvc.Mvc5 package. Note this issue is not showing in localhost. Please find the image for your reference.

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,722 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
1,057 questions
asked 2023-12-04T06:47:43.5433333+00:00
Arutprakasam 241 Reputation points
commented 2023-12-05T17:09:05.79+00:00
Bruce (SqlWork.com) 48,711 Reputation points
1 answer

C# Allowing only one row to be selected in checkbox coloum in each datagridview on a form

Hi I'm still very new to C# and struggling with the following issue with DataGridViews in my windows forms app. I have a form that has two combo boxes (combo1 & combo2) and two datagridview (dgv1 & dgv2) controls on it. Both combo boxes have a…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,738 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,481 questions
asked 2023-11-29T16:22:26.6633333+00:00
Steve Williams 0 Reputation points
commented 2023-12-05T17:08:11.9133333+00:00
Steve Williams 0 Reputation points
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
1 answer

How to convert node.js to C# code

I have this code in node.js and I need to convert it to C# code This method I have to implement it in my project to be consume from other platform. But it is coded in Node.js and I am using ASP.NET MVC and I do not have idea in node.js…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,311 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,722 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
752 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
1,057 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,481 questions
asked 2023-12-05T11:46:11.3366667+00:00
mostafa ahmed 21 Reputation points
answered 2023-12-05T17:05:25.65+00:00
Bruce (SqlWork.com) 48,711 Reputation points
0 answers

Maui - publish msix with no internet in net 8

Hi, When publishing msix with internet the msix is working. But with no internet is not responsive at all . not open . Why ? dotnet publish -f net8.0-windows10.0.19041.0 -c Release /p:AppxPackageSigningEnabled=true…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,183 questions
asked 2023-11-28T11:20:44.2266667+00:00
דני שטרית 1,716 Reputation points
commented 2023-12-05T16:57:39.8733333+00:00
דני שטרית 1,716 Reputation points
0 answers

Memory is not releasing in dotnet6

I'm currently working on a .NET 6 Web API project, and I'm facing an issue with memory not being released properly. I have thoroughly analyzed the code and ensured that I'm not creating any memory leaks or holding onto unnecessary resources. However,…

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-05T14:48:57.93+00:00
usha 40 Reputation points
commented 2023-12-05T16:52:52.47+00:00
usha 40 Reputation points
1 answer One of the answers was accepted by the question author.

Why does Visual Studio create a solution not allow selecting .NET 8?

Hi; I'm trying to create a new Blazor Server app and want it to be .NET 8 so I get the ASP.NET Identity library version 8 in the created code (to see what has changed). Is there any way to do this? The dialog only allows.NET 6 and .NET 7. I do have .NET…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,772 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,098 questions
asked 2023-12-05T03:33:24.32+00:00
David Thielen 1,616 Reputation points
accepted 2023-12-05T16:50:15.5+00:00
David Thielen 1,616 Reputation points