How To Resolve EFCore 8 Saving to Table with Trigger
I have a Web API based on EF Core 8 that inserts a record per time into a table A based on a post to one of its endpoints. The table has an insert trigger that fires to executes a stored procedure that updates the record in another table B if the value…
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); } …
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 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…
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…
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…
Intermittenty w3wp.exe terminating and recorver by itself. This interupte user connection to applicaiton.
I have a web application hosted in IIS. Intermittently my logon connect would fault causing user to re-logon again. Sometime user has to re-logon a few times a day. Investigating the issue, it's cause with w3wp.exe terminating. This happen…
How to troubleshoot the exception, Could not create TLS secure channel?
Hello there, I have this C# code that consumes a SOAP WS and it was working properly for years. However, since recently it started to throw the following exception: The request was aborted: Could not create SSL/TLS secure channel. Basically it imports…