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…
WixProj output name
I have this wixproj, whose output file is an msi.How can I set the name of this MSI.I have tried using outputname tag but its not part of property group as per this - [http://schemas.microsoft.com/developer/msbuild/2003]
windows.opener() handling with WebView2
In the webform, I have used window.opener for opening a new window that acted as a dialog which required user input, and needed to pass information back to the main window. I am trying to embed this in winform using WebView2 control.The…
Graph API - Unable to restore messages in non-draft state during backup/restore implementation
We are implementing a backup/restore solution for Microsoft 365 messages using Graph API. During the restore process, we are experiencing a critical limitation where all restored messages are marked as drafts, regardless of their original state. …
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)…
WinUI3 TabView Binding Not Updating Correctly - Recycling Instances?
Is this a bug in TabView implementation? Or what could I be doing wrong? Summary: Binding seems to get out of sync when adding and removing tabs from tab TabView. Minimal Working Example that Demonstrates the Issue: Code for minimal working example…
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…
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 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…
Why does the onclick event not work, in my razor pages hosted blazor component, in .net 7.0?
I've used the following code in multiple blazor web assembly applications hosted on a razor pages page under .net 5.0 and .net 6.0 before now. An application I was forced to upgrade to .net 7.0 has rendered the onclick command completely useless What…
Create new event with location
Using this article: https://zcusa.951200.xyz/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 fix code throwing exception : Microsoft.Data.SqlClient.SqlException: 'Login failed for user '
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…
How to embed Power bi reports into Azure bot framework (chatbot) C#?
Hi Team, How to embed Power BI Tile or Dashboard into bot's response? Have found similar thread https://github.com/microsoft/BotFramework-WebChat/issues/2790but it's in JS. Do we have any similar solution in C# as well? Thanks, Naveen
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…
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 =…
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…
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…
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,…
Title: API Data Not Displayed in DataGridView - Need Help with C# Integration
Hello everyone, I’m working on a C# project where I’m trying to fetch fuel purchase data from the KeepTruckin API and display it in a DataGridView. While I can connect to the API successfully and receive a response (verified with raw JSON data in a…