a exception at writeline: ArgumentOutofRangeException:specified argument was out of range of valid values.
Write line to a file by file stream "streamwriter". Whenever the variable data changes, write a line.It may run abnormally after running for several hours.It may run whole a day without abnomal. The code is as follows: RecordRow dataRow =…
How to Add Record Count on Existing Code
What is easiest way to add Record count for this code: try { String connectionString = "Data Source=XPSSLOWPC;Initial Catalog=Movies;Integrated Security=True;"; using (SqlConnection connection = new(connectionString)) { …
Issues with Rotating ProgressBar for Vertical Orientation In WinUI App
Hi, I am working on a custom StepBar control, and the Horizontal orientation is functioning as expected. However, I am encountering issues when implementing the Vertical orientation. Since the ProgressBar control does not have an Orientation property,…
test return value after executing NavigateToAsync command
The following code works perfectly. but now I want to test the value returned in a global variable. (this is an inventory system with a multi column checklist page that calls and populates the infopagemodel when I tap an item/line , so that I can…
Close and then open a new tab page or window asks authentication
I am trying to embed a webform application in WinForm using Webview2 control. The new window opens in a tab page with webview2 child ( e.handled=true). But when destroying the child tab wm_destroy is not calling properly. so each time while open a new…
I want lunch a program at 12.00 pm toninght and now time is 10.50 PM,all about timer.How to configure that timer.
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace Timer_1 { public partial class…
Real-time Transcription in ACS Group video calls
have been working on implementing the Azure Communication Services (ACS) real-time transcription feature and followed the steps outlined in the:…
Unable to publish with fulltrustprocess and Multiple instances of UWP app
UWP experts , There are three components here. Main UWP app with multiple instances supported through package manifest - C# UWP FullTrustprocess that acts as the appserviceconnection server - C# .NET 8 WAPP Package that bundles UWP app and…
In Azure Web PubSub, How to receive messages in backend microservice for processing
Requirement: My clients are using simple WebSocket connection to send messages. I want to receive these messages inside my backend .NET 8 web api and process them further to send fine-tuned data to some distributed cache services. From documentation, I…
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…
c# binding datagrid wpf
Ciao A tutti, ho creato questo codice namespace WpfApplication6 { /// <summary> /// Logica di interazione per MainWindow.xaml /// </summary> public partial class MainWindow : Window { …
How to fix code throwing exception : Microsoft.Data.SqlClient.SqlException: 'Login failed for user '<token-identified principal>'. The server is not currently configured to accept this token.'
Hi All, I'm encountering an issue while trying to connect to an Azure SQL Database using Microsoft Entra Authentication (formerly Azure AD). I am using DefaultAzureCredential in my .NET application to authenticate and retrieve the access token, but…
Why can't I add Items to a ComboBox that is accessed using this.tableLayoutPanel1.GetControlFromPosition(i, j)
I have created ComboBox Controls when my Form Loads and I want to add Items to them later when the user makes specific selections but, I cannot use Items.Add because the compiler reports a Compiler Error CS1061 'Control' does not contain a definition for…
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…
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)…
How to convert outlook email (.msg) to pdf c# ?
Are there any free libraries using which I can convert outlook emails i.e. .msg files to pdf in my WPF c# app? I've tried using PDFSharp like below but the data is not showing properly at all. The email body contains tables and text and sometimes it may…
Cannot Connect Locally to when using Microsoft.CognitiveServices.Speech
Hello Everyone, I am trying to build a method that detects the language of the audio I provide it. My application translates audio but since we batch transcribe and also use a custom model, I cannot use languageIdentification. Therefore, I am trying to…
Create new event with location
Using this article: https://learn.microsoft.com/en-us/graph/api/resources/location?view=graph-rest-1.0 I'm trying to use graph api to create a new calendar event with location. For location, I'm putting a random string name in displayName, say…
How to query mssql to get weekly time interval from the first day the data was created for a period of 1 year
Hello, I am trying to write sql query to to get weekly time interval from the first day the data was created for a period of 1 year to select number of week of the current date for a particular user Id. Below is my mssql query. WITH WeeklyIntervals AS…
how to update version in apk maui application automatically?
Hi, i'm using .net maui 8 for Android , and i publish my application in a remote server and when i update my application automatically by comparing version in update.json file. I can't update version in my app. how to do that?