Content
Azure multi tenant microservice architecture and many app registrations
Let's say I have a multi tentant microservice architecture fronted with an API gateway of which a client app calls to access the microservices behind. Let's say it's grown to a complex system that has 50 microservices all needing user…
Logout (delete Auth-Cookie) only possible via form!
I have a Blazor server application (see my post here: https://learn.microsoft.com/en-us/answers/questions/1164837/aspnet-authentication-works-but-value-for-user-ide). Now I have implemented a cookie authentication. This works very well via a login and…


Export data to excel in .NET Core
Hi All, I am developing an application in .NET Core with angular client. I have a scenario where user click on Download button and data from SQL Server will be exported to excel sheet in .NET Core WebAPI. The generated and downloaded sheet will…


404 issue to the file
Hi, Due to issue like What to adjust below? <body style="background-color: ???; background-image:url(beautiful_Currency0e.jpg);">


how to handle exception with customized error message in json format in webapi in c#
how to handle exception with customized error message in json format in webapi in c# also my webapi calling different one drive api like delete file , download file etc and my webapi return type like IActionResult and jsonstring Any body can help


How to fix canonical issues with WordPress on App Services
I need to redirect www.example.com to example.com. I have a custom domain with SSL, https enforced. Http requests are being redirected to https and working as expected. Where, or how, do I configure a redirect to get the www.example to redirect to…
How to System.BadImageFormatException (No string associated with token) error solved
Our Web Application build in .NET 4.8 and hosted as an azure app service throws this exception in some views. Here is the stack trace for one of these exceptions. We have run out of options to try certain things but it is stuck like that. We have tried…


.NET Core API Framework Warning
Hi All, I am developing an application using .NET Core with angular client. I am exporting the data to excel and generating the file in C# .NET Core. I am using a nuget package for the same. After installing the nuget package in the project I am getting…


unable to upload
unable to upload a large file in one drive by using the below code can any body tell what is wrong in the below code . Please help [HttpPost] [Route("Uploadlargefile")] public async Task<string>…


Downgrade ASP.NET Core app from .NET 6.0 to .NET Core 3.1
I have made an ASP.NET Core web application, using .NET 6.0. However, when I obtained a hosting server, I learnt that my hosting provider has installed .NET 5.0. As a result, I now have to downgrade my project from .NET 6.0 to a previous version.…
Visual Studio Community 2022 (64-bit) v17.4.4 not showing any compile time errors for MAUI project.
Hi, I am using Microsoft Visual Studio Community 2022 (64-bit) - Current Version 17.4.4 for my MAUI projects but is not showing any compile time errors . is it any plugin missing?
Loop through Controls in ScrollView and Get the Data
Hi, In below XAML: <ScrollView x:Name="ScrollViewDetails" Grid.Row="1"> <VerticalStackLayout> <VerticalStackLayout x:Name="StackLayoutPhones"> <BindableLayout.ItemTemplate> …


Get Contact details by Id
Hi, How can I get the Contact details by its Id? like this: var contact = await Microsoft.Maui.ApplicationModel.Communication.Contacts.Default.PickContactAsync("contact-id-here"); Thanks, Jassim


Datagridview Font When editing cell
I have not used the Datagridview before so have started a test Windows Forms app to learn about it. I notice that when I edit a cell the font size changes to something too small to read, is there a way to prevent this?


Breaking out large app into smaller apps.
Hi, I have a large mobile app that performs many different functions and want to try and break that out into smaller apps that do only a small portion of what the main app does. At the current time the work around I have just is a hard coded string…


How to show a loading prompt in view before the controller loaded the data?
With asp.net core 6.0 mvc It needs several seconds to load data in controller,before that ,how to show a loading promt in the view?


what's the render order when a user visit a page via browser?
.net core mvc route->action->chtml?


Web form issue
Hi, I get "undefined" unexpectedly to the column/field below, while there is the proper row value returned from the table. What is the reason? html += "<td >货币</td><td style='font-weight:…


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…
the taghelper do not rendered?
using Microsoft.AspNetCore.Razor.TagHelpers; namespace tag.Components { [HtmlTargetElement("pagination", TagStructure = TagStructure.WithoutEndTag)] public class PaginationTagHelper : TagHelper { …