Microsoft Q&A

.NET Runtime

1,044 questions

.NET: Microsoft Technologies based on the .NET software framework.
Runtime: The period of time during which a program is being executed in a computer.

Browse all .NET tags

1,044 questions with .NET Runtime tags

Sort by: Updated
2 answers One of the answers was accepted by the question author.

How read excel file and save into database

Hello guys, Is there any tutorial reading excel files and inserting them into a database with a .net core console application? Thanks in advance.

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
299 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: The period of time during which a program is being executed in a computer.
1,044 questions
asked 2021-11-07T16:43:33.453+00:00
Cenk 901 Reputation points
commented 2023-09-29T16:18:59.44+00:00
Mashallah Chatrsimab 0 Reputation points
2 answers One of the answers was accepted by the question author.

System.InvalidOperationException: There is an error in XML document (0, 0). ---> System.Xml.XmlException: Root element is missing.

Hi, Everybody!... I am trying to parse the following XML…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,068 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,639 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.
9,021 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: The period of time during which a program is being executed in a computer.
1,044 questions
asked 2023-09-27T22:41:28.2466667+00:00
Julio Bello 221 Reputation points
accepted 2023-09-29T08:44:00.3766667+00:00
Julio Bello 221 Reputation points
3 answers

Reinstall .NET Framework

Hello, i have problem with .Net framework, We have Windows Server 2019 and now after start ServerManager or for example azure tool for sync i get error about that i need .NetFramework 4.0 But when i dowload last version from MS and run install i get…

.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: The period of time during which a program is being executed in a computer.
1,044 questions
asked 2022-04-19T10:45:47.12+00:00
Jartymyk Tomas 1 Reputation point
commented 2023-09-27T21:00:56.2866667+00:00
1 answer

Setting XML Root XMLNS

Hi, Everybody! I need to create a Shipment XML root whose xmlns is the following fictitious XSD URL: http://api.company.com/schemas/api/company-api-vN.xsd. <?xml version="1.0"…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,068 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.
9,021 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: The period of time during which a program is being executed in a computer.
1,044 questions
asked 2023-09-19T12:11:16.19+00:00
Julio Bello 221 Reputation points
commented 2023-09-27T07:19:57.61+00:00
Hui Liu-MSFT 21,611 Reputation points Microsoft Vendor
1 answer

Visual studio 2022 Installation error

Can someone help me? I am getting this warning when I try to install .NET development for visual studio 2022 : Couldn't install Microsoft.VisualStudio.Community.Shared.Msi

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
3,816 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: The period of time during which a program is being executed in a computer.
1,044 questions
asked 2022-11-19T19:35:11.68+00:00
lambarini 16 Reputation points
commented 2023-09-26T12:16:05.5933333+00:00
Кринський Артур 0 Reputation points
2 answers

Marshal does not contain a definition for GetLastPInvokeError

In Visual Studio 2019 I'm getting complier error CS0117: 'Marshal' does not contain a definition for 'GetLastPInvokeError' My console application project targets .net framework 4.7.2, which should define GetLastPInvokeError according to the docs (.net…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,068 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
3,816 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: The period of time during which a program is being executed in a computer.
1,044 questions
asked 2023-09-21T17:11:30.6266667+00:00
pWire 0 Reputation points
commented 2023-09-26T07:05:18.97+00:00
Jiale Xue - MSFT 11,331 Reputation points Microsoft Vendor
0 answers

Seeking Assistance for Windows Server 2022 Issue

Dear Community Members, I am currently encountering an issue on my Windows Server 2022 system that requires your expert guidance and assistance. Issue Description: My server has .NET 4.8 features already installed. However, I am facing difficulties while…

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
10,617 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: The period of time during which a program is being executed in a computer.
1,044 questions
asked 2023-09-26T04:37:42.4033333+00:00
Shinaz Fiyaz 0 Reputation points
commented 2023-09-26T07:00:56.5833333+00:00
Jiachen Li-MSFT 19,931 Reputation points Microsoft Vendor
7 answers One of the answers was accepted by the question author.

.NET Framework 4.8 on Windows Server 2019 - installation failes

I have tried the solutions in other questions regarding installation failures of .NET Framework 4.8, but nothing have helped me so far. The server is fully patched and rebooted. (Note! We use a WSUS but I do not know what updates are allowed or…

.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: The period of time during which a program is being executed in a computer.
1,044 questions
asked 2021-06-17T15:06:41.08+00:00
Kristofer 131 Reputation points
edited a comment 2023-09-25T18:36:55.8466667+00:00
Brown, Hagen 1 Reputation point
2 answers

Runtime Error 424 when the module was running fine before.

Sub Report() Worksheets("Report").Activate Cells(41, 14).Select Dim baris, kira As Integer Dim Nama, ProperPath, Namafail As String baris = 41 kira = Cells(40, 17).Value Do While baris < kira + 41 Nama = Cells(baris,…

Excel
Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
931 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: The period of time during which a program is being executed in a computer.
1,044 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
2,854 questions
asked 2023-09-23T03:35:19.63+00:00
Chee Fong Cheng 0 Reputation points
edited the question 2023-09-25T02:16:26.3166667+00:00
Emi Zhang-MSFT 17,066 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

InvalidProgramException in Windows Forms application

Hello, I'm a developer of the desktop .NET Windows Forms application. I faced a strange exception thrown by .NET runtime on a single production PC. On a component initialization phase .NET throws the following: System.InvalidProgramException: Common…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,639 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,068 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: The period of time during which a program is being executed in a computer.
1,044 questions
asked 2023-08-29T18:10:10.3533333+00:00
Vadym Lenda 20 Reputation points
accepted 2023-09-23T18:39:27.5233333+00:00
Vadym Lenda 20 Reputation points
1 answer

How to fix "This application requires .NET framework: v4.030319

When I boot up my laptop I get an error saying that I need a .NET version to start an application. I get the same error when I try to open discord and Visual Studio. When I go to download the NET framework it tells me that I already have it. I have tried…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,068 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: The period of time during which a program is being executed in a computer.
1,044 questions
asked 2023-09-09T03:14:58.3166667+00:00
Jonathan Rivas 0 Reputation points
commented 2023-09-22T01:18:44.18+00:00
Jiachen Li-MSFT 19,931 Reputation points Microsoft Vendor
2 answers

upgrading from .net framework 4.5.2 to .net standard 2.0

Hi, I'm trying to upgrade my class libraries from .Net Framework 4.5.2 to .Net Standard 2.0 using Upgrade Assistant. Everytime i does it, it upgrades to the latest version i.e. .Net6 Can I somehow pass an argument to CLI for 2.0? For the time being,…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,068 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,583 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: The period of time during which a program is being executed in a computer.
1,044 questions
asked 2021-12-20T10:42:04.377+00:00
Gurdeep Singh 1 Reputation point
commented 2023-09-20T13:47:40.55+00:00
CSharpest 0 Reputation points
1 answer

InvalidOperationException: <Error xmlns=''> was not expected.

Hi, Everybody! I need to deserialize the following XML... <?xml version="1.0" encoding="utf-8"?> <Error> <Message> There is an error in....</Message> </Error> I defined the following…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,068 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.
9,021 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: The period of time during which a program is being executed in a computer.
1,044 questions
asked 2023-09-19T17:36:24.61+00:00
Julio Bello 221 Reputation points
edited an answer 2023-09-19T18:29:52.9733333+00:00
Viorel 102.8K Reputation points
3 answers

Cannot add feature of .Net Framwork 3.5 to my Windows Server 2022. Error: 0x80073701

Hello guys! I may need some help after endless googling for couple days. I just couldn't fix the error when adding a new feature of .Net Framework 3.5 to my VM as follows: The features trying to add: .NET Framework 3.5 This virtual machine is a domain…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,068 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: The period of time during which a program is being executed in a computer.
1,044 questions
asked 2023-09-01T13:14:06.4233333+00:00
SeanT 0 Reputation points
commented 2023-09-14T09:12:27.9666667+00:00
Jiachen Li-MSFT 19,931 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

is win2d equal to direct2d?

is win2d slower than direct2d? https://github.com/microsoft/Win2D

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,068 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,230 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: The period of time during which a program is being executed in a computer.
1,044 questions
asked 2023-09-12T09:10:24.21+00:00
mc 2,706 Reputation points
commented 2023-09-13T09:41:21.7033333+00:00
Castorix31 77,506 Reputation points
4 answers One of the answers was accepted by the question author.

i get this error with ssrs reports using sqLite , entity frame work and .net6

i get this error with ssrs reports using SQLite , entity frame work and .net6

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
591 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,068 questions
SQL Server Reporting Services
SQL Server Reporting Services
A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
2,555 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.
9,021 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: The period of time during which a program is being executed in a computer.
1,044 questions
asked 2023-09-11T19:05:46.6133333+00:00
Amr Yakout 40 Reputation points
commented 2023-09-12T19:17:20.1966667+00:00
Amr Yakout 40 Reputation points
0 answers

Azure Redis Session State Management

Hello, I am using Microsoft.Web.RedisSessionStateProvider package to connect with redis for session state management. I am following the configuration mentioned in the below doc to connect to redis. …

Azure Cache for Redis
Azure Cache for Redis
An Azure service that provides access to a secure, dedicated Redis cache, managed by Microsoft.
178 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: The period of time during which a program is being executed in a computer.
1,044 questions
asked 2022-07-31T18:54:48.02+00:00
Manish Yadav 26 Reputation points
commented 2023-09-11T18:04:58.6133333+00:00
Sushanth Kumar Jayanthi 0 Reputation points
8 answers

Server Error in '/' Application Web.config

HI I need this problem solution. If anybody have this solution then pls reply to it. Runtime Error Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,639 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: The period of time during which a program is being executed in a computer.
1,044 questions
asked 2022-08-04T18:02:00.54+00:00
Imtiaz Sami 1 Reputation point
commented 2023-09-10T15:58:25.3466667+00:00
Farrukh Rasheed 0 Reputation points
6 answers

How to target .NET Framework 4.0 in VS 2022 on Windows 11?

Working on some old projects targeting .NET Framework 4.0. I used VS 2022 to open the solution and was told to install 4.0 targeting pack. I can't find the download link on the dotnet website, nor the installation option in Visual Studio Installer. …

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.
9,021 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: The period of time during which a program is being executed in a computer.
1,044 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
843 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
6,028 questions
asked 2022-09-05T07:41:23.313+00:00
Lee Feng 116 Reputation points
commented 2023-09-09T21:04:57.32+00:00
Anton Kravtsov 10 Reputation points
2 answers

.NET framework version missing

Hallo, I am quite new to VS. I installed the Community version 2022 recently but I cannot run my script. I get the error which I copied here below. I checked in my registry editor and I can see that I have the version 4.8.04084 (even though in the…

.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: The period of time during which a program is being executed in a computer.
1,044 questions
asked 2023-08-21T15:23:50.7833333+00:00
Vasiliki Anagnostatou 0 Reputation points
commented 2023-09-05T01:41:10.6633333+00:00
Jiachen Li-MSFT 19,931 Reputation points Microsoft Vendor