API response is missing but not middleware response updates
I was experimenting asp.net core (net9.0) custom middleware with below sample code. In API response I get the text written by middleware but the API response itself is missing. Any insights to help me understand on what is actually happening ? This is…
API response is missing but not middleware response updates
I was experimenting asp.net core (net9.0) custom middleware with below sample code. In API response I get the text written by middleware but the API response itself is missing. Any insights to help me understand on what is actually happening ? This is…
Default FlyoutMenu icon (hamburger icon) not shown in maui android after navigation, but works fine in windows
Default FlyoutMenu icon (hamburger icon) not shown in .net maui android after navigation, but works fine in windows. Trying to navigate from MainPage to HomePage using below code await Shell.Current.GoToAsync($"{nameof(HomePage)}"); …
Can debug new empty project in net 9 using VS code in Mac
Hi, I open new empty net 9 in maui in MAC and can't run it after build. What to do ? I got this error:
This version of Microsoft.MacCatalyst requires the MacCatalyst 18.2 SDK (shipped with Xcode 16.2).
Hi, I upgrade my app to.net 9 according to:MAUI Upgrade from NET 8 to NET 9 and got this error" This version of Microsoft.MacCatalyst requires the MacCatalyst 18.2 SDK (shipped with Xcode 16.2). Either upgrade Xcode to get the required header files…
How to fix this error "warn: Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionMiddleware[3] Failed to determine the https port for redirect."
Good evening , I am trying to build a simple web api using ASP.Net . The app has been showing the error like this after building it - warn: Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionMiddleware[3] Failed to determine the https port for…
How to fix SystemLoadExecption
Exception has occurred: CLR/System.TypeLoadException An unhandled exception of type 'System.TypeLoadException' occurred in Winappli.dll: 'Could not load type 'Microsoft.Toolkit.Uwp.Notifications.NotificationActivator' from assembly…
facing issue change SVG color using SkiaSharp
Previously, this functionality was working on .NET 8.0, but after updating from 8.0 to .90, it stopped working and is now causing an error. I've attached the project for your reference. …
How to create Excel file with Visual Studio 2022 and C#
I'm working with Visual Studio 2022, Project WPF C# with .Net 6.0 and Entity Framework Core. DataBase MS SQL Express.I have also a valid and active licence Microsoft Office 365. I try to Create an Excel File but I have different error msg (see…
Java.Lang.ClassNotFoundException Didn't find class "androidx.core.splashscreen.SplashScreen" on path: DexPathList
I get the following error in Activity1.cs in my Android project: protected override void OnCreate(Bundle bundle) { AndroidX.Core.SplashScreen.SplashScreen.InstallSplashScreen(this); Java.Lang.ClassNotFoundException Message=Didn't find class…
How to upload a file from my local computer to a Sharepoint folder
Hi, I´m using something like this: string userName = “nelson.soares@********.pt”; string password = “*********”; var securePassword = new SecureString(); foreach (char c in password) { securePassword.AppendChar(c); } using (var…
As per Official Documentation we can get Get Selected Fields ,but using solution(Provided by : https://learn.microsoft.com/en-us/graph/api/listitem-list?view=graph-rest-1.0&tabs=csharp) can not get desired output
I want to get below result [ { "@odata.etag": "\"65dba275-af1c-4ff4-b85b-4afde8046f07,10\"", "id": "11", "fields@odata.context":…
Maui app in mac using VS Code stop working
Hi, Maui app in mac using VS Code stop working. I got this error. Using .Net 8.
purpose of the services in building asp.net mvc app
builder.Services.AddScoped<IMyScopedService, MyScopedService>();
Can't get address or phone from Microsoft Login
Hi all; I have a Blazor Server app using the Identity Library. I have added the following code and it works for login: var microsoftClientId = configMgr.GetValue("Authentication:Microsoft:ClientId"); var microsoftClientSecret =…
Fix intermittent exceptions with an Azure function running as a .NET8 isolated worker process
I inherited an Azure function that has been running fine on .NET6 In-Process Model. I recently moved it to .NET8 Isolated Worker Model and I am seeing some Exceptions in my App Insights log. There are about 10k requests made per hour and only 10 of them…
MAC - change project reference from 8 to 9 using VS code
Hi, From my maui app I have two ProjectRefrences to 8 , how to change them to 9 ? Curret: <PropertyGroup> <TargetFramework>8.0.0</TargetFramework> <PropertyGroup>
Silent Printing in .NET MAUI App
In a .NET MAUI app, a PDF document is read into a Stream object for printing. The requirement is to restrict the user from selecting any printer, only allowing a predefined set of printers. Additionally, the user should not be able to modify the print…
How to get the current page number or check if PDF viewer is on the Last page of a PDF in WPF Webview2 control?
I am working on a WPF application where I use Webview2 to display PDF files. I rely on Edge's built in PDF rendering mechanism and am not using any external PDF libraries. I've successfully loaded the PDF using the following…
SQL Server 2022 install on Windows 10 fails with error that .NET is not installed, but it is installed and up to date
I have installed SQL Server 2022 Developer edition successfully on a Windows 10 and 11 virtual machine. The issue is that I cannot install it on a physical machine. During the install, I get the following fatal error. I have tried to install the latest…