16,552 questions with .NET-related tags

Sort by: Updated
1 answer

Crashing while opening the webview in maui - Net 9

Recently we had migrated our application from the .net 8 to the .net 9. we are having the web view in our application. in the .Net 8 the webview is working fine. where comes to the .net 9 the application is crashing while opening that page with the…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,075 questions
asked Apr 24, 2025, 3:57 PM
Vaibhav Methuku 160 Reputation points
commented Apr 25, 2025, 1:40 AM
Bruce (SqlWork.com) 74,851 Reputation points
1 answer

IP blocked from accessing Microsoft services via .NET HttpClient

Hello, Since today, April 24th, I'm experiencing connectivity issues to most Microsoft services from my public fix IP address given by my hosting provider. Specifically, with dotnet tools (dotnet add package, dotnet restore, or actually anything that…

.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,216 questions
asked Apr 24, 2025, 7:23 PM
Stéphane Royer 0 Reputation points
answered Apr 24, 2025, 11:45 PM
Bruce (SqlWork.com) 74,851 Reputation points
2 answers

how-to-forcefully-set-ies-compatibility-mode-off-from-the-server-side

Hi, I have an application that opens in Edge wih IE mode due to organization policy. From that application we open Blazor application in new tab/window. Due to redirection it also opens in Edge with IE mode and Blazor does'nt wor in IE mode. Please help…

Microsoft Edge
Microsoft Edge
A Microsoft cross-platform web browser that provides privacy, learning, and accessibility tools.
2,539 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,815 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,672 questions
asked Dec 22, 2023, 4:15 PM
Arti Shukla 0 Reputation points
commented Apr 24, 2025, 10:45 PM
Rob Ainscough 31 Reputation points
1 answer

the rotation is not work as expected?

I am using .net-android and want to use canvas to draw cube and rotate it.this is the code:`public class XyCube { public float width; public float height; public Color Color; public float center_x; public float center_y; public float…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,075 questions
asked Apr 24, 2025, 7:21 AM
mc 5,206 Reputation points
answered Apr 24, 2025, 9:14 PM
Bruce (SqlWork.com) 74,851 Reputation points
4 answers

How to register .net 8 build activex so that test program can run access it from different folder

I can run C:\Windows\syswow64\regsvr32 to register my activex.dll which is stored at the C:\Program Files (x86)\AA but the test program, test.exe, could not access it from C: \Program Files (x86)\BB folder. Any thought?

.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,216 questions
asked Apr 17, 2025, 7:07 PM
Oliver Lan 0 Reputation points
commented Apr 24, 2025, 7:32 PM
RLWA32 48,151 Reputation points
1 answer One of the answers was accepted by the question author.

How to discard/undo a check-out on a DriveItem?

Hello friends, I'm using the latest version of the Microsoft.Graph nuget package for .net. How can I undo a check-out of a DriveItem without creating a new version in the File history? Currently I check-in the DriveItem, get the Version History and take…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,103 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,510 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.
11,417 questions
asked Jan 19, 2023, 7:34 AM
Matt Weingartner 25 Reputation points
commented Apr 24, 2025, 4:37 PM
Javier Alvarez 0 Reputation points Microsoft Employee
1 answer One of the answers was accepted by the question author.

Why do I keep getting an error when trying to use different packages in a session using a .yml file?

I am trying to run sentiment analysis with flair through an Apache Spark session using a Spark Pool in Azure Synapse Analytics. I need to have several packages that are not pre-installed in synapse, so I am using a .yml file to upload the packages I need…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,103 questions
Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
5,306 questions
asked Oct 12, 2021, 8:12 PM
edited a comment Apr 24, 2025, 2:45 PM
Mohamed El-Qassas 1,401 Reputation points MVP
1 answer

AADSTS165000: invalid Request: The request tokens do not match the user context,

MAUI. Android app, use Oauth2D to login. Always get the error: Requestld:50664542-03a0-48dc-b330-acf123cf9f00 Correlationld:27fdf9bd-1dd4-4b3b-a556-34f7c03c17af Timestamp:2025-04-02T02:58:37Z Message:AADSTS165000: invalid Request: The request tokens do…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,075 questions
asked Apr 2, 2025, 5:47 AM
AlexJK 6 Reputation points
commented Apr 24, 2025, 10:07 AM
Mudasir TheMudasir805 0 Reputation points
0 answers

can not add this jar file to .net android?

this is jar file which to search BLE I can use it in android but can not use it in .net-android WCHBLELibrary.log you can rename this file to jar I create in android binding project and add it. and get dll file and add it to .net-android. If I call the…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,075 questions
asked Apr 24, 2025, 7:50 AM
mc 5,206 Reputation points
4 answers

How to call stored procedure procedure using entity framework core?

I work on asp.net core entity framework I have csharp function done using ado dotnet stored proceure  i need to convert it using entity framwork core with another meaning how to call stored proceure using entity framework core 6 and i don't need to use…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
779 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,815 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,598 questions
asked Jul 8, 2023, 10:24 AM
Ahmed Abd El Aziz 315 Reputation points
answered Apr 24, 2025, 7:14 AM
Gitanza 003 0 Reputation points
2 answers One of the answers was accepted by the question author.

How to obtain the number of rows of data in a table tag through C # code ?

Hello, I want to obtain the number of rows of data in the table tag through C # code, but, However, I couldn't find how to bind table DOM elements. Can you teach me? Thank you test.razor : @page…

Blazor Training
Blazor Training
Blazor: A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.Training: Instruction to develop new skills.
28 questions
asked Apr 23, 2025, 4:42 PM
929Free 581 Reputation points
answered Apr 24, 2025, 6:10 AM
Gitanza 003 0 Reputation points
1 answer

Entity framework 6.0 in .NET framework not reflecting latest table addition in MSbuild

Hi, i have an issue with legacy code using Entity framework 6.0 (DB first) model DLL build from .NET framework 4.6.2 & MS Build 15.0 not reflecting latest table additions after it is build in CI/CD, but works fine, when it is build & run from…

Entity Framework Core Training
Entity Framework Core Training
Entity Framework Core: A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.Training: Instruction to develop new skills.
10 questions
asked Apr 23, 2025, 10:24 PM
Vinjimoor, Bharath 0 Reputation points
edited an answer Apr 24, 2025, 4:15 AM
Pradeep M 7,705 Reputation points Microsoft External Staff
1 answer

HttpClient showing not registered Blazor WebAssembly

How to consume WebApi in blazor webassembly in .net 8 or 9. I added scope Http Client but am still getting the error not registered Http Client. My project is the render InteractiveWebAssembly Project, which has two project Client and Main. …

Blazor Training
Blazor Training
Blazor: A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.Training: Instruction to develop new skills.
28 questions
asked Apr 23, 2025, 4:18 PM
Prathamesh Shende 401 Reputation points
edited a comment Apr 24, 2025, 4:07 AM
Prathamesh Shende 401 Reputation points
0 answers

How to cancel navigation to a page in .NET MAUI

Please tell me how I can stop navigation to a page in a .NET MAUI Shell app if, for example, the user is not authorized to access the page. I have a nice authentication system and I have access and refresh tokens for communicating with the server, but…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,075 questions
asked Apr 19, 2025, 2:16 AM
Marcus Wolfe 20 Reputation points
commented Apr 23, 2025, 8:33 PM
Bruce (SqlWork.com) 74,851 Reputation points
0 answers

Where to get App SID for a Windows Notification Server if I have a Entra Id Line of Business App?

I have a WinUI .NET Maui Windows App that does not get publish on the Windows Store - it is a Line of Business app - the Windows Push Notification server requires that I get the App SID and Security Key - where would I get that for a LOB app.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,075 questions
asked Apr 22, 2025, 3:38 PM
Helen Mamalaki 10 Reputation points
commented Apr 23, 2025, 9:19 AM
Alekhya Vaddepally 665 Reputation points Microsoft External Staff
2 answers

Get USB Info with impersonation is not working

Hi, Without impersonation I get USB info. With impersonation is not working. I'm using .NET 9 , MAUI on windows. I got driver is not ready!!! Can you please help ? My code with impersonation is : `if…

.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,216 questions
asked Apr 22, 2025, 2:06 PM
Dani_S 4,461 Reputation points
answered Apr 23, 2025, 8:39 AM
Dani_S 4,461 Reputation points
2 answers

MAUI deep linking handling

I am new to MAUI app development. I need a sample code snippet on how to handle deep linking using a custom scheme. like myapp://payment/success

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,075 questions
asked Apr 22, 2025, 5:41 PM
Humayun Aziz 0 Reputation points
answered Apr 23, 2025, 7:53 AM
Gitanza 2 0 Reputation points
2 answers

How to add Nuget packages into Visual studio?

How to add Nuget packages For newly installed visual studio

.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,216 questions
asked Apr 23, 2025, 5:27 AM
Chintalapudi Lavanya - Contractor 0 Reputation points
answered Apr 23, 2025, 7:08 AM
Gitanza 2 0 Reputation points
1 answer

Please suggest me Alternatives for BinaryFormatter in .net 8 since it is obsolete in it.

I am migrating the .net 4.7.2 application to .net 8. Earlier we used BinaryFormatter for serialization and Deserialization but it is not available in .net 8. So I want any alternative to BinaryFormatter which I can implement in my .net 8…

.NET Training
.NET Training
.NET: Microsoft Technologies based on the .NET software framework.Training: Instruction to develop new skills.
27 questions
asked Apr 19, 2025, 6:32 PM
Aman Agrahari 20 Reputation points
accepted Apr 23, 2025, 4:34 AM
Aman Agrahari 20 Reputation points
0 answers

Alert header not seen well

Hi, After installing the app as exe in windows .NET 9, the alert header go to right and button change order. bool answer = await Application.Current.MainPage.DisplayAlert("Format USB", "Are you sure you want to format the USB…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,075 questions
asked Apr 22, 2025, 12:52 PM
Dani_S 4,461 Reputation points
edited a comment Apr 23, 2025, 1:42 AM
Dani_S 4,461 Reputation points