Content
winget upgrade command error
I keep getting the following error message when try to use winget ugprade trying researching the error but no luck : "Failed when searching source: winget An unexpected error occurred while executing the command: 0x8a15000f : Data required by the…


Microsoft.mshtml throws exception in platform targert x64 but works fine in x86 in windows 10 machine
I was trying to read the html elements using Microsoft.mshtml.dll and this is working fine when the project platform target is x86. Its able to extract the html elements, but when I tried to change the platform target as x64 its getting me exception as…


MSMQ in .NET 6
In.NET 6 (C# 10), I'm creating a console/worker service. In order to store and retrieve messages, I intend to use Microsoft Message Queuing. Like when one service queues up a message and another service retrieves it from the queue. Recently, I read that…


How to fix error in visual studio 2019
The code .DataSource = ds.Tables[0]; doesn't work for me. What might be the error?? In Microsoft vs 2019


how to get parameter name in c#?
public string BuildParameter(object[] para) { var parameters = ""; for (var i = 0; i < para.Length; i++) { if (para[i] != null) { …
Authentication failed because the remote party sent a TLS alert: 'HandshakeFailure'
I have a .NET Console 6 to access API data. The application works on my desktop (Windows 10) but an error "System.Net.Http.HttpRequestException: The SSL connection could not be established" is thrown when running the application on Windows…


How to fix c++ Compiler Error C2483 in managed code
And I also defined unmanaged
what is `LPSERVICE_MAIN_FUNCTIONA ` in .net?
I want to use c++ func in .net there is a parameter LPSERVICE_MAIN_FUNCTIONA what is it in .net?


Show/Hide Console or HowTo Write to Console in a Windows Application in .NET 5.0
Hi There I plan to make a mixed application, means, the user can start them to open a black console window or to open it with a WPF-GUI. The user can select with a start option like -console or -window. Thus I created a WPF-application and set the…


Portability analyzer tool reports not compatible for Array.Reverse example but Microsoft API documentation has it in the examples
I have created .NET core 2.0 project and added the below code int nMonths = DateTimeFormatInfo.CurrentInfo.Calendar.GetMonthsInYear(DateTime.Now.Year); int[][] months = new int[nMonths][]; Array.Reverse(months); (complete code is…


how to use ServiceBase in .net core 3.1?
can not use ServiceBase in .netcore 3.1 right? I want to create windows services in .net core 3.1 how to do it?


Incorrect Console display, although the code is good
Hello, my first question here, but got a really strange error. Asked my teacher but he was surprised too, and could not repeat this. So I have a code with no errors, works fine on other computers, but mine almost always us with an incorrect…


Unable to compile .net 6.0 projects in VS 2022
I am unable to compile .net 6.0 projects in VS 2022 (version 17.4.3). I see error message that - MSB3971 The reference assemblies for ".NETFramework,Version=v6.0" were not found. You might be using an older .NET SDK to target .NET 5.0 or…


Extender Setup Installation Stuck
Installation of Linksys Extender Setup stuck.?


Adding distinct value to each CSV file given my code
Hello. I have the following code which seperates my Records.CSV files to two different CSV files based on COMPID (-> a key given in a dictionary I created): (the first 3 files): records -> sepereated into two above : anyways, I…


How can we be sure that the number of iterations of commands in "Parallel.ForEach" matches the number of iterations that were set for it?
Hi guys, In my article, I want to compare the speed of sequential processing to parallel processing in various conditions, so in one example, I want to convert the following sequential command to parallel, but after converting it to parallel, it…


How can we be sure that the number of iterations of commands in "Parallel.For" matches the number of iterations that were set for it?
Hi guys, In my article, I want to compare the speed of sequential processing to parallel processing in various conditions, so in one example, I want to convert the following sequential command to parallel, but after converting it to parallel, it seems…


How to create async thread?
public async Task Update() { //code. } how to run it in thread? I can not use like this: var thread =new Thread(Update); it must be void.


Modifying a key to a dictionary and writing it back to file
I have a text file that's read into a dictionary using a .net 6.0 console app. What's the best solution for modifying one or more of the keys, write the dictionary back to the original file. Example: Current Text read into a dictionary …


how to get the assembly code of the code?
I want to get the assembly code of the code how to do it using .net? If I have one code: int i = 10; how to get its assembly code mov eax 10; ret;

