Error scaffolding Identity Fails the second time after using CLI code generator
Hi I ran the code generator once to scaffold the login and register pages. Then I ran it again because I needed to scaffold the password page but it wouldn’t build and I got errors. I am using vs studio for Mac and the cli commands to scaffold pages. …
Read app.config values in .Net 6 console
Can somebody tell me how can I read my connection strings in ths app.config file in a .net 6 console <?xml version="1.0" encoding="utf-8" ?> <configuration> <connectionStrings> <add…
How to build with dotnet for linux-arm64 on a windows 11 x64 PC?
Hi, I have a C# source code (from Terraria/tModLoader (https://github.com/tModLoader/tModLoader/wiki/tModLoader-guide-for-contributors)) that is originally built for x86/x64 and I would like to compile it to linux-arm64. The project is originally set to…
![](https://techprofile.blob.core.windows.net/images/J_TYKjg7AEiX7AvF9jc5sA.png?8D8651)
Missing Package Management Console in Visual Studio 2022
Recently I installed the Visual Studio 2022 for Mac. The version is 17.3.6 (build 20). However, when I create a new .NET 6 web application, I can't find the Project Management Console at the bottom line. I refer to the website…
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…
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…
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
![](https://techprofile.blob.core.windows.net/images/_KR_hQAAAwAAAAAAAAAAAA.png?8D8440)
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) { …
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…
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…
![](https://techprofile.blob.core.windows.net/images/ZqYdX_8zbEC9qh3iZyHfLA.png?8DA472)
![](https://techprofile.blob.core.windows.net/images/ZqYdX_8zbEC9qh3iZyHfLA.png?8DA472)
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…
![](https://techprofile.blob.core.windows.net/images/ZqYdX_8zbEC9qh3iZyHfLA.png?8DA472)
![](https://techprofile.blob.core.windows.net/images/ZqYdX_8zbEC9qh3iZyHfLA.png?8DA472)
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.
![](https://techprofile.blob.core.windows.net/images/CL9sTc5zkUClnOVlnXO8DA.png?8DCA31)