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…
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 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…
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…
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…
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); } …
Error message while generating a controller in Dotnet ASP.NET Core
I'm trying to generate a controller in Dotnet ASP.NET Core by following the tutorial on https://learn.microsoft.com/en-us/aspnet/core/tutorials/first-mvc-app/adding-model?view=aspnetcore-8.0&tabs=visual-studio-code, but when I use the command dotnet…
How can I optimize this SQL query to avoid stored procedures timeout on the production server
Hi all, I have a stored procedure query that is going to timeout on the production server for some time. However, I am not sure how to fix this query issue. I have 12 years old data in sql database those data fetching from this query, day by day my data…
Azure Service Bus Queue - High number of incomming requests even though the client is turned off.
I'm facing a challenge with an Azure Service Bus Queue. I have an ASP.NET Core API that forwards incoming requests to a queue. Additionally, I have a background service that checks for new messgaes every 10 minutes. The service is supposed to shut down…
Request for Research Guidance and References
Dear Microsoft Team, I have recently completed an e-commerce project using ASP.NET Core API and Blazor. I am now looking to write a research paper on this topic. Could you please provide me with reference papers or resources that discuss the integration…
System.Runtime.CompilerServices.AsyncTaskMethodBuilder
Hi, I am getting the below mentioned error. Don't know why it was showing. I guess this comes due to I migrate the dotnet version from 6 to 8. can you resolve my issue? { "error": "Error getting value from 'Context' on…
Windows service HttpClient with HTTPS support
Hi.I have a **Windows service** that makes calls to an http web page via an **HttpClient **object. Now the website is HTTPS but when I call the https page it gives an "Unauthorized" error. I am using Visual Studio 2013 with .NET Framework 4.5.
Authenticate my own Blazor App with against my SSO-REST Backend
Hi, regarding to this blog https://devblogs.microsoft.com/dotnet/whats-new-with-identity-in-dotnet-8/ I've successfully created a REST-API with Identity and SSO. But now I need my Blazor frontend to authenticate against this rest service. The blog…
DriveItem AdditionalData Patch method with error in Graph Api
I'm creating an API with ASP.NET Core that accesses a list/drive with the graph api and at some point I need to update an item that was created in the drive library to add an ID (which is a custom column), but I'm getting an invalid request error, can…
How to hash a password in asp.net core and use it in a stored procedure
Hi there; There are a lot of examples of SQL stored procedures for User Validations (credential checks) but all of them the password is in text format which is bad security practice. The idea is to hash the password in the client side ( in this case is…
How to check asp.net core hash password in stored procedure
Hi there; There are countless of SQL stored procedures examples that check plain text passwords which is a bad security practice. I initially used ASP.NET Core Identity so the password were hashed and saved in the datatabase, but not I want to use…
How to put an Asp.net Core Web API response in a Bootstrap message on the client side
Good day all: I'm struggling the following I have a ASP.NET Core web API that provides User registration as follows public async Task<IActionResult> RegisterUser([FromBody] NewUser user) { User appuser = new User() …
I am trying to integrate .NET WEB API in .NET 4.7 Framework (acts as backend server) & WEB APP(act as frontend). But not able to connect WEB API to Azure SignalR
SignalR Connection Error: Error: Server returned handshake error: SignalR Service is now in 'Default' service mode. Current mode works as a proxy that routes client traffic to the connected app servers. However app servers are not connected. this…
How can i generate a personal unique number for user?
Hello. i am creating a website for a courier in my local area and i want to be able to implement a feature. Once the users' registers, they will be given a personal unique id which can be used for one user only to keep track of their data from the…