4,338 questions with ASP.NET Core tags

Sort by: Updated
2 answers

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…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,338 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,183 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,562 questions
asked 2024-06-20T13:55:57.4333333+00:00
Binu S 0 Reputation points
commented 2024-06-20T17:05:34.66+00:00
Binu S 0 Reputation points
1 answer

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?

Microsoft Identity Manager
Microsoft Identity Manager
A family of Microsoft products that manage a user's digital identity using identity synchronization, certificate management, and user provisioning.
645 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,338 questions
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,472 questions
asked 2024-06-19T20:07:08.9166667+00:00
Mrbanad 30 Reputation points
commented 2024-06-20T16:07:43.5966667+00:00
Bruce (SqlWork.com) 60,201 Reputation points
1 answer

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…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,565 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,338 questions
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,472 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,394 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,562 questions
asked 2024-02-25T21:05:38.5766667+00:00
Haneen Al-fakhry 5 Reputation points
commented 2024-06-20T14:22:15.8+00:00
Panchal, Aayush VineshKumar 0 Reputation points
0 answers

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…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,338 questions
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,472 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,562 questions
asked 2024-06-14T13:48:29.6+00:00
Cenk 986 Reputation points
commented 2024-06-20T09:30:21.6633333+00:00
Jerry Fu - MSFT 571 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

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…

Azure Key Vault
Azure Key Vault
An Azure service that is used to manage and protect cryptographic keys and other secrets used by cloud apps and services.
1,171 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,565 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,338 questions
asked 2024-04-10T06:52:54.9233333+00:00
Amit 711 Reputation points
commented 2024-06-19T19:49:11.1+00:00
Sunil Nanjappa Ganesh Murthy 20 Reputation points Microsoft Employee
1 answer One of the answers was accepted by the question author.

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…

Internet Information Services
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,338 questions
asked 2024-06-18T13:43:10.6+00:00
Dyllan Jones 20 Reputation points
accepted 2024-06-19T14:19:02.1566667+00:00
Dyllan Jones 20 Reputation points
2 answers One of the answers was accepted by the question author.

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…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,338 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,315 questions
asked 2024-06-18T08:22:11.4466667+00:00
eirikm 20 Reputation points
commented 2024-06-19T12:25:34.0466667+00:00
eirikm 20 Reputation points
1 answer

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…

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
2,960 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,338 questions
asked 2024-06-19T04:49:49.47+00:00
edited the question 2024-06-19T11:21:15.7566667+00:00
PRADEEPCHEEKATLA-MSFT 84,051 Reputation points Microsoft Employee
2 answers

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"…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,338 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,227 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,315 questions
asked 2024-06-19T06:42:39.6366667+00:00
yuvraj khanna 5 Reputation points
commented 2024-06-19T09:43:53.3+00:00
Soaad Nahas 0 Reputation points
2 answers One of the answers was accepted by the question author.

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 => { …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,338 questions
asked 2024-06-18T16:11:45.6+00:00
Amit 711 Reputation points
accepted 2024-06-19T09:22:30.2366667+00:00
Amit 711 Reputation points
0 answers

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…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,565 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,338 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,394 questions
asked 2024-06-18T07:10:11.82+00:00
AKHIL TALLURI 0 Reputation points
commented 2024-06-19T07:18:57.7133333+00:00
Jerry Fu - MSFT 571 Reputation points Microsoft Vendor
1 answer

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…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,565 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,338 questions
asked 2024-05-29T09:57:50.6666667+00:00
Abhishek, Burra 5 Reputation points
edited a comment 2024-06-19T06:57:00.1666667+00:00
Abhishek, Burra 5 Reputation points
2 answers

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…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,338 questions
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,472 questions
asked 2024-06-04T13:24:09.7766667+00:00
Cenk 986 Reputation points
edited the question 2024-06-19T02:27:07.1733333+00:00
Jack J Jun 24,486 Reputation points Microsoft Vendor
3 answers One of the answers was accepted by the question author.

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…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,338 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,562 questions
asked 2024-06-15T11:01:15.27+00:00
Yalçın Mete 60 Reputation points
commented 2024-06-18T23:51:45.99+00:00
Yalçın Mete 60 Reputation points
2 answers

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…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,338 questions
asked 2024-06-17T19:45:33.41+00:00
Dyllan Jones 20 Reputation points
commented 2024-06-18T17:58:58.4566667+00:00
AgaveJoe 27,421 Reputation points
1 answer One of the answers was accepted by the question author.

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…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,338 questions
Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
4,613 questions
asked 2024-06-14T09:19:22.67+00:00
Andi Leka 20 Reputation points
accepted 2024-06-18T07:23:38.6766667+00:00
Andi Leka 20 Reputation points
1 answer

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:…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,338 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,134 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,315 questions
asked 2024-06-14T20:34:10.4766667+00:00
Justin Armstrong 0 Reputation points
commented 2024-06-18T07:21:36.5533333+00:00
Givary-MSFT 30,176 Reputation points Microsoft Employee
1 answer One of the answers was accepted by the question author.

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 Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,338 questions
Azure Databricks
Azure Databricks
An Apache Spark-based analytics platform optimized for Azure.
2,042 questions
asked 2024-06-03T15:30:12.4666667+00:00
Luigi Navarra 25 Reputation points
accepted 2024-06-18T07:16:04.8966667+00:00
Luigi Navarra 25 Reputation points
1 answer

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 -…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,338 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,394 questions
Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
829 questions
asked 2024-06-11T20:15:24.4333333+00:00
Anel Hodžić 0 Reputation points
commented 2024-06-18T05:17:19.6033333+00:00
Zohaib khan 0 Reputation points
2 answers One of the answers was accepted by the question author.

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…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,338 questions
asked 2024-06-09T04:35:25.08+00:00
Malam Malam 226 Reputation points
accepted 2024-06-17T23:52:58.6766667+00:00
Malam Malam 226 Reputation points