How Can I Register and Manage Services in a Large C# Project?
Hello I will start developing a new C# WPF project. I need your information on something while planning. I will use the MVVM pattern in the project. I will create a large number of services to perform some tasks and use them in the relevant classes. I am…
Issue related to Debian/Linux OS
Hi, Is it right that we can run/execute VS C++/C# project within Debian/Linux OS?
Programatically turn on/off Japanese IME Kana/Romaji input mode
I am trying to programmatically turn on/off Japanese Kana/Romaji input mode. This is equivalent to the "Kana input" option in the IME input menu I have tried to use InputMethod.SetPreferredImeConversionMode but it can only sets the TextBox…
Allow only one call to web service method at a time
Hi all, I have an ASP.NET web service installed on IIS. I need to permit only one concurrent call to a specific web method? How can I achieve this? Can I use mutex? I don't have such in-depth knowledge of application pool, processes and threads... Thank…
How to Write a DependencyProperty for a TextBlock when it is a child element of a parent Button class in WPF C#?
Hi there, I want to make a Dependency Property for a Text Block and the functionality of this property is to apply a Scale Transformation on the Text Block but I am unable to do that Because it's a child element inside of a Button class. I have a…
Microsoft Fakes and real object constructor
I'm using .NET 4.8 and Microsoft Fakes to create Shim object for unit testing. This class (KRSampleManager) is using Lazy initialization to create an instance and implements IDisposable interface. namespace SampleManager { public class…
Blob and file transactions have significantly increased after upgrade to .Net 8 Isolated
Hi all, We have noticed a significant increase in blob and file transactions, and therefore significant cost increase, since upgrading our function app from .NET 6 In Process model to .NET 8 Isolated. Wondering if anyone has had a similar issue and…
search code does not execute (xaml page,pagemodel or MVVM )
I'm trying to add a search bar to my app, but can not get the code to execute. I've placed breakpoints in the pagemodel but they are tripped. Xaml: <SearchBar x:Name="searchBar" HorizontalOptions="Fill" …
How can I connect to Azure database from desktop application with non-static IP address?
Hello, I am working on a WPF desktop application. I created an Azure SQL database as a database. However, the connection constantly fails because the IP address changes constantly with the connection sentence I set through the application. What settings…
Razor core app connects to DB, but integration test fails with Microsoft.Data.SqlClient.SqlException
I have an app that I've been writing and its working well. When I introduced an integration test, its unable to connect to the DB using the exact same connection string. Microsoft.Data.SqlClient.SqlException: 'A network-related or instance-specific…
Try to delete all file coming with filesystemwacther and delete all file created by user.
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Diagnostics; using System.Drawing; using System.IO; using System.Linq; using System.Text; using System.Threading; using…
Why can't I use some modifier in method? C#
Hello, Why can't I use const for a string array and read-only for an integer inside a method? namespace ConsoleApp1 { internal class Program { static void Main(string[] args) { } static void Summary() …
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…
T4 text templating in .NET Core and above
After some testing, it looks like the TextTemplating library that is part of VisualStudio (Microsoft.VisualStudio.TextTemplating.15.0.dll) can't be used in the newer "dotnet" command line toolchain as it depends on the WPF assembly…
unable to upgrade my subscription azure says 'You are not eligible for upgrade of your Azure account'
I recently migrated my database and .NET Core API application to Azure. They gave me $200 in free credits, but all of a sudden, my application stopped working. When I checked, I received an email asking me to upgrade my subscription. However, when I try…
MediaStreamSource is not applying Bitrate Assigned to Media Encoding Profile
I am Using Media Composition To Preview Video and to Generate Stream I pass a MediaEncoding Profile wherein video Container I am assigning the bitrate that has to Apply when previewing but it's not working. MediaEncodingProfile profile =…
File change to readonly
Hi, i load files to our website. When i open one of the file during the loading.I get the file caught by another process.Does making the files as readonly will solved the problem. If not can you give other suggestion. How to set file to readonly and what…
JAWS or windows narrator not working/announcing localized description of enum bind to combo box for wpf application
Hi, I am using JAWS screen reader / windows narrator on wpf dialog for wpf application. But reader does not says/announce/speaks about description of enum bound to combobox in WPF c# application. Screen reader speaks/announce enumerator rather than…
rdlc files donot compile or validate in VS 2022
I am trying to upgrade and compile a project in VS 2022 with some rdlc files, it does not show any errors when we try to build or rebuild. It was working on VS2013 before. It showed any compile errors in the files and does not complete the build until…
azure function servicebustrigger keeps getting (ServiceTimeout)
hi, We created an isolated function, locally it works but after deploying to azure it does not. The network on ServiceBus and Function are public as to eliminate any network problems. looking into kudu logs we see: Message processing error…