show financial year from date and to date
Hello I have two requriements 1) Current financial year Is Apr-2023 TO Mar-2024 In asp.net dropdownlist it has to show previous 3 years financial format as below for example on pageload Apr-2023 TO Mar-2024 Apr-2022 TO Mar-2023 Apr-2021 TO Mar-2022 …
Dotnet Maui Release build is very slow, about 25 minutes
I am trying to build my app in release, but is very slow to complete...abount 25 minutes...the process freeze in the log commented bellow. What I can do to build mor faster and improve the time? MacOs 14 - Sonoma <PackageReference…
How to send complex objects from one Razor page to another
I am working on an ASP.NET Core 6.0 Identity project. I want to pass an ApplicationUser object to the LoginWith2fs.cshtml page from the Login.cshtml page. The following is my code: Code in Login page: return RedirectToPage("./LoginWith2fa",…
How to make System.Timers.Timer call async function synchronously when elapsed?
Hello! I am developing a telegram bot using .NET and I am having an issue. I have two timers that execute functions when elapsed. First timer re-posts a message (deletes a message and then posts identical copy, this is a workaround for the fact that…
MAUI apps with .NET 8 don't work on android
I'm trying to execute on android the demo app created by visual studio when you create a new MAUI .NET 8 project but I encountered different problems in debug and release mode. Visual Studio version : 17.9.5 When I try to run the app in debug it crashes…
MAUI .net 8 app can't get past splash screen on Android
Hi I am trying to run a new .net MAUI project on Android, it doesn't get past the splash screen and is stuck there. how to fix this?
Send email form Gmail account using C#
When sending an email using the followng code, I'm getting an error, I'm asking for your help. Authentication Required. Learn more at string adSoyad = txtAdSoyad.Text; string konu = "Koçaslanlar Web Konu başlığı"; string epostaAdresi =…
Reading and Writing Files on Android 13
I want to read and write files in internal storage on android 13, but I get an error. What is the best way to deal with this?
How to use <InputSelect> inside component with eventCallback
I am using Blazor Server , in the following code i Use <inputSelect > , the selection is getting passed to the parent component, but the element it self does not get updated for the selection @* Select Filter Property *@ @if (SelectionProperties !=…
Strange difference between using Azure OpenAI via the Playground studio and a simple C# .Net program
So I'm testing my Azure AI subscription. I'm running into a difference between the AI Studio (web site) and a simple .Net (C#) program that I find strange. I'm using the same AI deployment for both the Studio as my C# program. It is using…
Customize the close/minimize/maximize location
Hi, I tested n it not worked on this link: Can you please check with sample code in the end of in this link: https://github.com/dotnet/maui/issues/21007 I added this code in login page and MyRootPage and is not worked. // override the method of the page…
Best Practices for Two-Way Data Binding in Large .NET Applications
Hello Microsoft Q&A community, I’m working on a large-scale .NET application, and I’ve been using two-way data binding in my XAML views. However, I’ve heard that this approach can become problematic in large projects. I’d like to understand the best…
Deploying .NET 8 Docker images to Azure Container Instances
Hello, I'm having trouble to deploy an .NET 8 Web App Docker container image to an Azure Container Instance. This is my Dockerfile: FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base USER app WORKDIR /app EXPOSE 8080 EXPOSE 8081 FROM…
Visual studio installer project code signing issue
I've been trying to get my .NET core program signed (the executable and dlls) with Visual Studio. In the build directory everything works fine: the properties of the files show my digital signature. However when I use the Visual Studio Installer…
How to wait for a return value from executed JavaScript MAUI Android Threading
Hello all I want get "right Threading way" when I wait for a JavaScript's result inside android webview (unfortunately function EvaluateJavaScriptAsync doesn't work :-(, cause I have own handler – need both directions from and to Javascript-C#…
Performance Issue with CollectionView in .NET MAUI
Hello, I am experiencing slow performance issues with .NET MAUI's CollectionView on Android. I am using .NET 7 with VS 17.6.5 I suspect the issue may be related to the use of controls within CollectionView.ItemTemplate. Please help me find a…
Opening a Window Using Its Name
From my MainWindow I am trying to open another window knowing only its name. In my MainWindow ViewModel, I have: Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (lpClassName As String, lpWindowName As String) As…
Windows Insider SDK not working since 25936
I'm trying to build a simple .NET 6.0 app - Just install the 25936 insider preview SDK then create a blank WPF/.NET 6.0 app and add to the…
Solutions for .NET Interop Issues involving Sensitivity Labels?
We have code that is supposed to create an Excel document via .NET Interop, then save this workbook. The problem is, starting with Office 365 Build 2312, the sensitivity label functionality has changed, seemingly to accommodate increased restriction on…
Animation duration for RotateTransform not enforced?
Hello. I'm unable to get a simple rotation animation to work properly on a simple WPF application. I'm targeting .NET 8. Here's what I've done: Created a new WPF C# application using VS2022 Community. My MainWindow.xaml looks like the…