Microsoft Q&A

.NET Runtime

956 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

956 questions with .NET Runtime tags

Sort by: Updated
1 answer

Is there a Event handler available on .Net / c++ /c# for Wireless profile added event and deleted event?

I want to register a Windows app for listening to Wireless profile changes (Addition or Deletion) performed on Windows settings or by executing netsh commands from CMD. Is there any event handler available for the same? If yes, how to register for 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.
956 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
898 questions
Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
433 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.
1,895 questions
.NET Internet of things
.NET Internet of things
.NET: Microsoft Technologies based on the .NET software framework.Internet of things:
22 questions
asked 2023-02-01T15:48:01.6966667+00:00
Shivanand Rao A V 0 Reputation points
answered 2023-02-01T17:52:29.03+00:00
Castorix31 65,461 Reputation points
1 answer

How do I make my WebView2 web browser get recognised by Window's Settings to get set as default?

I've been making a Web Browser using WebView2 and I would like to make it so users can set it as their default. It isnt recognised by Windows Settings though. Any tips? -Toby

.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.
956 questions
asked 2022-12-17T09:20:04.08+00:00
Toby Winter 1 Reputation point
commented 2023-02-01T07:54:36.5966667+00:00
Toby Winter 1 Reputation point
1 answer

How to System.BadImageFormatException (No string associated with token) error solved

Our Web Application build in .NET 4.8 and hosted as an azure app service throws this exception in some views. Here is the stack trace for one of these exceptions. We have run out of options to try certain things but it is stuck like that. We have tried…

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.
6,961 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.
956 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
594 questions
Internet Information Services
asked 2023-01-28T13:47:57.62+00:00
Tabish Ashraf 0 Reputation points
commented 2023-01-31T09:33:10.1533333+00:00
JasonPan - MSFT 1,146 Reputation points Microsoft Employee
1 answer One of the answers was accepted by the question author.

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) { …

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
291 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
620 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.
956 questions
.NET Standard
.NET Standard
A formal specification of .NET APIs that are available on multiple .NET implementations.
483 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,551 questions
asked 2023-01-30T05:50:44.7+00:00
打玻璃 1,526 Reputation points
accepted 2023-01-30T09:17:44.13+00:00
打玻璃 1,526 Reputation points
1 answer One of the answers was accepted by the question author.

How to marshal an array of fixed size structs from unmanaged to managed memory

.Net 7 Having an IntPtr (nint) pointing to an array of fixed size and blittable structs in unmanaged memory. Marshal.Copy does not seem to have any method like: Copy(myPointer, myStrcuctArray, 0, myStructArray.Length) (It accepts an array of int,…

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.
6,961 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.
956 questions
asked 2023-01-29T21:43:46.12+00:00
Magne 126 Reputation points
accepted 2023-01-30T07:33:53.36+00:00
Magne 126 Reputation points
1 answer

Why can't run my app after visual studio update?

I have updated Visual Studio 2019 from 16.6.1 version to 16.11.23 version. The update operation was finished successfully. When I want to run my MVC project in Debug mode, nothing happens. No error is displayed, the app is not running. What do I have to…

.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.
956 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,420 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.
696 questions
asked 2023-01-26T12:35:02.9366667+00:00
Ionut Dragomir 21 Reputation points
answered 2023-01-29T13:42:03.6466667+00:00
Ken Tucker 5,801 Reputation points
2 answers

Check installed .NET runtime version from C#

Hello, what is the best way how to check all installed .NET runtime versions from C# code? Is there some registry key I could read? e.g. SOFTWARE\WOW6432Node\dotnet\Setup\InstalledVersions\x86\hostfxr Or do I need to call "dotnet…

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.
6,961 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.
956 questions
asked 2023-01-25T14:08:18.9133333+00:00
Jan Hovorka 0 Reputation points
edited an answer 2023-01-25T17:43:17.3266667+00:00
Reza Aghaei 3,331 Reputation points Microsoft MVP
1 answer

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?

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
291 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.
956 questions
.NET Standard
.NET Standard
A formal specification of .NET APIs that are available on multiple .NET implementations.
483 questions
asked 2023-01-06T07:01:41.377+00:00
打玻璃 1,526 Reputation points
commented 2023-01-23T09:55:36.52+00:00
Jiachen Li-MSFT 10,836 Reputation points Microsoft Employee
2 answers

Distributed Transaction support - has it been implemented for Net 7?

My understanding is that Net 7 would have distributed transaction support enabled for Windows only. I installed Net 7 and distributed transaction support does not appear to work. Windows 10 , WPF/MVVM application. Currently running under .Net 6, but 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.
956 questions
asked 2022-11-30T20:50:31.09+00:00
Howard Reagor 6 Reputation points
commented 2023-01-21T00:38:28.1266667+00:00
Don Reynolds 0 Reputation points
2 answers

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…

.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.
956 questions
Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,180 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
291 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.
6,961 questions
asked 2021-02-05T11:36:34.287+00:00
Thomas Gössi 1 Reputation point
answered 2023-01-20T19:07:27.1533333+00:00
Rustamxon Rahimov 0 Reputation points
1 answer

Support for English (United Arab Emirates) in Azure App Services or possibly VMs

We have a customer in the UAE we would like to support. They would like AED currency but English dates which are supported in the English (United Arab Emirates) locale. It appears this locale is not yet available in Windows Server (other than v2004)…

.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.
956 questions
Azure Web Apps
Azure Web Apps
A feature of Azure App Service used to create and deploy scalable, mission-critical web apps.
4,320 questions
Azure FastTrack
Azure FastTrack
Azure: A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.FastTrack: A Microsoft program that helps customers adopt Microsoft Cloud solutions and drive user adoption.
128 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
8,192 questions
asked 2021-07-22T04:11:54.977+00:00
Tony Schollum 6 Reputation points
edited the question 2023-01-20T09:44:51.6433333+00:00
ajkuma 13,456 Reputation points Microsoft Employee
3 answers

System.DirectoryServices is not support dot net core 3.1 version on linux container.

I'm trying to put a .NET Core 3.1 application listing users in an AD group into a .NET Core Runtime Docker container. Accessing the AD is being done with the help of a DirectorySearcher from the System.DirectoryServices namespace. Out of the box, .NET…

.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.
956 questions
asked 2021-06-16T10:31:48.157+00:00
nandkishor ingavale 1 Reputation point
answered 2023-01-19T16:51:29.2966667+00:00
Bruce (SqlWork.com) 28,036 Reputation points
0 answers

Where do I put the "MSV1160CP10" file on my Windows PC if I wanted to download it?

To start things off with, when I open BeamNG Drive on my Windows PC—after installing it—I suddenly received an error message on a pop-up dialog box, stating that the software cannot open the library file, "MSV1160CP10.dll" from the DISM Package…

.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.
956 questions
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.
143 questions
Microsoft System Center
Microsoft System Center
A suite of Microsoft systems management products that offer solutions for managing datacenter resources, private clouds, and client devices.
260 questions
asked 2023-01-18T20:17:04.9033333+00:00
Kimani H. Albright 0 Reputation points
edited the question 2023-01-19T01:38:44.4066667+00:00
Tianyu Sun-MSFT 12,921 Reputation points Microsoft Employee
2 answers One of the answers was accepted by the question author.

How can I set up a many-formed WinForms application to know when it's being switched out to and in from another app, including possibly another instance of itself?

WHAT I HAVE: Visual Basic 2019, WinForms, .NET Framework 4.6+ MY ISSUE: I have a WinForms app with several forms where, in order to avoid behavioral conflicts with other apps, including other instances of itself (same program, different process), I need…

.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.
956 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
1,830 questions
Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,321 questions
asked 2023-01-12T07:05:08.2333333+00:00
Robert Gustafson 601 Reputation points
commented 2023-01-17T08:31:04.44+00:00
Robert Gustafson 601 Reputation points
0 answers

.NET Runtime 1026, Application Error 1000, Application crashes

Hello! I originally had the application on my computer, and when it tried to update it crashed. So I uninstalled it to start fresh. When I try to install the Hearthstone Deck Tracker (HDT) application on my computer; however, I continue to get two…

.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.
956 questions
Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
5,959 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
620 questions
asked 2023-01-13T04:35:47.86+00:00
Lukas Stewart 0 Reputation points
edited the question 2023-01-13T04:36:56.11+00:00
Lukas Stewart 0 Reputation points
2 answers

.NET not found by multiple programs

I've had this VScode error for a while now: "The .NET Core SDK cannot be located: A valid dotnet installation could not be found. .NET Core debugging will not be enabled. Make sure the .NET Core SDK is installed and is on the path.", …

.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.
956 questions
asked 2023-01-03T19:40:45.98+00:00
Sytze Reitsma 1 Reputation point
answered 2023-01-10T22:57:06.83+00:00
Maira Wenzel 1 Reputation point Microsoft Employee
0 answers

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…

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
291 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
620 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.
956 questions
.NET Standard
.NET Standard
A formal specification of .NET APIs that are available on multiple .NET implementations.
483 questions
asked 2023-01-06T10:23:32.69+00:00
Mallesh_MS 1 Reputation point
commented 2023-01-09T02:02:50.863+00:00
Jiachen Li-MSFT 10,836 Reputation points Microsoft Employee
0 answers

Halabtech tool error

See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.NullReferenceException: Object reference not set to an instance of an object. …

.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.
956 questions
asked 2023-01-08T14:06:24.43+00:00
mazen khawam 1 Reputation point
commented 2023-01-08T16:29:55.523+00:00
mazen khawam 1 Reputation point
2 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…

.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.
956 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,191 questions
asked 2022-08-04T18:02:00.54+00:00
Imtiaz Sami 1 Reputation point
commented 2023-01-08T02:55:52.303+00:00
Bruno Albarado 1 Reputation point
2 answers One of the answers was accepted by the question author.

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?

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
291 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.
956 questions
.NET Standard
.NET Standard
A formal specification of .NET APIs that are available on multiple .NET implementations.
483 questions
asked 2023-01-06T02:42:35.543+00:00
打玻璃 1,526 Reputation points
answered 2023-01-06T17:08:16.907+00:00
Bruce (SqlWork.com) 28,036 Reputation points