1,130 questions with .NET Runtime tags

Sort by: Updated
2 answers

Is it possible to run netcore 3.x application under the net5

I have a clean Windows 10 x64 virtual machine with dotnet 5.0.2 SDK installed I created the new project using 'dotnet new console' I edited the .csproj file changing net5 target to netcoreapp3.1 I called 'dotnet build' - its ok I called 'dotnet run' -…

.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,130 questions
asked 2021-01-29T06:27:45.667+00:00
Mia Wu-MSFT 327 Reputation points Microsoft Employee
commented 2021-01-29T22:16:03.45+00:00
VICTOR HUGO SÁNCHEZ GRACIDA 1 Reputation point
2 answers

Is it possible to run netcore 3.x application under the net5

I have a clean Windows 10 x64 virtual machine with dotnet 5.0.2 SDK installed I created the new project using 'dotnet new console' I edited the .csproj file changing net5 target to netcoreapp3.1 I called 'dotnet build' - its ok I called 'dotnet run' -…

.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,130 questions
asked 2021-01-29T05:26:15.473+00:00
Konstantin Petukhov 1 Reputation point
answered 2021-01-29T14:57:32.073+00:00
Michael Taylor 49,076 Reputation points
0 answers

SetAccessControl() issues this: Attempted to Perform An Unauthorized Operation

I am a guy who designs and codes programs for Windows 10 desktops. I am puzzled by the error message. How do I work around the complaint from Microsoft's software? How can I make my code authorized? public static void…

.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,130 questions
asked 2021-01-27T22:52:48.03+00:00
MARK ROCKMAN 1 Reputation point
commented 2021-01-28T05:42:10.887+00:00
Jerry Cai-MSFT 986 Reputation points
3 answers One of the answers was accepted by the question author.

How does one keep DirectoryInfo's Constructor from always prefixing the app's path in it.

I hope this is the right forum. I am attempting to write a .net Core application, and I cannot seem to get ahold of a particular directory. Every time I try to create a DirectoryInfo object, it appends whatever I pass in as the parameter to the present…

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,364 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,130 questions
asked 2021-01-27T16:56:14.85+00:00
Joe 96 Reputation points
accepted 2021-01-27T23:39:22.447+00:00
Joe 96 Reputation points
1 answer One of the answers was accepted by the question author.

.net core 3.1 app OK in VS, generates typeload error when published to local folder

I have a .net core 3 app which will run just fine from within VS 2019. As soon as I publish to my dev system reference it directly using IIS and hit the methods that start to do significant work, I will get the following error …

.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,130 questions
asked 2021-01-26T20:09:11.643+00:00
Carlin Anderson 21 Reputation points
commented 2021-01-27T17:04:55.567+00:00
Carlin Anderson 21 Reputation points
2 answers

Trying to execute multiple stored procedures in multiple calls in parallel from .net core WebApi

Trying to execute multiple stored procedures in multiple calls in parallel from .net core WebApi Hi. I've been trying to find a way to execute stored procedures in SQL Server in parallel from a web API in .net core. The request are being done by an…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,229 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,862 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,130 questions
asked 2021-01-26T19:56:23.59+00:00
Gabriel Alva 1 Reputation point
commented 2021-01-26T23:07:36.177+00:00
Gabriel Alva 1 Reputation point
11 answers One of the answers was accepted by the question author.

C# Task - LazyAsyncResult - NullReferenceException

There is something wrong with the following method: public async Task<ExtendedProductDTO> GetProductByUniqueIDAsync(string id) { var product = await _productRepo.FindFirstOrDefaultAsync(i => i.UniqueID ==…

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,364 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,130 questions
asked 2021-01-22T14:44:52.577+00:00
Sal Datoccio 96 Reputation points
commented 2021-01-26T16:12:18.633+00:00
Sal Datoccio 96 Reputation points
1 answer One of the answers was accepted by the question author.

System.IO.FileNotFoundException Problem

Hello, I am trying to use Roslyn compiler: g_ms = new MemoryStream(); g_result = g_compilation.Emit(g_ms); But I am getting this very suspicious error: FileNotFoundException: Could not load file or assembly…

.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,130 questions
asked 2021-01-23T08:59:34.667+00:00
JerryM 1,116 Reputation points
accepted 2021-01-25T13:55:50.043+00:00
JerryM 1,116 Reputation points
1 answer One of the answers was accepted by the question author.

vulnerability for Automatic Deserialization in .NET Framework Remoting

Hi All, See below knowledge about Automatic Deserialization in .NET Framework Remoting Our services use the BinaryServerFormatterSinkProvider class with the TypeLevelFilter set to Full, And it cannot be changed to WCF for some legacy…

.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,130 questions
asked 2021-01-13T05:22:07.733+00:00
Scott Q-0525 121 Reputation points
accepted 2021-01-25T07:11:12.723+00:00
Scott Q-0525 121 Reputation points
2 answers

Docking Windows on desktop programmatically from .net core 5

Hi, I have a main wpf window that spawns off a ekstra tool window. I use the windows button and arrows to place them maximized to the left and right respectively on desktop. Like the xaml WindowsState="Maximized", is there a way…

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,685 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,364 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,130 questions
asked 2021-01-23T16:18:48.243+00:00
Zoidboom 21 Reputation points
answered 2021-01-25T05:53:47.343+00:00
DaisyTian-1203 11,616 Reputation points
1 answer

System.InvalidOperationException When Creating XmlSerializer

I am attempting to create an XmlSerializer, and receive the following Exception: System.InvalidOperationException: 'There was an error reflecting type 'PointTracker_Forms.TrackerName[]'.' The line used to create the XmlSerializer is the following: Dim…

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,364 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,130 questions
asked 2021-01-23T19:18:18.05+00:00
Nathan Sokalski 4,121 Reputation points
answered 2021-01-24T01:29:52.12+00:00
Ken Tucker 5,846 Reputation points
1 answer One of the answers was accepted by the question author.

Why compression insecure over HTTPS

Team, I have made an API in .net core 3.1 and in the startup.cs, I have added brotli compression. It is working fine but in docs, I found this note saying that compression over HTTPS is insecure Can anyone please explain the reason behind 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,130 questions
asked 2021-01-20T17:32:41.217+00:00
Tanul 1,251 Reputation points
accepted 2021-01-23T16:11:23.847+00:00
Tanul 1,251 Reputation points
1 answer

Azure Functions runtime stack license or any cost associated

For using Azure functions, do we have to externally pay for azure runtime stack like openjdk license or if any cost associated while using java runtime stack?

.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,130 questions
asked 2021-01-22T17:13:22.117+00:00
Putta, Vikas 1 Reputation point
answered 2021-01-23T12:41:32.99+00:00
Andriy Bilous 10,996 Reputation points MVP
1 answer

How to maximize CPU usage

I wrote some program that doind a longtime calculations. When i open a task manager, i see that my exe uses only 2% of CPU. How shoult i write my code in c# to obtain a maximum CPU time to speed up my calculation? I try to start a several copies …

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,364 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,130 questions
asked 2021-01-22T19:13:01.087+00:00
Vittorio Rosso 1 Reputation point
answered 2021-01-22T20:05:14.177+00:00
MotoX80 32,091 Reputation points
2 answers

How to solve this .NET error?

Hello, When I want to open an application, then it show me below .NET error. I'm using the last version of .NET Framework: Thank you.

.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,130 questions
asked 2021-01-20T13:44:05.103+00:00
WindowsGeek 21 Reputation points
commented 2021-01-22T16:27:11.187+00:00
WindowsGeek 21 Reputation points
0 answers

How to read from IBM MQ in .NET 5?

We have a lot of business logic in .NET 4.0 which reads a message from an IBM MQ, does some processing, and writes to the database all in one transaction (coordinated by MSDTC). Is there some way to do this in .NET 5? As far as I know, .NET 5 does 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,130 questions
asked 2021-01-22T15:22:28.61+00:00
Pappas Alexandros 1 Reputation point
2 answers One of the answers was accepted by the question author.

Can ClickOnce install .Net Framework 3.5SP1 First before other prerequisites?

I have a C# 4.0 WinForms application, which uses ClickOnce to deploy. I have chosen to 'Download prerequisites from the same location as my application'. I have selected .NET Framework 3.5 SP1 to be installed, if the end-user's system does not have it…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,849 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,130 questions
asked 2021-01-19T21:12:11.747+00:00
Richard Arnold 181 Reputation points
answered 2021-01-21T21:21:45.663+00:00
Richard Arnold 181 Reputation points
1 answer One of the answers was accepted by the question author.

dynamic vbscript execution

Hi, My requirement is to execute the vbscript from C# (not from file). Followed the below article and tried to execute a simple statement WScript.Echo "Missing parameters but it's always giving syntax error as mentioned in the below article. …

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,364 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,130 questions
asked 2021-01-20T16:42:16.71+00:00
Anandhan Sathyanarayanan 136 Reputation points
commented 2021-01-21T19:48:31.627+00:00
Castorix31 81,941 Reputation points
2 answers

WebBrowser Control Support

We saw the forums, Microsoft is going to stop support for IE 11.From my understanding the web browser control uses an IE shell, but if IE is no longer supported what will happen? Are the porting it to use Edge? Developers will need to update to Edge? …

.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,130 questions
Windows 10 Network
Windows 10 Network
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Network: A group of devices that communicate either wirelessly or via a physical connection.
2,281 questions
asked 2021-01-05T11:37:15.3+00:00
sundarapandi subbu 1 Reputation point
answered 2021-01-21T11:11:01.227+00:00
Giambelli, Floriano 21 Reputation points
1 answer

Cant download .Net Framework

Hello, Im trying to download the .Net framework in order to use Insatllmation so i can create an application for my java project i created for a local business. Whenever i try to download the .Net Framework, it says it will make changes to my device i…

.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,130 questions
asked 2021-01-20T22:37:37.113+00:00
Galen Pellitteri 1 Reputation point
commented 2021-01-21T09:05:13.313+00:00
Xingyu Zhao-MSFT 5,356 Reputation points