Issue with Azure AD B2C Custom Policy: "Basic credentials specified for 'REST-fetchUserProfile-APAC' are invalid
Description I am working on an Azure AD B2C custom policy for the Global Identity Framework, designed to support traveling user sign-ins across multiple regions. This setup involves two major components Right now im only working on region tenant…
Why Does PUT Work for Data Retrieval in My API, and Why Should I Use GET Instead?
Detailed Question: In my current API implementation, I’m using the PUT method to retrieve user profile data, and despite this being semantically incorrect, I am still able to successfully fetch the data. This leads me to wonder why it's necessary to use…
Do Dev Tunnels Have an HTTP Timeout Issue?
Using a dev tunnel to connect a Mac client app to an ASP.NET service running on a PC has raised a timeout issue. One API call takes about 70 seconds to complete, but when the client runs on the Mac via the dev tunnel, an HTTP timeout occurs after 60…
Blazor get absolute URL from within the class
Hello, I have a class inside the Services folder. It contains a LogError(Exception ex) method in which I need the absolute URL in order to get the requested page. However, I am unable to access the HttpContext.Request.Url or any other method/extension…
How to get Json Data from an external WEB API to an JQUery autosearch text box end point
Hi everybody: I have an external minimal Web API that produces a JSON object ( array) as per below. app.MapGet("/AsyncAutocompleteErf/{search}", async (IErvenRepository request, string search) => { var data = await…
why asp.net webapi generate a zh-Hans directory in bin directory?
I know this zh-hans means simplified Chinese, but I still don't understand the purpose of generating it
Implementing mTLS Between Two Apps Using ASP.NET
Guidance is requested on implementing mTLS between two applications using ASP.NET MVC in C#. or any .net code. The setup will involve a handshake between the server app and client app, developed in a localhost environment, utilizing OpenSSL or another…
Options for connecting public api with on-premise API
Hi, I have question on connecting my Primary API to Secondary API in on-premise network. Currently, Both the Primary and Secondary API are hosted in on-premise network. I want to host the Primary API on Azure so that it can be publicly accessible to…
part 2 - Issue with Azure AD B2C Custom Policy: "Basic credentials specified for 'REST-fetchUserProfile-APAC' are invalid
i have already posted the original problem in detail in this post: https://learn.microsoft.com/en-us/answers/questions/2145431/issue-with-azure-ad-b2c-custom-policy-basic-creden?comment=question#newest-question-comment you can see the profiles ive…
I am migrating application from dot net 4.8 to dot net core 8. facing error Project ..\folder\folder.csproj targets net8.0. It cannot be referenced by a project that targets .NETFramework,Version=v4.8.
I am migrating application from dot net 4.8 to dot net core 8. facing error Project ..\folder\folder.csproj targets net8.0. It cannot be referenced by a project that targets .NETFramework,Version=v4.8. Project ..\folder1\folder1.csproj targets…
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…
how to create Print Job using Graph API with Application Permissions through .Net Core Web API?
Hi I am trying to integrate Universal Print with the Microsoft Graph API in a .NET Core Web API application. I have Azure Subscription and enable Universal Print on my Azure tenant and registered printer in Universal Print. Registered application in the…
Portal returns updated results while the API returns outdated ones
I have created a GPT4 model in Azure OpenAI Service, and I want to add data source which is Azure AI Search (Cognitive Search Service). The problem is at the time of deployment i cannot see any data source adding option, it is deployed first and then…
Response status code does not indicate success: 404 (Not Found)
I get the following error while calling an api in my Blazor application: Following is the code where the error is pointing: And following is the calling api where request is made: What went wrong here? Any suggestions? Thanks, Puneet Chandiok
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 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…
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() { …
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…