How to set a time limit for speech recognition in ACS?
I want to set a limit to the time a caller has to describe their problem after StartRecognizing has started. I tried to implement this using CancellationToken, but it didn't work, and CancelAllMediaOperations doesn't seem to be effective either. Here is…
How Can I Detect if the System Clock is Moved Forward or Backward in a C# WPF Application?
Hello, In my C# WPF desktop project, I want to detect if the system clock has been moved forward or backward. When such a change is detected, I would like to take specific actions. For example: Show a warning if the system clock is moved forward. Log an…
When i publish my project, files included with a nuget package are not copied
I have a project using a custom nuget package. The nuget package uses some dlls, added to the project with property "Copy to output directory" set to "Copy always". When I install the nuget package in the main project the dlls are…
[iOS] MAUI app crashing when calling function from external library in Release mode, but works in Debug mode
MAUI .NET 9, 9.0.21, targeting iOS and Android I'm observing the app crashing on iOS when running in Release mode build from TestFlight on physical device, but works when running in Debug mode in simulators. The app crashes when a particular method is…
Need help with a lottery program
I have to make a lottery program as a school project. I've done most of it but don't have any idea how to compare the user input to the computer-generated one. This is the code: using System; namespace gamblinf { class Program { public…
I want to lock the current HDMI port in C# WPF (.NET Framework)?
I want to lock the HDMI port. If a HDMI port is used for a monitor then if other HDMI port is used then i want to lock existing port. How to do so in C# WPF?
Using jscript.dll for COM Script Execution in C#
What are the steps to utilize "C:\Windows\System32\jscript.dll" for executing scripts with COM? I am looking for a sample code that demonstrates how to load the JScript DLL dynamically or by reflection, and how to utilize the methods or run…
Office Outlook Interop Issue
I recently started having an issue with our email reading utility after the December 2024 Outlook update. I can no longer read email body from a folder. VS 2022 keeps crashing giving generic access errors. Error Section Snippet: mi.EmailBodyText =…
How to get the assistant to use the vector store using Azure OpenAI: OpenAI Assistants client library for .NET
Hi, Seeking help getting the assistant to use the vector store using the library below: Azure OpenAI: OpenAI Assistants client library for .NET - version 1.0.0-beta.4 For some context: I've created a Vector store as well as an Assistant within Azure AI…
Facing issues for the mismatch definitions of some methods from SQLEditors.dll used in SSMS 21
I am trying to consume the SQLEditors.dll from SSMS 21 and SSMS20 in my C# code however getting the compilation issue due to incorrect format of library as error : D:\BuildAgentB\work\fb305f1670873990\VersionSpecific.CommonFiles\NewQueryWriter.cs(83,…
Unable to cast COM object of type 'Microsoft.Office.Interop.Excel.ApplicationClass'
Hi I've this C# application which opens excel file and updated another excel file. The application developed in Visual studio 2005 and Office 2016. I've recently uninstalled Office 2016 and installed Office 365. Since then " Unable to cast…
Unable to display alert after modal popup
I have an issue I am unable to solve. In this code: var popupPage = new myPopup(); var taskCompletionSource = new TaskCompletionSource<bool>(); // Set up an event to resolve the task when the modal is dismissed popupPage.Disappearing += (s, args)…
Button appearing above page content for all pages on iOS tablet - .NET MAUI
Hi, I have a .NET 8 MAUI app that I'm developing for Android and iOS. I have an issue where all of my pages are showing a blank space at the top with a button, but it's only doing that on iOS when on a tablet. My iPhone doesn't show it and neither does…
NPGSQL - Common Language Runtime detected an invalid program.
I have two servers with windows server 2019 and an a Simple API project developed with .NET 8. The project use Npgsql library at version 4.0.0. The configuration between servers are the same: same path same .NET hosting bundle same IIS…
How to Design Validation, Error Management, and Message Service in a Layered Architecture for a WPF Project?
Hello I am working on a WPF application using the MVVM pattern and performing validations through a centralized ValidationService that leverages FluentValidation. During the validation process, I need to check whether an ISBN already exists in the…
How to Enable Fullscreen for Console Applications in Windows 10 and Windows 11
It has been observed that Windows 10 and Windows 11 have different behaviors regarding fullscreen for console applications. Currently, a console application does not enter fullscreen mode as it did on Windows 10 with the code i used. CodeBlock: class…
I want to disable/enable usb and HDMI port whenever my c# wpf (.net Framework 4.7.2) app runs.
Online resources are not present for above queries. I want solution for both admin/non-admin user account. Please help to provide me the solution.
myFolder.CurrentView may return the wrong view
We are developing an Outlook add-in which modify the CurrentView of folders when switching folders in Outlook. However, we noticed a weird problem. We retrieved the CurrentView of a folder roughly by: … Outlook.Folder myFolder =…
ERROR INITIALIZECOMPONENT
Hello, good morning, I have been compiling a code in .Net Maui, I have added a SplashScreen and in the C# code of the content page in which the SplashScreen is stored, it gives me the CS0103 error with the InitializedComponent, here is part of the code…
How to Fix: Applications .exe Fail to Start by Kernelbase.dll error
Hi all, I have encountered an issue as follows: The exe application I developed, when used with Windows 10 for a while, cannot be opened anymore. When I checked the Event Viewer, I saw an Application Error with KERNELBASE.dll. The detailed error is as…