Microsoft Q&A

.NET

20,771 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

20,771 questions with .NET-related tags

Sort by: Updated
2 answers

Jwt Token implementation not working on azure app service when using secured private key

I have created a .net core application in which there is implementation of Jwt token generation and then use it for authentication. The token generation is using a private key to generate the key and public key to validate the key for protected routes.…

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.
244 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
5,676 questions
asked 2023-10-03T09:45:22.9066667+00:00
Dheeraj Sharma 0 Reputation points
answered 2023-10-03T16:11:55.8266667+00:00
Bruce (SqlWork.com) 44,811 Reputation points
0 answers

Binding library with xcfranework

How to use xcframework in xamarin ios binding library

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,164 questions
asked 2023-10-02T22:28:48.4033333+00:00
Rishabh Pandey 0 Reputation points
edited a comment 2023-10-03T16:08:41.7933333+00:00
Rishabh Pandey 0 Reputation points
0 answers

ASP.NET Web Core with .NET Core 7.0 Error While Generating Scaffolding

In an ASP.NET core project built on .NET Core 7.0 I am trying to scaffold the login page with the following steps: I right click on the project, and select Add -> New Scaffolded Item I select Identity and Click on Add Then I choose…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,592 questions
asked 2023-10-03T16:04:46.3866667+00:00
Hochgurtel, Brian D 0 Reputation points
1 answer

Asp.Net MVC5 - Static Html Files Authentication?

Hi, I am working on Asp.Net MVC5 (.Net Framework 4.8 & C#) web application. The application is hosted in azure app service. The project solution has a "Help" folder, and the contents of the help folder is static files only i.e., html files.…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,076 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
991 questions
asked 2023-10-03T15:33:22.3133333+00:00
Senthil S R 0 Reputation points
commented 2023-10-03T16:02:02.8466667+00:00
AgaveJoe 685 Reputation points
0 answers

Event ID 1309 ASP.NET 4.0.30319.0 Warning

I put the whole error below, but before I continue there's a phrase in this error people are going to focus on and it's NOT the problem. There is no trust relationship problem with the server. What I don't doubt is at issue is communication to the…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,647 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
10,637 questions
asked 2023-10-03T16:00:54.65+00:00
Will 0 Reputation points
0 answers

PrintToPdfAsync with custom header and footer. How can I take full control of these elements?

var setting = webView2.CoreWebView2.Environment.CreatePrintSettings(); setting.ShouldPrintHeaderAndFooter = true; setting.HeaderTitle = headerText; setting.FooterUri = footerText; await webView2.CoreWebView2.PrintToPdfAsync( pdfFile, setting ); …

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.
626 questions
asked 2023-10-03T15:53:24.8266667+00:00
Vasanth Ramakrishnan 0 Reputation points
1 answer

Determine "Recommended" display resolution settings

Got the code that gets a list of the monitors (using EnumDisplayDevices) along with getting all the settings (using EnumDisplaySettings) for each monitor working just fine. However, when I right click my desktop and adjust the resolution one of the…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
8,915 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,076 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,033 questions
asked 2023-10-02T16:02:33.03+00:00
Dave Cotton 41 Reputation points
edited a comment 2023-10-03T15:53:23.9166667+00:00
Dave Cotton 41 Reputation points
2 answers

Controls inside controls

Hi , can someone please share some idea by which i can create a list which shows all the parent controls in a form with all the child controls inside them .

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,640 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,033 questions
asked 2023-10-03T14:43:40.1233333+00:00
Shaifali jain 320 Reputation points
commented 2023-10-03T15:53:02.5566667+00:00
KOZ6.0 1,280 Reputation points
0 answers

ASP.NET Web Core with .NET Core 7.0 Error While Generating Scaffolding

I am trying to scaffold the login page of ASP.NET Core. To do this I'm doing the following: On the project name, I right click and select New Scaffolded Item. Then I select identity And on the last page I select Account\Login When I make that final…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,592 questions
asked 2023-10-03T15:31:41.3866667+00:00
Hochgurtel, Brian D 0 Reputation points
3 answers

Reinstall .NET Framework

Hello, i have problem with .Net framework, We have Windows Server 2019 and now after start ServerManager or for example azure tool for sync i get error about that i need .NetFramework 4.0 But when i dowload last version from MS and run install i get…

.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,044 questions
asked 2022-04-19T10:45:47.12+00:00
Jartymyk Tomas 1 Reputation point
commented 2023-10-03T15:27:33.9666667+00:00
Tomáš Voves 0 Reputation points
1 answer

MAUI: Listview isvisible property is not working from the code behind?

I am trying to show the selected image or file on my UI on a listview. So initially the listview's IsVisible I set to false and after picking item I set the IsVisible property to true. My problem is after picking item the listview is not visible on the…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,884 questions
asked 2023-09-19T14:24:15.5166667+00:00
Sreejith Sreenivasan 406 Reputation points
commented 2023-10-03T15:09:53.1333333+00:00
Sreejith Sreenivasan 406 Reputation points
1 answer

Failed integrity metadata check for Blazor application (NET7)

0 I have a project in NET7 and Blazor hosted in an ASP.NET Core web application. The website is hosted by a service provider. When I deploy the application on the server in a hosting provider, I check the application with different browsers. The…

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,115 questions
asked 2023-10-02T07:40:28.0466667+00:00
Enrico Rossini 96 Reputation points
commented 2023-10-03T15:05:38.74+00:00
Enrico Rossini 96 Reputation points
2 answers

Win32 EnumFontFamiliesEx doesn't call the callback I provide

I wrote a class to test if a WPF font is fixed width. But the only way I could find to do that was to get the LOGFONT and test it. So I went through a lot of P/Invoke hoops to get there. I created a DC for the display and asked it to enumerate the…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,076 questions
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,484 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,232 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,033 questions
asked 2023-09-28T03:32:36.0033333+00:00
Will Pittenger 281 Reputation points
edited an answer 2023-10-03T15:02:45.1633333+00:00
KOZ6.0 1,280 Reputation points
0 answers

How to fix Severity Code APT2062 failed linking references.

Hi There, When I try to run the .Net Maui project on android Emulator I found run time error say that. "Severity Code Description Project File Line Suppression State Priority Error APT2062 failed linking references.C:\ ProgramFiles \dotnet \packs…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,884 questions
asked 2023-06-04T06:50:00.33+00:00
Ahmed Thabet 20 Reputation points
commented 2023-10-03T15:01:47.1566667+00:00
BasicGoodmorning 0 Reputation points
1 answer

Push notification on MAUI application using FCM

I am trying to implement push notification on my MAUI application using FCM. I follow this blog and I did everything as per the blog. They suggest to install only 2 NuGet packages, Plugin.Firebase and Plugin.Firebase.Crashlytics. (I installed it by…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,884 questions
asked 2023-09-29T10:06:12.68+00:00
Sreejith Sreenivasan 406 Reputation points
edited a comment 2023-10-03T14:52:18.7+00:00
Sreejith Sreenivasan 406 Reputation points
0 answers

Datareader vs Dataadapter vs something else

HI , i have been recently working on the c# code to pull the data from sql server database but have been stuck at creating a generic method which can retrieve large data from database . The term generic is used because my application have 20 forms and…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,640 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,033 questions
asked 2023-10-03T14:38:41.0066667+00:00
ankit goel 606 Reputation points
1 answer

best practice for Application Insights with Blazor Server

i have seen multiple posts about Blazor Web Assembly and Application Insights but almost zero on how to best use application insights with Blazor server. is the only way to treat blazor server like web assembly ? are there any guides on how to get full…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,592 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,115 questions
asked 2023-10-02T18:35:53.3266667+00:00
Denny Figuerres 0 Reputation points
commented 2023-10-03T14:37:45.6533333+00:00
Denny Figuerres 0 Reputation points
1 answer One of the answers was accepted by the question author.

Store a Value in application

Hi , Can the experts here suggest me a way how to store a value of a label from a particular form in such a way that can be made safe until next restart of a application and can be retrieved next time for use .

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,640 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,033 questions
asked 2023-09-29T10:34:56.03+00:00
Shaifali jain 320 Reputation points
accepted 2023-10-03T14:35:49.2666667+00:00
Shaifali jain 320 Reputation points
1 answer

HTTP Error 500.32 - ANCM Failed to Load dll

I have upgraded a .NET Core 2.1 web app to .NET 7. The application works fine on Visual Studio 2022. When I deploy that to Azure through Azure DevOps pipelines, I get the following error: HTTP Error 500.32 - ANCM Failed to Load dll Common solutions to…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,076 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,592 questions
asked 2023-10-02T21:58:13.0866667+00:00
Alexander Angelo 6 Reputation points
edited the question 2023-10-03T14:33:00.8166667+00:00
GitaraniSharma-MSFT 39,431 Reputation points Microsoft Employee
1 answer One of the answers was accepted by the question author.

Does Visual Studio 2022 support connection to Xamarin.iOS build machines running Xcode 15?

Even though the release notes for VIsual Studio 2022 version 17.7.3 (I'm running 17.7.4) say "Added support to list simulators and devices with Xcode 15", I get a warning that says, "The Xcode version installed on the Mac (15.0) is not…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,164 questions
asked 2023-10-02T19:55:32.9966667+00:00
Sibalik, Mike 6 Reputation points
commented 2023-10-03T14:31:15.5733333+00:00
Sibalik, Mike 6 Reputation points