does razor pages support aot?
razor pages support AOT?
How to mitigates Cross-Site Scripting (XSS) Attacks using msal-browser and msal-angular on production?
Implementing a login solution using the Microsoft Identity Provider with OpenID Connect (OIDC). Is it safe to use the msal-browser and msal-angular libraries in an Angular application on production? How can Cross-Site Scripting (XSS) Attacks be…
Versioned Artifacts for .NET Framework and .NET Core application(s)
Hi Microsoft, I am trying to create versioned artifacts for dotnet applications (.NET Framework & .NET Core) using msbuild and dotnet CLI commands. I ran it for msbuild while implementing CI/CD pipeline using GitHub Actions following Microsoft's…
.Net 6 Ubuntu jammy 22.04 base image upgrade. GSSAPI NTLM error
We are planning to upgrade from .Net 6 to .Net 8 version. To prepare for that upgrade we first upgraded from ubuntu 20.04 to ubuntu 22.04. We target ubuntu 22.04 version jammy tag with amd64 architecture. This is our base image in the Docker file and the…
How can i get current user groups from Azure AD using claims in dotnet core?
I have a dotnet core web application and this app authorisation is working based on azure AD. Question: How can i get all the groups name related to login user? do i have to make any changes in my azure app? I have already added this setting in…
MSBuild 16.4 MSB3644 Error .NET 8 Deployment Center Sync
I have 3 API projects repo'd in devops and hosted on windows 2016 servers (App Services) that were using the app service continuous deployment sync functionality. So far, everyday i have deployed small code changes to all three environments. One by one…
Azure DevOps Build pipeline failing at Publish step after upgraded to dot net 8
I am trying to upgrade my ASP.Net Core 2.2 project to Dot Net 8. We have ReactJS as a front end and using node 16.16.0 version which were working fine on dot net core 2.2 project. After project upgrade to dot net 8 it’s working fine on my local machine.…
how to pass data from child table to controller
I got stuck in a tricky problem. I can't find the solution anywhere. Clicking on the row of my datatable opens the child table. Checkboxes are attached to both parent table and child table. Clicking the DataTable checkbox(name="Selectall"…
Edit directly in Grid on WEB Page in Razor
I have a table that I populate in Razor pages using stored procedures. I populate table in a loop on the Razor pages. I want to put a button on the grid and when you click on the button you can edit the values directly in the Grid and Save it back to the…
How to ignore ETag checking and fix this error
I read from and write to blob content in Azure blob storage. File is being changed (new content is getting appended to the file) at the same time while it is being downloaded. I get error in the below stream.Read() line. Which I believe is because of…
On Click of hyperlink Teams chat opening
Hello Team I am working on a requirement which on a click of hyperlink. I am using Microsoft Razor Microsoft Teams should open and a particular person chat should open, message should contain a message along with a div ready to be delivered(Waiting for…
What is the max timeout for an API HTTP request in an Azure App Service Web App?
I have a NET 6 API deployed in a Web App in an Linux App Service plan with a P0v3 pricing plan. I would like to know the maximum timeout of a HTTP response because I have an endpoint whose execution time is currently of 20 minutes and would like to know…
how to render razor page to another based on provide logic to login
<MudPaper Class="px-6 pb-8 pt-3 rounded-t-0"> @if (IsPhoneNumberPresent) { <RegistrationForm LoginModel="@(new OtpRegisterVm { Username = LoginPhoneNumber, CountryCode = CountryCode })" /> } else { …
RDLC reports on .NET Core 8
Hi at all, I'm using a rdlc report inside a .net core 8 app but i'm getting this error {"An error occurred during local report processing.;The definition of the report 'report path inside the project' is invalid.\r\nAn unexpected error occurred in…
Why does daemon app require user sign-in in API service principal?
I am following the code sample here: https://github.com/Azure-Samples/active-directory-dotnetcore-daemon-v2/tree/master/2-Call-OwnApi#register-the-client-app-daemon-console I am not using the sample code API, instead I have a simple test API. Both API…
Cannot access a disposed object when Upload file in Background Service
This is the error I am facing: Error occurred executing workItem. System.ObjectDisposedException: Cannot access a disposed object. Object name: 'System.String'. at…
How can pass from Datatable Data To Controller IActionResult
I want to insert some data from my datatable into another table. The checked data in my datatable is the result of the controller's action through I ajax I want to send array as parameter. Thanks in advance for your help. var table =…
Docker changes for Building .Net 8 application targeting Ubuntu 20.0.4 for amd64
Hi, We are upgrading from .Net 6 to .Net 8. I am trying to update the docker file for building the .Net application and specify .Net 8 version and target Ubuntu 20.0.4 version with amd64 architecture. Here is the code snippet at the high level FROM…
C# ASP.NET MVC: develop app with running tasks and ASP.NET MVC web UI to control it
There's a url from which I need to run api get data in JSON format and store to MS-Sql Server. This project will run mostly on server(s). We also need an application to provide an interface so that whenever needed user can select which data to be stored…
missing -f flag that indicates the name of the Dockerfile to use
Missing -f flag in example that indicates the name of the Dockerfile to use for "Customize a Docker image to run your own web app" --> https://learn.microsoft.com/en-us/training/modules/intro-to-containers/4-create-custom-docker-image