How to check if an audio file is being played by programs like video players or audio players using C# as console-based app?
I want to check if an audio file is being played by audio or video player programs or by other programs. Since I don't have any knowledge or somehow solid knowledge about how to do it, I hope, you all(Microsoft Q&A community) will help me to do…
How to implement h.264 codec into screen recorder C# GUI app which records the full screen and also the system sound of Windows OS?
Here is my project on github: https://github.com/RahmatullohIsmoilov/ScreenAudioRecorder I want to record the full screen and at the same time the system sound of Windows OS with possible in less MB size :) And sometimes, I have some problems with…
How to maintain file upload values in session while editing and updating Gridview
I have developed and discussed a lot about the file upload and we were maintaining the upload file in session and data table I used session for time being for gridview footer and emptydata template. i want the same logic have to be implement for…
How to reproduce the UI control from mock-up using wpf?
Hi Team I have a mock-up and want to reproduce it using wpf controls given by Microsoft forms in windows. Below is my current code and need some adjustment, as well screen shot of the mock-up want to produce using wpf ui controls. <UserControl…
.Net 8 - HttpClient - Kerberos Auth - Authentication validation failed with error - InvalidToken.
We have an existing C# application in firm in .Net 6. This app consumes rest api exposed by another system within the firm (sso / kerberos). Its a simple GET call with Http Client. We upgraded the solution to .Net 8 and started facing Authentication…
How to add a different CSS to a razor page in Blazor WASM?
I am working on a Blazor WASM e-commerce application using the .NET 6 old version with a default template. I want to add a new razor page with a different look while keeping the old ones in the project. How can I achieve this? Specifically, I want to add…
How can C# be utilized to seamlessly integrate artificial intelligence algorithms into a web-based platform, optimizing user experience and enhancing system performance?
In the realm of software development, particularly in web-based applications, there's a growing demand for intelligent systems that adapt to user behavior and optimize performance. Considering the versatility of C# in various domains, how can developers…
How to replace OperationContext in new V12 SDK Azure.Storage.Blobs
I'm switching from Microsoft.WindowsAzure.Storage to Azure.Storage.Blobs. In the former versions I could log retries, this seems to be missing in the new SDK. I used OperationContext for this: var context = new OperationContext(); …
System.Net.Http dll not loading issue in .Net Framework 4.8 project
Hi Team, I have a ClassLibrary 1 project targeting .Net Framework 4.6 refering "System.Net.Http" of dll version 4.1.1.3 ClassLibrary 2 project targeting .Net Framework 4.6 refering "System.Net.Http" of dll version 4.1.1.3 WPF…
Mitigation for Dll hijacking
Hello Team, I found dll injection in c#, .net and c++thick client applications. But to perform dll here I needed admin access. in this case I had admin access. So what will be the standard mitigation to prevent dll injection after even get the admin…
How can I set a control/element to full screen in WinUI3
I'm using MediaPlayerElement to play video, but there is no full screen button in the MediaTransportControls(but it does exist in UWP). So I think, maybe I can set the MediaPlayerElement or it's parent element to full screen. I tried the ZIndex and…
How can I trigger a method from the OrderConfirmation page in Blazor WASM?
Hi, I have a Blazor WASM Client e-commerce application where I'm showing cart counts in the NavMenu. I'm trying to call the GetCartCount() method from the OrderConfirmation razor page after payment has been completed to make the cart count zero, but I'm…
How to build screen recorder Winform GUI app which also records the sound of system at the same time
using System; using System.Diagnostics; using System.Drawing; using System.Windows.Forms; using NAudio.Wave; using SharpAvi; using SharpAvi.Codecs; using SharpAvi.Output; namespace ScreenAudioRecorder { public partial class Form1 : Form { …
How to fix build errors that I am getting currently when I convert my .NET MAUI [ sdk 6 version] to .NET 8 version?
I am currently in a process of converting my MAUI project which is in .NET 6 version to .NET 8 version. I have used Microsoft's .NET upgrade assistant extension tool for the same. After successful upgrade, when I try to build/rebuild my project, I am…
c# failed to invoke the openai API interface on Azure
I am using the official example to access the openai interface times the following error, how can I solve, increase the number of repetition is still the same public class OpenaiApi { public async Task
Azure Function app timeout in 4 minutes (230 seconds)
I am getting 500 Timeout issue while running function app for more than 4 minutes (230 seconds). It was working for 30 minutes when we were using .net 6 version. Suddenly we started getting 500 timeout when we updated function app to .net 8 version.
privacy concerns when working with sensitive documents using Vision API
Hi: I am trying to extract texts from some sensitive image pdf documents using the Vision API. Any suggestions on how to ensure non-disclosure of these documents when processing them on Azure. Thank you.
When I try to download Microsoft Entra Connect from the provided link, it still shows as Azure AD Connect, and I want to ensure it's the correct download since the documentation refers to Entra Connect.
Hello, When I try to download the latest Microsoft Entra Connect, it still shows up as Azure AD Connect. I just want to make sure I am not downloading the wrong one since Microsoft documentation keeps referring to Entra Connect. Here is the link:…
REST interface, server for GET,PUT,POST,DELETE
Hello, My goal is to control a Rest Server from a WPF C# desktop app. Get, Push, Pop, Delete should be tested. The server does not require extensive logic, only test data. Later, the customer REST server is connected. How can I achieve this? How should I…
How can I save the original state of my Model and its XAML bindings in C# in a Variable?
I need to save the original state of my viewmodel and XAML bindings in C# when a View is originally loaded, so that I can revert back to the original Model property values if the user chooses to cancel their changes. I attempted to use the code below,…