1,120 questions with .NET Runtime tags

Sort by: Updated
1 answer

.Net 5 Window

How can I create a .Net 5 window without Xaml? Please, no legacy frameworks like Winforms or WPF. I would use UWP, except it has a couple of significant issues ... not easily distributable and not distributable generally. cannot disable Windows…

.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,120 questions
asked 2020-12-06T05:57:20.197+00:00
Gavin Williams 761 Reputation points
commented 2020-12-07T09:35:10.85+00:00
Jerry Cai-MSFT 986 Reputation points
0 answers

Why does AudioPlaybackConnection keep disconnecting from Bluetooth devices in non-UWP applications?

I've created a test method in C# to connect to Bluetooth devices through the newly introduced AudioPlaybackConnection class in the WinRT API. I see that AudioPlaybackConnection is marked with the DualApiPartition attribute, so it should work in desktop…

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.
10,262 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,120 questions
asked 2020-12-07T03:54:33.293+00:00
Brian Mak 1 Reputation point
2 answers

Non-microsoft languages commentary

I develop radar applications on Linux and I have been watching .NET for 20 years. I was excited to see the goals for .NET 5.0 and I thought it might be the time to move to .NET. But, I was disappointed to see that the goal was just…

.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,120 questions
asked 2020-11-27T01:21:27.767+00:00
Forren, Eddie 1 Reputation point
answered 2020-12-04T23:30:12.697+00:00
Forren, Eddie 1 Reputation point
3 answers One of the answers was accepted by the question author.

Linq to sql class error: must add reference to assembly Syste.data.linq

I created .Net Framework web form app in VS 2019 community. I added linq tosql class (dmbl) using table from AdventureWorks CountryRegions table. The class was created successfully . However I get error in my Business class (Bal): Error says: CS0012…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,262 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,120 questions
asked 2020-12-04T01:00:17.24+00:00
kobosh 176 Reputation points
accepted 2020-12-04T16:37:01.973+00:00
kobosh 176 Reputation points
1 answer

Will System.DirectoryServices work in Future?

We are currently using System.DirectoryServices to import AD users into our software. Microsoft has now announced that in future this will only work via LDAPs. Some colleagues are concerned that System.DirectoryServices can no longer be used and that…

.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,120 questions
asked 2020-12-04T08:11:10.303+00:00
tobias.steinmetz 6 Reputation points
answered 2020-12-04T08:46:42.753+00:00
Cheong00 3,471 Reputation points
4 answers

Stored procedure called once, but executed twice.

I'm using System.Data.SqlClient.SqlCommand.ExecuteNonQuery() to execute a stored procedure in SQL Server 2012. From my application log, this execution has been called only once (it writes log for each calls), but, I realized the store procedure…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,385 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,734 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.
10,262 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,120 questions
Transact-SQL
Transact-SQL
A Microsoft extension to the ANSI SQL language that includes procedural programming, local variables, and various support functions.
4,552 questions
asked 2020-12-02T13:47:02.257+00:00
Wong 6 Reputation points
commented 2020-12-04T01:48:16.447+00:00
Shai Cohen 1 Reputation point
1 answer One of the answers was accepted by the question author.

Multithreading/Concurrency/Parallel – gurantees about value read by a thread?

I wonder if there is a guarantee in the .NET about a value read by some thread from a field write by another thread. This question is not about syncing the threads via sync primitives. I do not care about race conditions or a thread-safety. Also I do not…

.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,120 questions
asked 2020-12-02T17:30:02.107+00:00
Jiří Čepelka 96 Reputation points
accepted 2020-12-03T15:59:48.3+00:00
Jiří Čepelka 96 Reputation points
1 answer

Microsoft.net framework installation is very slow

So on my pc, Microsoft.net framework 3.5 feature is turned off, and when i try enable it, i need to download it, so i tried that, but it never seems to make any progress in installation, and seemingly gets stuck on Downloading Required Files section.

.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,120 questions
asked 2020-11-30T19:07:30.433+00:00
Gorb Gorb 1 Reputation point
commented 2020-12-03T05:37:39.083+00:00
Jerry Cai-MSFT 986 Reputation points
0 answers

Microsoft.net framework installation won't progress

I'm trying to install microsoft.net framework 3.5 feature on windows 10 the problem is, that when downloading the files, installation won't progress, or progress only a little, as seen in screenshot here: After that, it gets stuck and won't…

.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,120 questions
asked 2020-12-01T18:01:58.437+00:00
Gorb Gorb 1 Reputation point
commented 2020-12-03T05:34:25.207+00:00
Jerry Cai-MSFT 986 Reputation points
7 answers

.Net5 Blazor application

Hi, I have a project I'm developing using .Net Core 3.1 for a Blazor server-side project. As I only started this recently, I thought why not move the code to .Net5. So I've just copied and pasted most of my application over and renamed the namespaces…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,393 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,120 questions
asked 2020-11-24T19:21:30.93+00:00
Ami Sett 1 Reputation point
commented 2020-12-02T07:50:28.02+00:00
Jerry Cai-MSFT 986 Reputation points
2 answers

Is it possible to perform a standalone build with a C++/CLI project?

As the question suggests, I'm trying to find out if it's possible to build a C++/CLI project so that the .NET runtime is included, in order to minimise dependencies on .NET being installed in advance. Is this possible with .NET 5 (or is it on the…

.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,120 questions
asked 2020-11-30T10:07:43.587+00:00
Thomas Clarke 1 Reputation point
commented 2020-11-30T15:50:24.227+00:00
Thomas Clarke 1 Reputation point
1 answer

Integration Tests using XUnit.NET - Solution root could not be located using application root

I have two projects in the solution. Web API using .NET Core 3.1 Integration Tests using XUnit.NET and .NET Core 3.1, this project has a reference to Web API project A sample integration test class is here. public class…

.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,120 questions
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
36,061 questions
asked 2020-11-27T14:04:28.237+00:00
Bhanu Prakash Thunuguntla 31 Reputation points
answered 2020-11-30T07:02:21.877+00:00
Brando Zhang-MSFT 2,956 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Cant find method DataGridView.ClearSelection(Int32, Int32, Boolean)

Hello, I am using VS VB.Net with .NET Framework 4.8. I want to clear the selection of all cells in a row of a DataGridView except for one cell. The .NET API Browser shows a method for that "ClearSelection(Int32, Int32, Boolean)". But with…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,575 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,120 questions
asked 2020-11-29T13:26:44.327+00:00
STL 21 Reputation points
commented 2020-11-29T14:56:33.223+00:00
STL 21 Reputation points
1 answer One of the answers was accepted by the question author.

How to prevent ComImport interface function reordering?

Hi! I have strange problem while writing c# ComImport interface. Same name functions are reordered!? Example.... In C++ IDCompositionVisual function order is: STDMETHOD(SetOffsetX)(THIS_ float offsetX ) PURE STDMETHOD(SetOffsetX)(THIS_ In…

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,674 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
322 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.
10,262 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,120 questions
asked 2020-11-27T10:15:43.607+00:00
vb 276 Reputation points
commented 2020-11-28T13:25:33.913+00:00
vb 276 Reputation points
1 answer

Blocking .NET 5 installation

Hello Microsoft , Looking forward to working with .NET 5.0 but we also need to know how to block the installation on those application servers where its not supported. Is the registry key to block it, “BlockNetFrameWork50” and set the value to “1” ? …

.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,120 questions
asked 2020-11-26T19:41:14.57+00:00
SamT 6 Reputation points
answered 2020-11-27T05:17:50.633+00:00
Roman Blinkov 1 Reputation point
3 answers

How to fin Class/Entity References and Line Number

Hi folks, I hope you are doing well. I want to write a program in C# that extract the class/entity references and with there line numbers where it is used in solution. I do research from internet I have found some references() but it can't me help.…

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.
10,262 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,120 questions
asked 2020-11-26T05:53:05.417+00:00
Saifullah 1 Reputation point
commented 2020-11-26T10:40:35.217+00:00
Saifullah 1 Reputation point
1 answer

.Net Core : back compatibility problem when loading a legacy .Net 4.7.2 DLL using System.Console.Write() (missing method)

I have a .Net 5.0 C# wrapper that dynamically loads a legacy C++/CLI .NET 4.7.2 assembly Loading is successful, but I cannot run the code : an exception is raised about a missing System.Console.Write() implementation This is definitely a .Net 5.0…

.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,120 questions
asked 2020-11-19T10:40:45.697+00:00
Pierre Chatelier 81 Reputation points
commented 2020-11-26T08:49:24.453+00:00
Pierre Chatelier 81 Reputation points
0 answers

.Net Core 3.1.10 Hosting Bundle - Is a restart required to complete installation?

Hi, I'm looking at installing the .Net Core 3.1.10 hosting bundle on to some Win16 backend Service Fabric nodes. The installation initiates a system restart at the end of the installation, however, there is an option viz. /norestart to perform the…

.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,120 questions
asked 2020-11-25T12:55:31.17+00:00
Stephen Mahon 6 Reputation points
2 answers One of the answers was accepted by the question author.

Producing Word document with windows form, doesn't work for all PCs: System.Runtime.InteropServices.COMException (0x800A16CA)

Hello, I developed a windows form app to produce Word reports. At the beginning it worked fine on all the PCs producing well done documents, after I added the following chunk of code it stopped to produce the reports when executed on some PCs. …

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,830 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,120 questions
asked 2020-11-24T11:33:54.547+00:00
TRIACCA Marco 101 Reputation points
accepted 2020-11-25T11:20:29.077+00:00
TRIACCA Marco 101 Reputation points
0 answers

Change field text color(red) on Main Entity and Subgrid using Javascript (Unified Interface)

I am currently using Dynamic 365 Unified Interface whereby on the javascript web resource which is using XMLHttpRequest(Retrieve data) to change some text field color on certain tabs and subgrid entity. May I know what will be the correct syntax on…

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.
10,262 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,120 questions
asked 2020-11-20T02:59:23.587+00:00
Kweh Hong Yang 1 Reputation point
commented 2020-11-23T08:06:52.07+00:00
Timon Yang-MSFT 9,571 Reputation points