Incorrect assessment result for Develop an ASP.NET Core web app that consumes an API
I attempted the assessment and successfully completed all the tasks. I am very sure that my result is calculated incorrectly. The result says I failed to Interact with an API which does not make any sense as I would not be able to proceed to other…
Sharing Authentication Cookies in ASP.NET Upgrade Scenarios Migrating ASP.NET to ASP.NETCore
I have web application in .net framework 4.7.2. Now I am upgrading it to .net core 6. I want to share user authentication from old app to new .net core 6 app. But I am not able to access claims data in new .net core 6 upgraded application using…
How to display ASP.NET Core Pages error messages thrown by the framework
In my ASP.NET application, when a file upload exceeds the default allowed size limit by ASP.NET, instead of displaying an error message, the application shows a blank page. How can I configure my application to properly handle and display error messages,…
Want to use .net 6 in Visual Studio 2022 maui
I learned that .net 8 is not going to be supported in IOS so I want to start using .net 6 in Visual Studio 2022 Maui. I can't use .net 6 in visual studio because it's not supported anymore. I downloaded .net 6 manually but my .net version is stuck at…
How to fix 100 seconds Grpc HTTP client timeout for Durable Task Client
We are encountering an issue with GRPC HTTP timeouts being set to 100 seconds in our Azure Durable Function orchestrators. Our orchestrations often take longer than 100 seconds to complete, and we are having trouble changing the timeout duration to…
Error when scaffolding in ASP.NET Core MVC
Hello! I have an error whenever I try to scaffold a new scaffold element: It says: "Error An error occurred while running the selected code generator: "Exception of type 'System.InvalidOperationException' was thrown." This is a…
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…
How to send Mail using azure Entra Id User tenant mail in .NET core programmatically ?
Hi, I have an azure Entra ID Subscription where I have created user and the email with my domain, For example (ABC@abcemi.com) and I tried to send mail programmatically. Here are the steps that I have followed to Send Mail via .NET core code: - …
ASP.NET Core JWT Authentication Returning Unauthorized(invalid-token 401) for Authenticated Requests in Controller Actions
Hi everyone, I'm encountering an issue with JWT authentication in my ASP.NET Core 8.0 application. While the token generation and authentication seem to work correctly in my AuthenticationController, any requests to other controllers requiring…
WsFederation authneitcaton in .net 8
We were using .Net 7 WSFederation successfully. We have now moved to .Net 8 and the authentication has stopped working. Can anybody advise what has changed? We are using WsFederation 8.0.7 and Microsoft.IdentityModel.Tokene 8.0.0. Our code is :- …
Why my ASP.NET razor page app cannot access a specific endpoint?
I have an issue with my ASP.NET app where it cannot access a specific endpoint. It throws a 502 error in Azure and a request timed out on my local machine. The endpoint I want to access is the products endpoint. I found that…
How to use EF Core when two properties in the Principle entity point to the same attribute in the dependent entity?
I have 2 Model classes: Department.cs cs public class Department { public string DepartmentId { get; set; } public string Name { get; set; } public string Description { get; set; } [ForeignKey("FacultyId")] public…
ASP.NET Core Razor Pages - checkbox asp-for
Hello, New user here, a beginner trying to understand how checkbox asp-for works. In this sample application, I am trying to toggle a checkbox on post by a button, but failing. Having googled, read tutorials and attempted variations, I am still…
How and how to return to the main page without losing page data
The page is made with Asp.Net Core Razor Page, In this page >> MAINPAGE (Please see the picture) 1- Populate data and filling dropdown1 Here are the codes: public SelectList TermList { get; set; } public SelectList CourseList { get; set; } …
Unable to connect Azure SignalR in Dafault mode with .Ner Core app
I have a service made with .Net Core 8, which are Web API with a SignalR Hub. This service will scale horizontally. For this reason I intend to use the Azure SignalR service in Default mode to act as a proxy between the different instances of my…
Microsoft Cognitive Services Voise to Text How to Recognise base64string
I'm using Microsoft Cognitive Services Voise to Text in my Asp.Net application. How can I pass base64string from my c# controller to SpeechRecognizer? Thank you!
How to search a jquery datatable properly from a SQL stored procedure
Good day I'm doing a sorting, search and pagination to a jquery datatable via a stored procedure ALTER PROCEDURE [dbo].[sp_ProgressreportView] ( @SearchValue NVARCHAR(255)=NULL , @PageNo INT = 1, @PageSize INT = 10, @SortColumn INT = 0, …
How to bypass account selection when application logs out in azure app service using asp.net core
We have implemented the application logging out feature when user idle time gets over. However, on logging out we are getting account selection popup window which we want bypass and application logs out itself completely. We are using angular and…
How to upload file in Azure Blob Storage using c# having file name with accent (à, è, ù) in it.
I am trying to upload a fle with file name having some accent for example "Rapport Draft à relire". The UploadAsync method of BloadClient class start giving error as the http request cannot have non ASCII characters . Here we can see the name…