26,489 questions with .NET-related tags

Sort by: Updated
1 answer

Issue with 405 Method Not Allowed instead of 401 Unauthorized in ASP.NET Core with JWT Authentication

Hi everyone, I'm encountering an issue with my ASP.NET Core application where I'm getting a 405 Method Not Allowed error instead of the expected 401 Unauthorized error when accessing an endpoint that requires authentication. Here's a detailed description…

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.
728 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,006 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,702 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,152 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.
355 questions
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.
728 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,006 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,702 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,152 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.
355 questions
asked 2024-12-25T05:41:55.44+00:00
Naser AL-Asbahi 0 Reputation points
answered 2024-12-25T07:49:51.2933333+00:00
Alispark sol 0 Reputation points
1 answer

Issue with 405 Method Not Allowed instead of 401 Unauthorized in ASP.NET Core with JWT Authentication

Hi everyone, I'm encountering an issue with my ASP.NET Core application where I'm getting a 405 Method Not Allowed error instead of the expected 401 Unauthorized error when accessing an endpoint that requires authentication. Here's a detailed description…

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.
728 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,006 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,702 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,152 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.
355 questions
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.
728 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,006 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,702 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,152 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.
355 questions
asked 2024-12-25T05:41:55.44+00:00
Naser AL-Asbahi 0 Reputation points
answered 2024-12-25T07:49:51.2933333+00:00
Alispark sol 0 Reputation points
0 answers

Remote debugging of ASP.NET (.NET Core 8) app under IIS 10 will not show source code on breakpoint

Historically, I've had no problems using the remote debugger on a Windows server for .NET Framework web services. I've now had to create a .NET Core 8 Web API using VS2022. I've published the service to a W2016 host and am hosting it under IIS…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,702 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
1,012 questions
asked 2024-12-18T13:38:55.14+00:00
Osborne,J,Jon,QDN R 0 Reputation points
commented 2024-12-25T07:32:36.47+00:00
Brando Zhang-MSFT 3,791 Reputation points Microsoft Vendor
1 answer

Performance issues in Session State

Hi. We are running a .Net Framework 4.8 mvc web application with redis session state setup. We are experiencing performance issues and the profiling we have done indicates that session state, specifically GetSessionStateItemAsync, is waiting for long…

Azure Cache for Redis
Azure Cache for Redis
An Azure service that provides access to a secure, dedicated Redis cache, managed by Microsoft.
264 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,547 questions
asked 2024-09-06T00:41:07.7633333+00:00
Danielle Schlie 0 Reputation points
edited an answer 2024-12-25T07:24:25.8566667+00:00
Sina Salam 14,551 Reputation points
1 answer

How do I fix static assets not showing on implementing project with .Net9

Hi, I am having an issue in my app when trying to implement a Nuget package. My project has the following configuration: <ItemGroup> <!-- Include the JavaScript file in the NuGet package --> <Content…

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,636 questions
asked 2024-12-24T20:51:38.42+00:00
William Mendoza 0 Reputation points
edited an answer 2024-12-25T06:59:59.32+00:00
Ruikai Feng - MSFT 2,586 Reputation points Microsoft Vendor
0 answers

Issue with TabbedPageRenderer Causing IconImageSource to Disappear on CurrentPageChanged Event

I am experiencing an issue with the custom implementation of TabbedPageRenderer in .NET MAUI. When the CurrentPageChanged event is invoked, the IconImageSource for the tabs intermittently disappears. This behavior seems related to how the renderer…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,762 questions
asked 2024-12-25T04:12:13.8466667+00:00
Thinh NPD 40 Reputation points
commented 2024-12-25T06:19:08.6133333+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 46,206 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

Impact of Upgrading to Xcode 16 on Xamarin Forms Code Compatibility

Hi, I am in the middle of migrating the Xamarin Forms code to MAUI, but we still need to release production bug fixes with Xamarin Forms. I am currently using macOS 14.3.1 and need to upgrade to macOS 15.2 to get Xcode 16, as I am receiving an error…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,368 questions
asked 2024-12-20T07:08:45.64+00:00
Chinmay Dole 200 Reputation points
accepted 2024-12-25T04:49:13.5633333+00:00
Chinmay Dole 200 Reputation points
2 answers

How to run asp.net web application using visual studio code ?

I work on .NET 4.7. I have an issue: I can't run applications in Visual Studio Code. I don't know how to run it. Startup page is http://localhost:22851/WebPages/loginT.aspx This page opens in Visual Studio 2019, but how to open the page logint.aspx in…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,547 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,152 questions
asked 2024-12-24T21:40:42.5133333+00:00
ahmed salah 3,216 Reputation points
answered 2024-12-25T03:36:44.36+00:00
XuDong Peng-MSFT 10,841 Reputation points Microsoft Vendor
1 answer

Android Apk not installed

dotnet publish -f:net9.0-android -c:Release /p:AndroidSigningKeyPass=math@24 /p:AndroidSigningStorePass=math@24 When I try to install apk file "on my Android phone I get below error "App not installed as app isnt compatible with your…

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,636 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,762 questions
asked 2024-12-23T21:42:31.97+00:00
Kalyan A 335 Reputation points
answered 2024-12-25T03:03:55.3866667+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 77,726 Reputation points Microsoft Vendor
1 answer

face registration and face authentication

hello, I am developing a app in .NETMaui. I am searching for a way where I can create a database for faces with face registration(taking picture of left profile, right profile and front face) and save it. Authenticate the user using this face database…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,762 questions
asked 2024-12-18T12:16:22.29+00:00
Pearl 61 Reputation points
commented 2024-12-25T02:57:17.2+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 46,206 Reputation points Microsoft Vendor
1 answer

FirebaseApp Initialization Error in MAUI .NET 8

Hello, I am encountering an issue with initializing Firebase in my MAUI Android and iOS projects. The error message I am receiving on Android is: [mono-rt] [ERROR] FATAL UNHANDLED EXCEPTION: Java.Lang.IllegalStateException: Default FirebaseApp is not…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,762 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,152 questions
asked 2024-12-24T11:32:28.0366667+00:00
Omkar Pawar 20 Reputation points
answered 2024-12-25T02:53:29.17+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 46,206 Reputation points Microsoft Vendor
1 answer

Dependency Properties in User Controls

I have a simple Slider and Label user control that I load into my window and I want to change the following properties using databinding from the main window. Slider Properties -> Value, SelectionStart, SelectionEnd (all doubles) Label Properties…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,006 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,804 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,152 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,006 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,804 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,152 questions
asked 2024-12-18T16:06:49.42+00:00
dmccric 0 Reputation points
commented 2024-12-25T02:33:59.9366667+00:00
Hongrui Yu-MSFT 3,645 Reputation points Microsoft Vendor
1 answer

Dependency Properties in User Controls

I have a simple Slider and Label user control that I load into my window and I want to change the following properties using databinding from the main window. Slider Properties -> Value, SelectionStart, SelectionEnd (all doubles) Label Properties…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,006 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,804 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,152 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,006 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,804 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,152 questions
asked 2024-12-18T16:06:49.42+00:00
dmccric 0 Reputation points
commented 2024-12-25T02:33:59.9366667+00:00
Hongrui Yu-MSFT 3,645 Reputation points Microsoft Vendor
1 answer

Issue with DataGrid Selection in WPF Application

A WPF application has been developed using .NET 5, which includes a DataGrid and a button. The following is the code for the button's click event. The issue encountered is that the index and selectedRow values of the DataGrid are only correctly stored…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,006 questions
asked 2024-12-23T11:22:35.7+00:00
Kamyab Faghih 65 Reputation points
answered 2024-12-25T02:25:50.54+00:00
Hongrui Yu-MSFT 3,645 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

How can I retrieve an Azure isolated runtime .NET 8 QueueTrigger Connection String from the Key Vault

tl;dr In an Azure Function written in .NET 8 C# in Visual Studio using the isolated runtime, is there a way to allow the Connection for a QueueTrigger to be retrieved via Microsoft.KeyVault()? [Function("ProcessEvent")] public void…

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,249 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,006 questions
Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,292 questions
asked 2024-12-16T18:43:25.79+00:00
Woods, Jeffrey 26 Reputation points
edited the question 2024-12-25T01:38:41.41+00:00
Jack J Jun 24,616 Reputation points Microsoft Vendor
1 answer

How can I create and upload an iOS-Build from Visual Studio to App Store TestFlight?

I had already created an application on App Store Connect some time ago and I had uploaded an iOS-Build in TestFlight. The iOS-Build expired and I want to upload a new iOS-Build. I had created my first iOS-Build on a macOS device. I switched from macOS…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,762 questions
asked 2024-12-18T13:12:18.1566667+00:00
Kim Strasser 1,141 Reputation points
commented 2024-12-25T01:36:04.8733333+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 33,591 Reputation points Microsoft Vendor
1 answer

VS2022 Publish is disabled

I am trying to create msix file for Windows but Publish is disabled please suggest.publish.gif I am using VS 2022 and recently upgraded. Thanks, Kalyan

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,762 questions
asked 2024-12-19T19:47:36.7166667+00:00
Kalyan A 335 Reputation points
commented 2024-12-25T01:30:46.9133333+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 77,726 Reputation points Microsoft Vendor
3 answers One of the answers was accepted by the question author.

Why am I Only Seeing Warning Level Logs in Application Insights?

I am working on an ASP.NET Core application and have integrated Application Insights for logging. However, I'm facing an issue where only Warning level logs (severity level 2) are being sent to Application Insights, even though I expect to see logs of…

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,396 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,006 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,152 questions
asked 2024-12-19T16:21:16.08+00:00
Neeraj Mahajan 81 Reputation points
edited the question 2024-12-25T01:28:31.01+00:00
Jack J Jun 24,616 Reputation points Microsoft Vendor
1 answer

MAUI stops keeping the display up to date when an HTTP request is made

I am new to MAUI programming as well as parallel Thread programming. I have retrieved a MAUI application that I am trying to modify. The application captures a sound sample and transmits it to a server to identifies its origin among a set of determined…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,762 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,152 questions
asked 2024-12-24T18:56:53.3366667+00:00
Boucourt 105 Reputation points
commented 2024-12-24T20:50:02.45+00:00
Boucourt 105 Reputation points
0 answers

ML.NET ImageClassification with GPU

I 'll get a very low accuracy(about 3%) This is not the case with CPU(about 88%) with RTX 3070ti What may be the reason for this?

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,152 questions
.NET Machine learning
.NET Machine learning
.NET: Microsoft Technologies based on the .NET software framework.Machine learning: A type of artificial intelligence focused on enabling computers to use observed data to evolve new behaviors that have not been explicitly programmed.
159 questions
asked 2021-11-06T08:38:22.377+00:00
scixing 21 Reputation points
commented 2024-12-24T17:11:11.6433333+00:00
Sungho Hong 0 Reputation points