How to add a different CSS to a razor page in Blazor WASM?
I am working on a Blazor WASM e-commerce application using the .NET 6 old version with a default template. I want to add a new razor page with a different look while keeping the old ones in the project. How can I achieve this? Specifically, I want to add…
SQL connection and transaction Idle Time
Hi, I am having a asp.net core application, which opens a sql connection and running commands in a sql transaction. The transaction might take overall 15 minutes to complete, The connection and transaction might be idle as we sleep the current thread for…
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 use Azure RMS to protect documents on a local machine.
Hello everyone, how are you? It is possible to use Azure RMS to protect files and maintain control over them even on the user's machine. I would like to enforce authentication regardless of the program they are using to open the files, especially PDF and…
Databricks Simba Spark ODBC .NET8 C# Driver Parameters in SQL Queries
Hello, I'm using Simba ODBC driver v2.8.0 in order to query data from my azure databrick sql warehouse into a .net 8 Asp.net Api App. The ODBC driver works fine using plain text query but i need to parametrize the query. Searching around I found that it…
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…
How to pass values from a Razor page to an Asp.Net MVC controller
I am working on an Asp.Net Core MVC project. The identity was scaffolded and uses Razor pages. When the user enters the username and password, if they are valid, they will be redirected to an MVC controller where they have to answer a security question.…
How to run a docker compose file from .Net Aspire?
I have multiple services that require a Docker Compose file to be run before starting. I have added a .NET Aspire application to manage all the services, but now I cannot run the Docker Compose file from the .NET Aspire application. Is there any way to…
Creating Excel with EPPlus: Set Column Widths in Pixels and Add Logo
Hello Friends; I have a question for you, I want to pull the data according to id and process it with excell, I even want to add a logo but I couldn't do it somehow, the thing is that I actually want to give the size to the columns and add a logo, but…
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…
Blazor HeadContent
I have some Open Graph meta tags that I add within the HeadContent. The problem is that I must add all those tags on every page. <HeadContent> <meta name="description" content="@metaDescription" /> <meta…
How to use SystemWebAdapter SessionClient to share only registered keys and ignore the others
I am learning how to migrate a large .net framework application to .net core and am happy with the tooling provided by SystemWebAdapters and RemoteAppClient. The framework application uses session state extensively and it looks like the default behaviour…
I want to verify that we're using the correct settings in IIS Application Pool
We're beginning to get away from the old .NET Frameworks, and start using .NET Core for our ASP.NET Core web applications. I've got an ASP.NET Core app written using .NET 6 in IIS 10 on a Windows 2019 Server. I've configured an application pool that for…
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
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…