4,526 questions with ASP.NET Core tags

Sort by: Updated
1 answer

Migration from .NET 6.0 to .NET 8.0: Compatibility and Considerations

Hello everyone, We have a solution with a vast number of projects, and we are aiming to migrate some of the components to .NET 8.0. Before proceeding with the migration, we want to ensure that we will have full compatibility and support for it. Our App…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,808 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,526 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,459 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,679 questions
asked 2024-09-19T01:46:58.35+00:00
Juan-4116 0 Reputation points
commented 2024-09-19T20:40:10.5466667+00:00
Juan-4116 0 Reputation points
2 answers

How to get current User outside of Controller in another layer

In ASP.NET Core 6, I need to get the current user in service layer This is code: public class ServiceModel { private readonly IHttpContextAccessor accessor; public ServiceModel(IHttpContextAccessor accessor) { this.accessor =…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
736 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,808 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,526 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,858 questions
asked 2024-09-18T22:15:23.81+00:00
mostafa ahmed 41 Reputation points
answered 2024-09-19T17:41:23.7666667+00:00
Bruce (SqlWork.com) 64,486 Reputation points
3 answers One of the answers was accepted by the question author.

How to Update-Database in PM console when getting "Could not load assembly..." error?

Hello, I cannot apply migrations to database by Package Manager Console command Update-Database. On every attempt I get error: Could not load assembly "My_Project". Ensure it is referenced by the startup project 'My_Project'. Before mentioned…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,526 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,690 questions
asked 2024-09-13T13:56:24.9266667+00:00
Filip Veselý 0 Reputation points
accepted 2024-09-19T17:24:09.98+00:00
Filip Veselý 0 Reputation points
0 answers

ASP.NET Core authenticate with existing authentication ticket in OAuth provider OnCreatingTicket event callback

I have cookie authentication with 2 OAuth2 providers set up. The way it works is the user creates an account on my website with Discord OAuth2 and can then link their ExampleSite account with OAuth2 as well. This is my authentication set…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,526 questions
asked 2024-09-19T11:14:42.4466667+00:00
iKingNinja 60 Reputation points
1 answer

Replicating ASP.NET Request Validation Behavior in .NET 8 for Automatic Input Validation ?

In our current ASP.NET Framework 4.7.2 application, we utilize request validation to automatically check for potentially malicious input by setting requestValidationMode to 4.0 in the web.config file. This ensures that requests are validated for…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,808 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,526 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,459 questions
asked 2024-09-17T11:42:05.3466667+00:00
Kirankumar Bharsadiya 40 Reputation points
edited the question 2024-09-19T06:47:02.6433333+00:00
ajkuma 25,791 Reputation points Microsoft Employee
2 answers

Issue with an earlier well functioning AppService

Hello Team, I would like to ask your help in a technical issue. I am creating an AI chatbot flaskbased application , where using mostly open source libraries. For semantic search and ranking I am using FlashRank library…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,526 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,459 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,679 questions
asked 2024-06-21T09:00:34.67+00:00
Viktor Banai 0 Reputation points
answered 2024-09-19T01:04:37.39+00:00
Syafie Asyraf Sarifudin 20 Reputation points
1 answer

MSIS7012 : The same client browser session has made '6' requests in the last '1' seconds. Contact your administrator for details

We have a .Net application which we implemented ADFS WSFED in it. Its working fine in local but when we deployed we are facing this error. For Dev in URL I see Realm is HTTPS but wreply is HTTP. But for local I see Realm is HTTPS but wreply is HTTPS.…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,526 questions
Active Directory Federation Services
Active Directory Federation Services
An Active Directory technology that provides single-sign-on functionality by securely sharing digital identity and entitlement rights across security and enterprise boundaries.
1,250 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
21,450 questions
asked 2024-09-16T02:49:42.47+00:00
rody 0 Reputation points
answered 2024-09-18T20:26:04.3266667+00:00
Bruce (SqlWork.com) 64,486 Reputation points
1 answer

CORS Latest Release .NET

I have created a new web api project using the latest .net release(.net 8) and I am getting the following error in my angular project. Http failure response for "url": 0 Unknown Error see my program.cs below: var builder =…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,526 questions
asked 2024-09-16T13:44:24.3566667+00:00
CY 1 Reputation point
commented 2024-09-18T20:20:02.35+00:00
Bruce (SqlWork.com) 64,486 Reputation points
1 answer One of the answers was accepted by the question author.

How do I make the horizontal menu, vertical?

I'm working on a rewrite of an old WebForms application. After numerous restarts of this application, I'm now using the ASP.NET MVC Core project template. I'm hoping to include Razor into this as well, but that's a separate topic. The default menu for…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,526 questions
asked 2024-09-11T21:23:40.9966667+00:00
Falanga, Rod, DOH 170 Reputation points
accepted 2024-09-18T16:06:10.72+00:00
Falanga, Rod, DOH 170 Reputation points
0 answers

Can we set custom labels defined through Microsoft Information Protection on emails via Graph API?

I am working on integrating Microsoft Information Protection (MIP) with an email system. Specifically, I want to know if it's possible to apply custom sensitivity labels, which are defined through MIP, to emails using the Microsoft Graph API. Here are…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,526 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,882 questions
asked 2024-09-18T15:09:54.2+00:00
Dhananjay Siwach 21 Reputation points
0 answers

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…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,526 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,882 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,459 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
331 questions
asked 2024-06-06T17:08:51.2033333+00:00
Bruno Bispo 0 Reputation points
commented 2024-09-18T08:30:23.8733333+00:00
Zeb Spalding 0 Reputation points
1 answer

How to build post request to create the nested folder on site using updated graph api version 5.56.0.

I am try to create the POST request in c# using graph api version 5.56.0 but not able to create. I have try like var graphClient = GetGraphServiceClient(); var result = …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,526 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,882 questions
asked 2024-09-12T06:12:58.0533333+00:00
Ritu Yadav 0 Reputation points
edited the question 2024-09-18T04:20:34.66+00:00
Jack J Jun 24,491 Reputation points Microsoft Vendor
2 answers

Using IDENTITY_INSERT with FK_ChildTable_ParentTable?

Hello, Wrapping SaveChanges with ON and OFF works fine with individual tables. But not in case of a parent-child relationship where a foreign key exists. Microsoft.Data.SqlClient.SqlException (0x80131904): Cannot insert explicit value for identity column…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
736 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,526 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,690 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,858 questions
asked 2024-09-16T22:33:43.8366667+00:00
Joyce 80 Reputation points
answered 2024-09-17T21:20:25.1766667+00:00
Erland Sommarskog 110.4K Reputation points MVP
1 answer One of the answers was accepted by the question author.

Controllers do not appear in Visual Studio 2022

I have a project I created with ASP.Net Core on Visual Studio 2022. I also save my project on Github. When I want to add a Controller to my project content, the options do not appear and it is not available in NuGet Package. What can I do about this?

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,526 questions
asked 2024-09-17T18:31:59.8166667+00:00
kübra artı 20 Reputation points
commented 2024-09-17T19:54:55.5666667+00:00
kübra artı 20 Reputation points
1 answer

Azure load testing with JMX Script files

HI , i am working on load testing for the .net core mvc website . I am using JMeter tool to generate the JMX script when i integrate with Azure load test with script file ,i am able to run the test successfully for the login page. when i tried…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,808 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,526 questions
Azure Load Testing
Azure Load Testing
An Azure service that enables developers and testers to generate insights on how to improve the performance, scalability, and capacity usage of their application
57 questions
asked 2024-09-17T12:57:17.63+00:00
Natarajan, Srikanth 20 Reputation points
answered 2024-09-17T18:25:28.38+00:00
Bruce (SqlWork.com) 64,486 Reputation points
1 answer One of the answers was accepted by the question author.

Why am I getting this Content Policy error?

Hi all; I have added the following to my Blazor Interactive Server app using NWebSec: app.UseHsts(options => options.MaxAge(days: 30)); app.UseXContentTypeOptions(); app.UseXXssProtection(options =>…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,526 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,559 questions
Azure Maps
Azure Maps
An Azure service that provides geospatial APIs to add maps, spatial analytics, and mobility solutions to apps.
703 questions
asked 2024-09-15T14:37:02.18+00:00
David Thielen 3,036 Reputation points
commented 2024-09-17T15:22:16.62+00:00
David Thielen 3,036 Reputation points
1 answer One of the answers was accepted by the question author.

Strict Transport Security header missed in API response

Hi Team, We are using the .Net core 8.0(long term support version) for our .Net Core services , we enabled the HSTS at service level by using the // HSTS Security Headers services.AddHsts(options => { options.Preload =…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,526 questions
asked 2024-08-14T17:15:35.89+00:00
Kumar, Vipin [ext] 20 Reputation points
commented 2024-09-17T13:59:12.93+00:00
Michael Taylor 53,971 Reputation points
3 answers One of the answers was accepted by the question author.

Is Using web.config File Standard for ASP.NET Core 8 Hosting on Azure App Service?

Hello Azure Community, I’m currently working with an ASP.NET Core 8 application hosted on Azure App Service. In previous versions, especially with .NET Framework applications, the web.config file was commonly used for IIS-specific configurations. I’ve…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,808 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,526 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,679 questions
asked 2024-09-10T09:12:39.8566667+00:00
Kirankumar Bharsadiya 40 Reputation points
accepted 2024-09-17T11:39:20.53+00:00
Kirankumar Bharsadiya 40 Reputation points
0 answers

Parallel request handling in .NET Framework v.4.7.2 and .NET 8 Issue ?

Following is the controller method for uploading product images. We are using Dropzone jquery for uploading products from client side. It sends 2 parallel requests to server at once if uploaded multiple images simultaneously. In .NET Framework public…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,808 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,526 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,459 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,679 questions
asked 2024-09-12T12:50:30.16+00:00
Kirankumar Bharsadiya 40 Reputation points
commented 2024-09-17T06:24:04.4666667+00:00
Jerry Fu - MSFT 666 Reputation points Microsoft Vendor
0 answers

AuthenticationFailureException: The oauth state was missing or invalid.

I'm getting the below error while accessing the web URL. An unhandled exception occurred while processing the request. AuthenticationFailureException: The oauth state was missing or invalid. Unknown location AuthenticationFailureException: An error was…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,526 questions
asked 2024-09-16T10:21:09.3933333+00:00
Veluri, Sateesh 0 Reputation points
commented 2024-09-16T12:38:39.31+00:00
Tiny Wang-MSFT 2,641 Reputation points Microsoft Vendor