How to resolve CORS errors when running Blazor WASM alongside Blazor Server and ASP.NET Core Web API?
Hi, I have a solution having Blazor WASM, Blazor Server and Asp.Net Core Web API. When I try to run the applications, the Blazor server and API work without any problem but I get this error while running the WASM. Cross-Origin Request Blocked: The Same…
How to fix my slow internet only Microsoft store application
slow network connection in an only microsoft store application
How can I trigger a method from the OrderConfirmation page in Blazor WASM?
Hi, I have a Blazor WASM Client e-commerce application where I'm showing cart counts in the NavMenu. I'm trying to call the GetCartCount() method from the OrderConfirmation razor page after payment has been completed to make the cart count zero, but I'm…
System.Reflection.TargetInvocationException: "Expression 'dest => dest' must resolve to top-level member" when configuring AutoMapper profile
I'm encountering an exception when trying to configure AutoMapper in my ASP.NET Core application. The exception message is: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. --->…
How do I override the default Blazor scaffolding template in Visual Studio 2022
I want to edit the scaffolding template for Blazor CRUD pages, but my changes to the template are not being reflected in the output. I tried researching this issue, and the closest answers I could find are how to edit Razor templates, or MVC component…
How to find the .net version of app service, if we are using a old framework
Hi, Our app service is using an old version of .Net framework, which is no longer support. I wish to check the exact version we are using (it is either 2.1 or 3.1), but we end up seeing this in the Configuration section How can I find the framework we…
Microsoft.Web/serverfarms (BadGateway error) in Azure Web App service deployment
{ "status": "Failed", "error": { "code": "Forbidden", "message": "The subscription '5c793fb4-62d4-4c5b-a17a-07fc43a67282' is not allowed to create or update the…
ResetPassword in .net core web api
Hi, I'm currently working on a .NET core web API project and writing ResetPassword. The user wrote the email and front-end sent it to my ForgotPassword Endpoint, I checked the database and send the url with email and token in it to the user's email. This…
REST interface, server for GET,PUT,POST,DELETE
Hello, My goal is to control a Rest Server from a WPF C# desktop app. Get, Push, Pop, Delete should be tested. The server does not require extensive logic, only test data. Later, the customer REST server is connected. How can I achieve this? How should I…
Asp.net core 8 , IIS and Video Streaming, Low level
Hello All, Have simple sample web api application, coded in .net core 8, deployed on kestrel and IIS, a typical scenario. I have created one end point that streams local video file. File is about 400 MB and approx. 4 mins in length. Below code works. …
How to fix this error "warn: Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionMiddleware[3] Failed to determine the https port for redirect."
Good evening , I am trying to build a simple web api using ASP.Net . The app has been showing the error like this after building it - warn: Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionMiddleware[3] Failed to determine the https port for…
Migrating Azure Function App From In-Process model to Isolated-Worker model and .NET8
After I migrated my azure function app to isolated-worker model and .net8, I deployed it to the azure and I started to get the following runtime error: Microsoft.Azure.WebJobs.Script: Error configuring services in an external startup class.: Could not…
How to fix HTTP Error 500.30 - ASP.NET Core app failed to start
I'm new to Azure and unsure how to start troubleshooting my issue, I've found the portal support to be unhelpful. The support system asks numerous questions about the problem but ultimately provides no solutions or contact with a support representative,…
Azure Adb2c External IDP Authentication Browser Back Button Click redirects to External IDP Again
We have AD B2C Authentication with .NET 8 MVC Web Application. We configured Open Id Provider with Custom Policy in Adb2c. The authentication is working successfully. But the problem is, after the External IDP successful authentication, the provider…
How to fix the exception System.Net.Http.HttpRequestException: The SSL connection could not be established
we have SignalR and SignalR.Client libraries used in our project to establish the connection between the client and the server. The services are .NET applications and the client is a mobile application which is also a .NET application. I am got the…
StackOverflowException after upgrading from .Net 6 to .Net 8
Hi, I have upgraded 5 projects in my solution from .Net 6 to .Net 8 using upgrade assistant in Visual Studio. When I run the solution, StackOverflowException is being thrown and Swagger is not loading. Looks like onchangetokenfired() method is being…
How to remove an unwanted autogenerated field in code-first migration of Asp. Net Core 6
I am working on Asp.Net Core 6.0 MVC. I have customized IdentityUser by inheriting and creating a new class, ApplicationUser. In this class, I have added my custom properties. My ApplicationUser doesn't have a field named EmailAddress1. However, I have…
Update Workload Problem/ NuGet Package unable to be installed.
**I have created 3 Projects: FrontEndProject and it is a Blazor Project and this is the csProj:** <Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly"> …
Error while submitting the registration form
RegistrationForm.cshtml @page @model FaceAdminApp.Pages.Auth.RegistrationFormModel @{ ViewData["Title"] = "RegistrationForm"; } <style> .container { max-width: 600px; margin: 0 auto; padding:…
How to retrieve the any table from SQL DB and display dynamically in one page in asp.net core
Requirements are as below. 1. In single page of asp.net core, need to display any table data dynamically like jtable from jQuery plugin... With generic code with ado.net or web api orAPI or entity framework core