Content
How to access azure keyvault through on-premise API using service principal and secret?
I'm trying to figure out how to access secrets in azure keyvault using an on-premise .Net Core 3.1 API. The authentication method is to use service principal and the client secret to access key vault. I'm following this tutorial from…


why invoking a multi-targeting library doesn`t work as expected?
I`m currently learning how to create multi-targeting library with dotnet. I created a multi-targeting library in .net6 and .net 7. However, when I calling the method in this library, the output doesn`t work as my expectation. excution command: in…


System.InvalidOperationException: 'Invalid operation. The connection is closed.'
hello All, I am getting this error when calling a small function. I am calling this function twice. Below is my code: public async Task<EmployeeInfo?> GetEmployeeByEmployeeNumber(string employeeId) { List<int> emplyoeeInfoId =…


Xamarin.Forms Speakerphone Stop Activating Suddenly on Android 10
I have App that has been working for years on Android 10, 11, 12 to Turn On/Off SpeakerPhone for Inbound and Outbound calls, but now it works sometimes on Inbound calls but never on Outbound calls. Here is a simple BroadcastReciever and…


Xamarin.Form make OutBound Call with SpeakerPhoneOn
It use to be that AudioManager allowed to turn SpeakerPhone On and Off during InBound and OutBound Call. I have posted several question for Android 10-13 with Xamarin each of which have fallen on deaf ears. WHY? Could it'd be that Google has sabotage the…


How to call the server map path filename that generated randomly
This is a C# code for a Web Form page named "upload.aspx" which allows the user to upload a PDF file and store it in the server. The file uploaded must be a PDF file, and all the text boxes must be filled before submission. The file name is…
RemoteCertificateNameMismatch, RemoteCertificateChainErrors with HttpClient
Hello everyone and thanks for the help in advance. I am refactoring code that previously used WebClient (now deprecated) to HttpClient. The page connects with to a device using a self-signed certificate with an internal IP address for the Uri. …
How do I get VS Installer to transform appsetting.json file as per SlowCheetah file transformations in an .net6 desktop app?
I am working with a C# Windows Forms App .NET 6.0. We have several different environments (dev, qat, etc) and I have created SlowCheetah transform files for each of them. When I compile in the various environments, the appsettings.json file which is…


Blazor Server: Cannot access a disposed object.
In a Blazor Server application, I am trying to query the database (via EF) on a timer and load data if there is an update. I am using a new dbcontext object each time so I am confused why it is trying to access something that is disposed of. Error…


IIS 10, redirect http and www to https
I have a website with an SSL certificate for https://a.domain.com. I am using IIS 10 to host the application running asp.net. I currently have the external DNS routing correctly for http, https and www. When type in http://a.domain.com and…
Building docker containers from Official .NET SDK images for ARM64 does not work
Good evening, Context I am currently trying to have a Blazor application run from a Raspberry Pi. I have to create pipelines so that when the devs push their code to a GitHub repo, it is turned into a Docker image that gets pushed to Docker Hub. For now…


Process.Start does not work anymore
I have a simple code that used to work, but it does not work anymore. Process.Start("Some Website Address"); Also, the code below works: Process.Start(@"C:\Program Files\Google\Chrome\Application\chrome.exe", "Some Website…


add one to one and one to many relationship
Hi So a little weird but im trying to add a one to one and one to many relatioship between two entites lets say i have two entities 1 is branch 2 is AppUser now a branch can have a app user as the branch admin(done through roles not the elephant in the…


How to convert xml to style so that browser can render html from xml when using RSS
I have downloaded a app called MessageBoard and trying to configure RSS Feed to output serialised data to browser. The result display a error message with code written in xml format. This XML file does not appear to have any style information associated…


Get network category name (private/public/domain) from WPF with C# (.NET 7)
In PowerShell I can use Get-NetConnectionProfile to get the NetworkCategory (private/public/domain). How can I do this from C# from a WPF app. I can see there are some examples using NetworkInformation.GetConnectionProfiles(); but that appears to be for…


Enable Hyper-V on the remote Windows Server for Android Emulator?
We have two questions about Android Development on Windows: 1. We need to enable Hyper-V on a rented Windows server (remote server) so that we can start Android Emulator on it in an accelerated way. Unfortunately, we are not successful in setting up…


What is the limit of int?
Hi all. Looks like there's something I don't know... Net SDK 6.0.405, ASP Net Core 6.0.13. But what is the real limit? https://learn.microsoft.com/ru-ru/dotnet/csharp/language-reference/builtin-types/integral-numeric-types I use: int sqr = number *…


C# AsyncWaitHandle.WaitOne - Socket
Hello, Why doesn't the connection attempt wait 15 seconds? How can I achieve that the client gets up to 15 seconds for a connection? Socket or TcpClient. Thanks for your help! //Create IP address and port number; System.Net.IPAddress ip =…


Max size of System.IO.MemoryStream
Im trying to fetch a .bak file of 3GB size and upload to my blob storage using the SSH.NET package. I get an System.IO.IOException: stream was too long error! I cant find the max size of handeled streams for the System.IO.MemoryStream anywhere. Do…


EF Core 7 not using my compound keys and throws error
Banging my head on this one. I'm trying to upgrade to Entity Framework Core 7. My class has a YearTerm and a CourseId. I can't get EF to use my key annotations or fluent API to identify my keys. I've tried the line below as in the Microsoft documents.…