16,718 questions with .NET-related tags

Sort by: Updated
2 answers

Installing 4.5.2 framework

I want to install below highlighted and for that i should include in the vs build script, can you please assist , Please share me the exact command and where to download whatever I mentioned below highlighted is not working

.NET Training
.NET Training
.NET: Microsoft Technologies based on the .NET software framework.Training: Instruction to develop new skills.
32 questions
asked Jun 4, 2025, 4:11 PM
Shyam Kumar 846 Reputation points
commented Jun 25, 2025, 4:24 AM
Shyam Kumar 846 Reputation points
2 answers One of the answers was accepted by the question author.

"You must install .NET Desktop Runtime to run this application"

I am writing an .nsi script, which after successfully installing, will not allow me to run the program after showing the popup in the screenshot above "You must install .NET Desktop Runtime to run this application". I have clicked the Learn…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,103 questions
Developer technologies .NET .NET Runtime
asked Sep 23, 2024, 4:53 PM
Larry C 20 Reputation points
edited a comment Jun 23, 2025, 3:25 AM
Trevor Geddes 0 Reputation points
4 answers One of the answers was accepted by the question author.

.Net 9.0 not showing in options in Visual Studio 2022 although SDK is installed -

Hi gentlemen, I have encountered a strange problem on my system. Very recently I installed .Net9 SDK on my system. When I ran dotnet--list-sdks I get the following information: When I run dotnet--list-runtimes I get the following information: …

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,103 questions
Developer technologies ASP.NET ASP.NET Core
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,449 questions
asked Dec 27, 2024, 7:17 PM
P. G. Choudhury 146 Reputation points
answered Jun 22, 2025, 6:02 PM
Gaurav Gupta 0 Reputation points
1 answer One of the answers was accepted by the question author.

ExportToCsv Library Not Working in .NET 8 (Could not load type 'System.Web.HttpContext' from assembly 'System.Web' Exception)

Hi, I'm currently migrating a WinForms application from .NET Framework 4.7.2 to .NET 8, and I'm getting an exception with the ExportToCsv library, we were using it to export tabular data of Order Book, Trade Book to CSV files. In .NET Framework, we used…

.NET Training
.NET Training
.NET: Microsoft Technologies based on the .NET software framework.Training: Instruction to develop new skills.
32 questions
asked Jun 10, 2025, 10:21 AM
Aman Agrahari 60 Reputation points
accepted Jun 20, 2025, 9:05 AM
Aman Agrahari 60 Reputation points
13 answers

Not remembering source control plug-in (Git)

Since the last release, Visual Studio 2022 is not remembering the source control selection. Every time a project is opened, I must open the options dialog, go to Source Control, and select Git from the "current source control plug-in." Once I…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,103 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,449 questions
asked Sep 6, 2023, 6:51 PM
Brad Knode 70 Reputation points
answered Jun 19, 2025, 6:40 AM
R&D Microstudio 0 Reputation points
2 answers One of the answers was accepted by the question author.

How to change the grey default background of a combobox in wpf in xaml

Hi how can I change the grey default background color of a combobox? Of the selected Item not the dropdown list Any help?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,103 questions
Developer technologies Windows Presentation Foundation
asked Feb 2, 2024, 8:36 PM
VFarkas 30 Reputation points
commented Jun 17, 2025, 10:56 AM
Jan-Willem Alderliesten 5 Reputation points
2 answers One of the answers was accepted by the question author.

.NET 8 WinForms Migration – System.Data.SQLite vs Microsoft.Data.Sqlite

Hi everyone, I'm in the process of migrating a Windows Forms application from .NET Framework 4.7.2 to .NET 8. The original project uses System.Data.SQLite (version 1.0.113), and everything has been working smoothly so far. Now that the application is…

.NET Training
.NET Training
.NET: Microsoft Technologies based on the .NET software framework.Training: Instruction to develop new skills.
32 questions
asked Jun 16, 2025, 11:27 AM
Aman Agrahari 60 Reputation points
accepted Jun 17, 2025, 9:14 AM
Aman Agrahari 60 Reputation points
3 answers One of the answers was accepted by the question author.

Old .NET versions automatic uninstallation/removal

Hello, How are you removing old versions of .NET from your devices? Is there a way to automate this? To better clarify our issue, please see the screenshot below. We just installed the latest version (6.0.35) for both: .NET Runtime and Desktop Runtime…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,103 questions
Developer technologies ASP.NET ASP.NET Core
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,597 questions
Developer technologies .NET .NET Runtime
asked Oct 22, 2024, 2:36 PM
Mark Marco 25 Reputation points
commented Jun 11, 2025, 4:47 PM
KenDeEuphrates-4177 0 Reputation points
2 answers

System.IO.Ports only availble on windows, but im using windows - .NET6

So i'm trying to read arduino serial from c#, but it shows me the folowing exeption when i try to open the port: System.PlatformNotSupportedException: 'System.IO.Ports is currently only supported on Windows I am currently using windows 11. Also i tried…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,103 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,562 questions
asked Mar 17, 2024, 4:58 PM
Borda Ákos 20 Reputation points
commented Jun 11, 2025, 3:59 PM
Borsányi Gábor 0 Reputation points
1 answer One of the answers was accepted by the question author.

Migration from .Net Web Application (Framework 4.7) into .Net Core Web 8.0

Hi, I would like to migrate my application from .Net Framework 4.7 to .Net Core 8.0 as I would like to have my application in the latest version. My application is in MVP architecture and web pages are aspx (UI part). Is there any easy way to migrate it…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,103 questions
Developer technologies ASP.NET ASP.NET Core
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,597 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,562 questions
Developer technologies ASP.NET ASP.NET API
asked Jan 29, 2025, 3:37 AM
Banu 40 Reputation points
accepted Jun 9, 2025, 7:15 AM
Banu 40 Reputation points
2 answers

The process cannot access the file because it is being used by another process

I tried to update me db schema in my code and after changing that if i run my application i ma getting the error as follows The process cannot access the file because it is being used by another process but my db is not opened anywhere so how to…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,103 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,562 questions
asked Feb 9, 2023, 1:53 PM
Dineshkumar.S 456 Reputation points
edited an answer Jun 9, 2025, 3:40 AM
Eric Nielsen 0 Reputation points
5 answers

Can't find ado.net entity data model missing visual studio 2019.

i have installed Entityframework 6 also but ado.net entity data model not visible

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,103 questions
Developer technologies ASP.NET ASP.NET API
asked Apr 14, 2021, 10:18 AM
Raja Ganapathy 1 Reputation point
commented Jun 8, 2025, 5:22 PM
burak kahya 0 Reputation points
1 answer One of the answers was accepted by the question author.

problem with .net framework 4.0

hi. i installed windows 7 yesterday and tried to install .net framework 4.0. the error code is 0x800c0019. I need it to install other peograms, pls help :C

Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
5,826 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,103 questions
Developer technologies .NET .NET Runtime
asked Apr 2, 2023, 1:24 PM
commented Jun 7, 2025, 12:28 PM
Anmol Aeri 0 Reputation points
1 answer

Can't launch my app because of 'you must install .NET Desktop Runtime' popup

Hi everyone, I'm trying to run my application I've just installed on my computer but I'm having an issue with my .NET Runtime. I've been debugging this application in Visual Studio Community 2022 v17.10.2 and it works fine when I start it through Visual…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,103 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,449 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,892 questions
Developer technologies Visual Studio Extensions
asked Jun 12, 2024, 3:25 PM
Connor Frayne 30 Reputation points
commented Jun 5, 2025, 8:09 PM
Nick 0 Reputation points
1 answer

C# Blazor .NET 8 localstorage deleted on page refresh F5

Hi In Blazor .NET7 I use localstorage to save a JWT for all my users claims etc. Works perfectly. Upgraded to .NET8 the JWT still works, but, if you refresh your browser page (F5) the localstorage is deleted and I get a 401 unauthorized. In .NET7 this…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,103 questions
Developer technologies .NET Blazor
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,562 questions
asked Oct 17, 2024, 8:40 AM
Kinga 0 Reputation points
commented Jun 4, 2025, 2:53 PM
Alex 0 Reputation points
2 answers

null values in JSON values

When return type in Controller is JObject the values in the json object are displayed null. But If I am trying to print on Console the out put is Ok. How to deal with this?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,103 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,562 questions
asked Jul 30, 2022, 5:44 PM
net 6 newbie 121 Reputation points
answered Jun 3, 2025, 9:14 PM
MylesF-0952 0 Reputation points
3 answers One of the answers was accepted by the question author.

Why isn't Visual Basic developed like C#?

In fact, I feel very upset with Microsoft's strategy towards the Visual Basic language. You are practicing euthanasia for this language and losing a large base of programmers who prefer to deal with this language. You have wasted the expertise of these…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,103 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,892 questions
asked Jan 29, 2024, 6:32 PM
Hassan Farouk 35 Reputation points
edited a comment Jun 3, 2025, 3:33 PM
Brandon Stewart 141 Reputation points
1 answer One of the answers was accepted by the question author.

What is the best way to store URI in EF/SQL Server?

Hi all; I have some properties in an Entity Framework class that are URIs. Is there a way to store them as a URI in the database? Or should I store them as a string? The underlying DB is SQL Database on Azure. thanks - dave

Developer technologies .NET Entity Framework Core
.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,103 questions
asked Mar 5, 2023, 1:41 AM
David Thielen 3,211 Reputation points
commented Jun 2, 2025, 3:52 AM
Tohid 0 Reputation points
2 answers One of the answers was accepted by the question author.

ML.NET Time Series algorithms to predict future forecasts

I got the suggestion from github copilot , SSA timeseries algorithm from ML.NET I got NIFTY BANK csv from the below file and tried to run forescast. https://www.nseindia.com/reports-indices-historical-index-data The last record is Last Record:…

.NET Training
.NET Training
.NET: Microsoft Technologies based on the .NET software framework.Training: Instruction to develop new skills.
32 questions
asked Feb 23, 2025, 3:10 PM
Kalyan A 440 Reputation points
commented May 29, 2025, 7:01 AM
Pradeep M 9,690 Reputation points Microsoft External Staff Volunteer Moderator
4 answers

deps.json does not exist

Hello everyone!! I am a junior programmer trying to make a project in .NET MAUI, but when it comes to scaffolding my database, I get the following error: The specified deps.json…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,103 questions
Developer technologies .NET .NET MAUI
asked Mar 15, 2024, 11:59 AM
Agustín 0 Reputation points
commented May 27, 2025, 6:13 PM
Basani Bhavana 0 Reputation points