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",…
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…
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#…
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…
Upload & download an excel file from Onedrive using C# razor page
I am trying to upload & download an excel file to Onedrive using c# razor pages and have tried following code snippets, // Install Microsoft.Graph SDK // Install Microsoft.Identity.Client (MSAL) SDK // Authentication var…
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?
Single transaction, multiple service calls to Entity Framework updating database
Hi all; I have a case with a single database defined by a single Entity Framework DbContext. I have things set up where updating the database is via services. This separates things out nicely and makes it easy to mock the database for the bUnit (Blazor…
ClickOnce Publishing Issues-Cannot Copy Files
I keep getting this error when publishing files. It does not matter if its to a local directory or URL server. The project builds correctly, and I can run the application. I have administrator rights to all locations. I've tried to delete bin an obj…
Integrating RDLC reports in Blazor Web apps
Hello, Is it possible to call RDLC reports in a Blazor web app or use report viewer to load RDLC reports? I'm not seeing the reporting options in the latest framework. Could someone please share examples and resources for integrating RDLC reports with…
how to get imeid or device id in android in maui?
can I get the device Id or IMEID scene is there is many devices and I want to sign them and I have to write something in each device?
Getting 500 internal server error in IIS published site. Though it was working fine previouly.
Getting 500 internal server error in IIS published site. Though it was working fine previouly. HTTP Error 500.0 - Internal Server Error The page cannot be displayed because an internal server error has occurred. Most likely causes: •IIS…
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…