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…
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'.
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() { …
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…
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…
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,…
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 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…
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…
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); } …
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…
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. …
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…
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…
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…
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…
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…
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…
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…
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…