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…
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 =…
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 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…
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…
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…
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.…
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 =…
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…
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…
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…
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 = …
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…
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?
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…
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 =>…
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 =…
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…
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…
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…