25,010 questions with .NET-related tags

Sort by: Updated
3 answers

ASP.NET Core JWT Authentication Returning Unauthorized(invalid-token 401) for Authenticated Requests in Controller Actions

Hi everyone, I'm encountering an issue with JWT authentication in my ASP.NET Core 8.0 application. While the token generation and authentication seem to work correctly in my AuthenticationController, any requests to other controllers requiring…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,643 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,397 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,415 questions
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.
318 questions
asked 2024-07-24T16:02:32.3133333+00:00
Antonio Simonetti 0 Reputation points
answered 2024-07-25T01:39:13.94+00:00
SurferOnWww 2,491 Reputation points
2 answers

How to fix error code 2147516556 (0x8000808c) in VS 2022

Reference Library uses .NET 8.0, which I configured it as such. Build is successful but Debugger shows below error and program failed to open. The target process exited without raising a CoreCLR started event. Ensure that the target process is…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,643 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.
10,641 questions
asked 2024-07-24T02:12:43.5233333+00:00
Manfred Koh 0 Reputation points
edited a comment 2024-07-25T01:23:22.9133333+00:00
Manfred Koh 0 Reputation points
2 answers One of the answers was accepted by the question author.

flayout navigation - how to deal with rasing memory?

Hi, I used flayout navigation. when navigate beween pages it consume alot of memory. In net 8. Not relase the previous page. Does to use GC.Collect()? Is allowed ? Thanks, public void Navigate(string navigateTo) { if (navigateTo ==…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,223 questions
asked 2024-07-14T14:42:45.7166667+00:00
Dani_S 3,316 Reputation points
commented 2024-07-25T01:12:23.3266667+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 72,171 Reputation points Microsoft Vendor
1 answer

net maui windows platform when maximaze or minimize the page I want to hide and show contents ?

net maui windows platform when maximaze or minimize the page I want to hide and show contents ? when my listing s detailpage opened small size how can i create events for my seconwindow page. maximize show some contents and then minimize back again…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,223 questions
asked 2024-07-23T00:58:52.5833333+00:00
Sami 901 Reputation points
edited the question 2024-07-25T00:56:56.4333333+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 72,171 Reputation points Microsoft Vendor
0 answers

Will Azure Face Liveness Detection be available on .NET MAUI ?

We want to use Azure Face Liveness Detection on .NET MAUI, however the only available supported methods are Kotlin/Java , IOS, and JavaScript for Web Application. Is there any upcoming SDK for .NET MAUI ,if so, when is the expected date of release. Thank…

Azure Face
Azure Face
An Azure service that provides artificial intelligence algorithms that detect, recognize, and analyze human faces in images.
158 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,223 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,642 questions
asked 2024-07-24T15:18:32.8233333+00:00
Maroun ElKady 0 Reputation points
commented 2024-07-24T22:52:31.7133333+00:00
YutongTie-MSFT 48,581 Reputation points
0 answers

can't open the .NET Editor coding environment why ???

i can't complete learning because the .net ide didn't work even though i delete the cashe and logout then log in again and open it in a private mode also trying other browsers but it didn't work

Viva Learning
Viva Learning
A Microsoft Viva module that provides employees with formal and informal learning.
93 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,643 questions
asked 2024-07-24T22:07:27.2966667+00:00
tray haroun 0 Reputation points
2 answers

Why my ASP.NET razor page app cannot access a specific endpoint?

I have an issue with my ASP.NET app where it cannot access a specific endpoint. It throws a 502 error in Azure and a request timed out on my local machine. The endpoint I want to access is the products endpoint. I found that…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,397 questions
asked 2024-07-22T20:13:11.8566667+00:00
Alex Corsega 0 Reputation points
answered 2024-07-24T22:04:23.6366667+00:00
Alex Corsega 0 Reputation points
0 answers

How to create a custom voice for use with System.Speech.dll?

How can I create a custom voice that I can then use with the Speech Synthesizer that comes with System.Speech.dll? Please provide me with step by step instructions.

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,643 questions
asked 2024-07-24T21:42:55.72+00:00
Siddharth Jain 1 Reputation point
1 answer

Dotnet Maui iOS app occasionally crashes on TestFlight on some devices

The MAUI app works fine on Android and most iOS devices, but a few users have reported that it crashes immediately after launch. However, I couldn't reproduce the error in my local environment. It is built with the latest: Xcode: 15.4 .Net 8.0.7 MAUI…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,223 questions
asked 2024-07-24T16:32:53.43+00:00
MT 0 Reputation points
edited an answer 2024-07-24T21:41:19.2166667+00:00
Bruce (SqlWork.com) 61,491 Reputation points
2 answers One of the answers was accepted by the question author.

How to use EF Core when two properties in the Principle entity point to the same attribute in the dependent entity?

I have 2 Model classes: Department.cs cs public class Department { public string DepartmentId { get; set; } public string Name { get; set; } public string Description { get; set; } [ForeignKey("FacultyId")] public…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
726 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,397 questions
asked 2021-11-01T04:16:37.687+00:00
Uchchay Dugal 21 Reputation points
answered 2024-07-24T21:30:32.9566667+00:00
Hazrat Ali 0 Reputation points
1 answer One of the answers was accepted by the question author.

ASP.NET Core Razor Pages - checkbox asp-for

Hello, New user here, a beginner trying to understand how checkbox asp-for works. In this sample application, I am trying to toggle a checkbox on post by a button, but failing. Having googled, read tutorials and attempted variations, I am still…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,397 questions
asked 2024-07-24T06:28:45.1566667+00:00
Joyce 0 Reputation points
accepted 2024-07-24T21:29:44.8433333+00:00
Joyce 0 Reputation points
1 answer One of the answers was accepted by the question author.

How to switch audio output between bluetooth and speaker? (Both Android and IOS)

Is there a way to choose or switch audio output between bluetooth and speaker before playing and audio file ? (Both IOS and Android) Thx.

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,883 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,223 questions
asked 2024-07-23T16:31:34.9333333+00:00
Luiz Arruda 20 Reputation points
edited a comment 2024-07-24T19:46:54.0066667+00:00
Luiz Arruda 20 Reputation points
4 answers

Dynamic Folder Names with AjaxFileUpload

I'm attempting to replace the upload /download pages of our very old ASP classic web site with a web forms app. Keeping as much of the back end stuff the same is important as there is code (mostly VBA in Word, Excel and Outlook) in our daily operation…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,643 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,415 questions
asked 2024-07-18T17:04:20.35+00:00
Ken Krugh 116 Reputation points
edited a comment 2024-07-24T18:49:41.95+00:00
Ken Krugh 116 Reputation points
1 answer

Microsoft.Maui version 8.0.70 NuGet packages automatically switch back to 8.0.61

I have updated the NuGet packages Microsoft.Maui.Controls, Microsoft.Maui.Controls.Compatibility and Microsoft.Maui.Essentials from version 8.0.61 to 8.0.70. Then I got the following error when I tried to build my iOS project: Error MSB4019 The imported…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,883 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,223 questions
asked 2024-07-23T20:52:20.9+00:00
Kim Strasser 876 Reputation points
answered 2024-07-24T18:04:50.28+00:00
Bruce (SqlWork.com) 61,491 Reputation points
0 answers

AcquireTokenInteractive with WithUseEmbeddedWebView stopped working after upgrading library.

Hi, [Urgent] One of my live Microsoft Store App (Written in UWP) is using Microsoft.Identity.Client nuget library. Following code was working perfectly well until i upgraded library from version 4.58.1 to 4.62.0 …

Microsoft Identity Manager
Microsoft Identity Manager
A family of Microsoft products that manage a user's digital identity using identity synchronization, certificate management, and user provisioning.
661 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,643 questions
Universal Windows Platform (UWP)
asked 2024-07-24T17:32:54.5866667+00:00
Jiya desai 51 Reputation points
edited the question 2024-07-24T17:34:03.1966667+00:00
Jiya desai 51 Reputation points
1 answer

Azure app service reverts to previous version

I have blazor web app I'm deploying to Azure App service using VS2022 Preview publish feature. I have upgrade my project target framework to .NET 8. And I have my publish setting target framework to .NET 8. However after publishing the app the…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,643 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,415 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,883 questions
.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,141 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,397 questions
asked 2024-01-29T22:02:12.3066667+00:00
JuwonPark-6692 5 Reputation points
edited a comment 2024-07-24T16:47:05.44+00:00
sabbir saiyed 0 Reputation points
2 answers One of the answers was accepted by the question author.

How and how to return to the main page without losing page data

The page is made with Asp.Net Core Razor Page, In this page >> MAINPAGE (Please see the picture) 1- Populate data and filling dropdown1 Here are the codes: public SelectList TermList { get; set; } public SelectList CourseList { get; set; } …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,397 questions
asked 2024-07-22T17:53:32.98+00:00
Ashkan 61 Reputation points
accepted 2024-07-24T16:07:55.0433333+00:00
Ashkan 61 Reputation points
1 answer One of the answers was accepted by the question author.

How to add continuous speech/talk - .NET MAUI Speech

I have the below .Net MAUI code that works great. I want to add continuous speech, I mean when I speak, the recorder must not stop until I press stop button. In the below code, when I stop speaking, or I pause for like 2-3 sec, it stops itself, so I…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,643 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,223 questions
asked 2024-07-19T12:58:44.29+00:00
Johnson 81 Reputation points
commented 2024-07-24T16:07:19.32+00:00
Johnson 81 Reputation points
4 answers

Azure AD Connect directory sync fails with "SSL/TLS secure channel" error in event log

I have an Azure AD Connect (v2.1.16.0) installation that has recently begun failing during the majority (but not all) of its directory sync attempts. When a directory synchronization fails, the synchronization service manager indicates that it is the…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,643 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,600 questions
asked 2022-08-21T00:37:24.797+00:00
AaronKennedy-2673 6 Reputation points
answered 2024-07-24T15:56:04.2866667+00:00
Bender, Charles 0 Reputation points
2 answers

C# .NET Bind to CN=Deleted Objects container in domain to list dACL

Hello dear community members, I need some help with C# .NET code to bind to CN=Deleted Objects container in a domain. I tried below methods: In PowerShell - [System.DirectoryServices.DirectoryEntry] In .NET System.DirectoryServices namespace with…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,643 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,625 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,236 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.
10,641 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,322 questions
asked 2024-07-22T13:59:06.2666667+00:00
iSiek 0 Reputation points
answered 2024-07-24T14:36:52.0166667+00:00
Jiale Xue - MSFT 43,046 Reputation points Microsoft Vendor