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…
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",…
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…
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 !=…
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…
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…
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…
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…
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…
When is the .net pace of change going to slow down, or the length of time to support a given .net version going to increase?
Now that .NET has begun to stabilize (and we're getting close to .NET 10), I'm finding that organizations are having a hard time keeping up with the release versions of .NET - 3 years isn't enough time for them to develop and place into production only…
What Is the Best Way to See Raw Data Stream Being Passed from SQL to .NET Application?
I am running some functions on application startup for my .NET application. This mostly involves running a bunch of scripts on my SQL database to ensure plans are cached. These queries are generated from EFCore-compiled queries. In doing this, I…
Blazor Web Assembly with Azure AAD and Custom authentication Login
I want to implement two authentication mechanism in my Blazor web assembly application (Azure AD and Custom Authentication). i.e. User can either login via Azure AD or he can go for Custom Authentication. When I register both Custom…
ASP.NET - xmlformatter
I have software that was developed for me. It is ASP.NET which I have no experience with thus the development. This was delivered a long while ago. I need to make changes and am struggling. This is a webservice with an api that you can call externally…