355 questions with ASP.NET API tags

Sort by: Updated
2 answers

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,007 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,704 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
commented 2024-12-25T09:00:08.68+00:00
Naser AL-Asbahi 0 Reputation points
1 answer

Maui project - Microsoft.AspNetCore.Aoo didnt work with the APP

1-There was no runtime pack for Microsoft.AspNetCore.App available for the specified RuntimeIdentifier 'iossimulator-x64'. 2-There was no runtime pack for Microsoft.AspNetCore.App available for the specified RuntimeIdentifier 'maccatalyst-x64'.

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,368 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,007 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,704 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
Visual Studio Testing
Visual Studio Testing
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Testing: The act or process of applying tests as a means of analysis or diagnosis.
352 questions
asked 2024-12-20T19:56:57.6366667+00:00
Maher Elmecery 0 Reputation points
answered 2024-12-20T21:16:10.3066667+00:00
Bruce (SqlWork.com) 68,486 Reputation points
2 answers

issue with api, unauthorised

I have this simple Webapi, which is published as APP service [Route("api/[controller]")] [ApiController] public class DateTimeController : Controller { [Authorize] [HttpGet] public IActionResult GetCurrentDateTime() { …

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
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,704 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-14T07:56:42.24+00:00
Abdul Baba Syed 21 Reputation points
edited an answer 2024-12-20T16:07:20.1+00:00
Bruce (SqlWork.com) 68,486 Reputation points
0 answers

Authenticating a service so it can request data from another service behind Azure Easy Auth

Hello. I want to authenticate a service so it can call another service using easy auth WITHOUT any user input, while still using Easy Auth on the service that is being called. I have 2 services 1 which is basicly a frontend with a controller. Let's…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,007 questions
Microsoft Authenticator
Microsoft Authenticator
A Microsoft app for iOS and Android devices that enables authentication with two-factor verification, phone sign-in, and code generation.
7,510 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
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,093 questions
asked 2024-12-19T15:17:03.8233333+00:00
Mikkel Glerup (Marine Travel) 0 Reputation points
commented 2024-12-20T07:23:50.48+00:00
Mikkel Glerup (Marine Travel) 0 Reputation points
0 answers

Http client error when connecting to VM via Azure Private Link Service

Hello, I have a client that is using Azure Private link service behind an Azure load balance for their application. One of their vendors stated they are experiencing intermittent drops and they dont received any traffic on their VM. Below is the error…

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-17T21:34:31.29+00:00
DG001 446 Reputation points Microsoft Employee
edited the question 2024-12-18T01:44:58.95+00:00
Junjie Zhu - MSFT 19,746 Reputation points Microsoft Vendor
0 answers

When connecting to remote debugger, breakpoints won't be hit and dlls not showing in module window

I have a multi project solution that I have deployed to a local server that has both a MVC site and an API service to populate it. When I try to attach to the w3wp process with the remote debugger, while the Microsoft dlls show up in the module window,…

Internet Information Services
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-10T18:03:47.21+00:00
Michael Warden 0 Reputation points
commented 2024-12-12T17:13:27.32+00:00
Michael Warden 0 Reputation points
0 answers

Why Are My Microsoft Graph Calls to SharePoint Unreliable in ASP.NET Core API?

I'm currently developing an ASP.NET Core API that interacts with SharePoint via Microsoft Graph. While the setup works occasionally, I'm experiencing significant reliability issues. The API calls to Graph work about 50% of the time and fail the rest of…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,704 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,651 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,999 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-12T05:36:56.3666667+00:00
Groenewald, Zander 0 Reputation points
1 answer

ASP.NET Core Web API + Swagger + Azure B2C

Hello experts, since weeks (with on and off phases) I try to protect my ASP.Net project with the Azure B2C. For testing if that works I want to use Swagger. But I am too stupid to make it a success. I got all kinds of error messages but I am unable to…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,704 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 Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
2,966 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,644 questions
asked 2024-10-19T09:44:49.0766667+00:00
Bernhard S 126 Reputation points
answered 2024-12-11T15:10:27.68+00:00
Bernhard S 126 Reputation points
1 answer

Error in our ASP.NET Web Host app after updating to the latest version of Visual Studio 2022

Hi there, We have an ASP.NET solution running on our dev machines, which are Windows Server 2022 Datacenter. Previously, the app was working fine. However, after updating Visual Studio to the latest version (Microsoft Visual Studio Enterprise 2022…

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,478 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,181 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
Visual Studio Setup
Visual Studio Setup
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
1,067 questions
asked 2024-12-02T01:40:26.98+00:00
Juan-4116 20 Reputation points
commented 2024-12-09T14:06:50.1233333+00:00
Tianyu Sun-MSFT 31,956 Reputation points Microsoft Vendor
2 answers

ActionResult<IEnumerable<Model>> vs IActionResult in ASP.NET Core WebAPI

Hello, What is the difference between ActionResult<IEnumerable<SpeakerModel>> vs IActionResult ? I ran both of them and got the same result. public IActionResult GetAll() { return Ok(SpeakersList); } …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,704 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-10-03T07:36:52.1066667+00:00
Shervan360 1,621 Reputation points
edited a comment 2024-11-29T19:03:08.2533333+00:00
Dick Nagtegaal - de Vries 15 Reputation points
0 answers

context deadline while posting notification through API https://dm3p.notify.windows.com?token=xxx

got many timeout when using wns for push since about 28.11 9:00(utc+8) api: https://dm3p.notify.windows.com?token=xxx I have been using this function for a year without any problems. This timeout problem has occurred since around 9:00(utc+8) this…

Universal Windows Platform (UWP)
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,704 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-11-28T08:36:42.49+00:00
景轩 王 35 Reputation points
commented 2024-11-29T01:44:35.5066667+00:00
Junjie Zhu - MSFT 19,746 Reputation points Microsoft Vendor
1 answer

Automating Teams Meeting Creation and Recording Upload to SharePoint: Issue with Recording Upload

Requirement: I am developing functionality to create Teams meetings as an organizer via an API with the following requirements: Create a Teams meeting as the organizer. Add two external users to the meeting. The organizer will not join the meeting. …

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
10,553 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,651 questions
Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
939 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 Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,441 questions
asked 2024-11-19T13:55:51.1333333+00:00
Lal Krishna 0 Reputation points
answered 2024-11-26T06:51:03.8233333+00:00
Sayali-MSFT 3,226 Reputation points Microsoft Vendor
1 answer

How to access at run-time the value of an IEnumerable<T>

Good day all: I'm developing a WEB API that returns a paged response to a jQuerydatatable end point. Because the code repeats itself, I encapsulated all the logic in the generic procedure below. The code works perfectly when I pass the class (entity) I…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,704 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-11-21T12:22:44.3566667+00:00
Jose Daniel Navarro Brito 61 Reputation points
commented 2024-11-22T02:18:54.99+00:00
Bruce (SqlWork.com) 68,486 Reputation points
1 answer One of the answers was accepted by the question author.

How to Decouple Front-End from Back-End with Secure APIs for User Management in Blazor Web App (.NET 8)

Hello, I'm used to creating Blazor Web App projects in .NET 8 with "individual accounts" and interactive render mode set to Auto, with per-page interactivity. The advantage of this setup is that all the account management mechanics are…

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
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
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-10-31T14:42:41.7966667+00:00
Laurent Guigon 306 Reputation points
commented 2024-11-18T13:41:11.13+00:00
Laurent Guigon 306 Reputation points
5 answers One of the answers was accepted by the question author.

403 Forbidden Error while trying to access authorized routes in a .NetCore 8 WebAPI -

Hi All, Let me discuss my problem in clear detail. I am trying to build a backend webAPI for an app using .NetCore 8. I created the database for my webapi by using code-first migrations on AspNet Identity. The respective tables have been created. In…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,704 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,547 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.
14,214 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-11-05T18:16:25.4366667+00:00
P. G. Choudhury 61 Reputation points
answered 2024-11-18T11:41:00.92+00:00
BiggJohn 0 Reputation points
2 answers

How to update User Roles along with other data through .NetCore 8 WebAPI –

Hi forum members, As the question suggests, I am facing some difficulty in updating user roles with other data through my code. I am unable to visualize how to do it. Let me explain the scenario in detail. I have used .netcore Identity and…

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
Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
767 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,704 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-11-14T10:52:18.1233333+00:00
P. G. Choudhury 61 Reputation points
edited an answer 2024-11-17T10:37:09.95+00:00
P. G. Choudhury 61 Reputation points
1 answer

IIS Express is running, but I get "Connection Refused" Error

I'm developing an ASP.Net Web Form application and an ASP.Net Api. /Edit: They are two different projects, have nothing to do with each other, but both have problems with IIS Express. /Edit VS Studio 2022 is updated, no firewall or virus scanner is…

Internet Information Services
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,547 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-11-07T10:54:24.0666667+00:00
Georg Aubele Lehmbau 0 Reputation points
edited a comment 2024-11-13T09:23:24.0333333+00:00
Georg Aubele Lehmbau 0 Reputation points
1 answer

ASP.NET API + Swagger + Azure B2C

This is my 3. try to get help for a ASP.NET Core + Swagger + Azure B2C demo project. I am not sending code because this results into…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,704 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 Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,644 questions
asked 2024-10-19T09:59:42.05+00:00
Bernhard S 126 Reputation points
commented 2024-11-01T11:29:11.5533333+00:00
Bernhard S 126 Reputation points
1 answer

Why does my .NET Framework 4.8 web app on Azure lose DLLs intermittently after deployment?

My application is crashing out of nowhere. I deploy the same release, it stays up for a while, and then the error below occurs. I went into the Console, accessed the directory where the published project with the dlls is located, and the file mentioned…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,007 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
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,093 questions
asked 2024-10-29T17:38:54.9766667+00:00
Gustavo Rodrigues 0 Reputation points
edited a comment 2024-10-29T21:15:47.3833333+00:00
Gustavo Rodrigues 0 Reputation points
1 answer

Unable to obtain configuration from: 'https://login.microsoftonline.com/tenantId/.well-known/openid-configuration'

An unhandled exception has occurred while executing the request. System.InvalidOperationException: IDX20803: Unable to obtain configuration from: 'https://login.microsoftonline.com/<tenanatid>/.well-known/openid-configuration'. Will retry at…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,704 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 Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,644 questions
asked 2023-07-19T19:39:03.2733333+00:00
Niraj 10 Reputation points
answered 2024-10-25T06:29:15.04+00:00
Shubham Pawar 0 Reputation points