Concurrency Handling in Entity Framework Core with Transactions and Master Data
Question: We have two tables: Orders (transaction table): Stores order details and references a customer using CustomerID. Customers (master table): Stores customer information. The Orders table has a RowVersion column for optimistic locking. The…
Blazor server logout on SignalR connection break
My Blazor server-side application logs out the user whenever the SignalR connection breaks. For example, when I lock my phone for half an hour and then return to the site, I'm logged out. How can I prevent this from happening?
![](https://techprofile.blob.core.windows.net/images/uy7N8lB-HEqeyK5HuTWvNQ.png?8D9DF5)
Why is the blazor css isolation not working?
I have an AppLogin.razor component and its css file is AppLogin.razor.css. They are working fine. I have a UserLogin.razor component and its css file is UserLogin.razor.css. The working mechanism is as follows When you login from the AppLogin.razor…
How to organize icons on navbar using Bootstrap in a Blazor WASM app with .NET 6?
I'm working on an e-commerce app and I want to properly organize the icons on my navbar using Bootstrap 5 CSS. Specifically, I want to display the icons side by side, with equal spacing, and have the username appear right under the green login icon. Can…
![](https://techprofile.blob.core.windows.net/images/PjYbsbDfukmsOVQ24l7Rxw.png?8D8DBE)
Create Azure Key Vault via c# with RBAC.
Hi, I am using below code to create Azure Key vault and below is my code. Where azure is an object of IAzure. This code is working fine. But when I am visiting this vault in Azure I can see "Permission" Model within "Acces…
IIS will not recognize the default document for an ASP.NET Core Web App (Razor Pages)
I created an ASP.NET Core Web App (Razor Pages) app in Visual Studio 2022. The site works when debugging on my local machine. It starts, redirects to my AAD login screen, and then forwards the user to the Index.cshtml page as expected. However, when I…
Microsoft Entra Workload ID and On-Behalf-Of tokens
My team is using Microsoft Entra Workload ID in a Kubernetes cluster for both accessing Azure resources and communicating with our other services (m2m, API calls). Our apps are Web APIs implemented using ASP.NET Core 8.0 and WorkloadIdentityCredential…
Application Insights Operations Name - Different for same API endpoint
In Application insights, I can see 2 logs for same API end point but with different operation name. One is with POST api/Student Second one with POST Student/Create First one is the route name of the endpoint but not sure why its logging it for both…
![](https://techprofile.blob.core.windows.net/images/VfQFAmOikEWfBHko2XlWTA.png?8D7F33)
How to retrieve a user image from azure ad using microsoft graph in .net .
For Microsoft graph version 5.56.0 . how to retreive user image file with given email address from microsoft entra Id . I have the single tenant id option selected only . <PackageReference Include="Microsoft.Graph" Version="5.56.0"…
Is controller suffix is mandatory in .NET Core (.NET 6)
public class Home : controller { public IActionResult Index() { return view(); } } I created above class without controller suffix. And below is my routing in startup.cs class .NET 6: app.UseEndpoints(endpoints => { …
Microsoft.AspNet.OData NuGet Package Upgrade Causing delay in the Functionality
Hi, I have upgraded Microsoft.AspNet.OData NuGet Package in our application from 7.5.14 to 7.7.5 and since then it is causing delay in few of the Api calls in the application. Before upgrade everything works fine without causing any delay. The scenario…
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 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…
![](https://techprofile.blob.core.windows.net/images/PjYbsbDfukmsOVQ24l7Rxw.png?8D8DBE)
![](https://techprofile.blob.core.windows.net/images/J_TYKjg7AEiX7AvF9jc5sA.png?8D8651)
What do the "/" and "~" signs mean in file path usage?
Hi, If you allow, I would like to ask a question. I want to access "b5.jpg" in CoreBlogTema from About/Index. Which one should I start with "/", "./", "../", "~/" in the file extension? Can you explain…
How do you set the default document programmatically in the Program.cs file of an ASP.NET Core Web App (Razor Pages)
I have created a new app using the ASP.NET Core Web App (Razor Pages) template in Visual Studio 2022. I have the app linked up to Azure AD so when a user goes to the site it redirects them to authenticate through AAD before directing them back to the…
![](https://techprofile.blob.core.windows.net/images/MxBLrky2rESG0hes4GqOKQ.png?8D92C1)
Azure Synapse Analytics Developer Endpoint Certificate Issue
I'm encountering an SSL connection issue while trying to call the Azure Synapse Analytics REST API using HttpClient in my ASP.NET Core API deployed on a Web App. The error message 'The SSL connection could not be established, see inner exception. The…
How to authenticate a user that was redirected to a web application from a desktop application.
I am having an issue trying to use Azure AD B2C to use SSO between my desktop application and my web application. The issues is almost exactly what is described in this question:…
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…
ASP.NET azure hosted app / sql server Works on localhost only
When I run my simple CRUD app on localhost it works really good. Hint: It is using SQL server to insert data and server is hosted on my Azure Subscription inside same Resource Group Deployed app : myAzureWebsitesLink.net Not working route : School -…
Paging Issue in asp.net MVC
I am trying to add paging but get the error: CS1061: 'IEnumerable<Subject>' does not contain a definition for 'PageCount' and no accessible extension method 'PageCount' accepting a first argument of type 'IEnumerable<Subject>' could be…