Questions tagged [.net-runtime]

.NET Runtime also known as Common Language Runtime (CLR), the virtual machine component of Microsoft's .NET framework, manages the execution of .NET programs.

CLR is often referred to as .NET Runtime inside Microsoft components. For example, in the event of .NET Framework runtime errors, CLR is referred to as .NET Runtime in the Windows Event Log.

36 questions
7
votes
1 answer

Is it possible to install a .NET application on Windows Sandbox?

I'm using Windows Sandbox currently and it looks like there's no way to run a .NET application. Although the Sandbox has .NET 4.8 installed, when I try to run a downloaded .NET desktop application it complains that the runtime is not…
Rick Strahl
  • 17,302
  • 14
  • 89
  • 134
5
votes
0 answers

What is the difference between .NET Core runtime and ASP.NET Core runtime?

If I'm not wrong, ASP.NET Core projects are .NET Core console applications that set up HTTP Server. It has a Program class with Main method. All specified ASP.NET Core namespaces and types are distributed via NuGet packages (referenced in…
Ivan Montilla
  • 392
  • 4
  • 19
4
votes
3 answers

Getting "You must install .NET Desktop Runtime 6.0.3 (x86)" with correct runtime installed

An application built targeting .NET 6 is showing the following message when double-clicking the EXE in Windows Explorer: To run this application, you must install .NET Desktop Runtime 6.0.3 (x86) This runtime (6.0.3 x86) is installed on the…
Étienne Laneville
  • 4,697
  • 5
  • 13
  • 29
3
votes
2 answers

how to programmatically check the .Net sdk version

I'm using the WPF application. I want to check programmatically whether .Net SDK is installed or not. I'm getting the list of SDK using the below code. But the problem is registry may change in the future. RegistryKey ndpKey =…
Faisal Sajjad
  • 239
  • 2
  • 4
  • 13
3
votes
1 answer

Unresolved external symbol CLRCreateInstance

I wrote some native C++ code with the help of the Internet that loads the .NET Runtime and invokes a method that has the signature: public static int MethodNameHere(String pwzArgument) from a class in a managed assembly. However, I can't seem to…
MathuSum Mut
  • 2,765
  • 3
  • 27
  • 59
2
votes
0 answers

Downloading .NET 6.0 from the web with Wix ToolSet

I am developing a wix setup project that creates an installer for my application. My app requires .net 6.0 desktop runtime to run properly, I couldn't find any documentation on how to install it from the web after checking if it is available on the…
Zayd
  • 21
  • 7
2
votes
1 answer

Regarding .Net Runtime

If my Project A has a reference to a package like NLog 2.0 and Project B, and if Project B also has a reference to NLog 1.0, then at runtime, when Project A executes Project B's functionality, will it use NLog 1.0 or NLog 2.0? If I upgrade NLog to…
YMK
  • 31
  • 2
2
votes
1 answer

Unable to load DLL 'pjsua2' or one of its dependencies: The specified module could not be found. (0x8007007E)

I have created a dll following AaronReynoldsUK / PJSIP-PJSUA2-CSharp & used it in my WPF application. which was built and worked as expected. after, I published it(tried Msix packaging/ClickOnce/folder) It ran fine on my pc but after I send it to…
illiterate
  • 98
  • 11
2
votes
1 answer

Nested "using" crashes .net runtime when used with CryptoStream

We have this simple code that was converted from vb.net where it wasn't constructed using using/end using. During conversion we utilized using in c#. using (var memStream = new MemoryStream() { Position = 0L }) using (ICryptoTransform…
T.S.
  • 18,195
  • 11
  • 58
  • 78
1
vote
1 answer

ModuleLoadException on ServiceRuntime.RoleEnvironment.IsAvailable due to LogicalCallContext

I have an ASP.NET MVC web application in which I am getting an error on startup. The global asax.cs calls into ApplicationSettings.cs which has a check to ServiceRuntime.RoleEnvironment.IsAvailable to load settings from one of cloud settings or app…
SauravBhattacharya
  • 631
  • 3
  • 9
  • 24
1
vote
1 answer

.Net5 executable depends on json files to be able to run

I creaated a sample .NET5 console application. Just a tiny sample creating some console entries. using System; using System.Threading; namespace ConsoleApp21 { class Program { static void Main(string[] args) { …
monty
  • 7,888
  • 16
  • 63
  • 100
1
vote
0 answers

How to troubleshoot the ".Net Runtime Error" for COR_PROFILER

.NET Runtime version 4.0.30319.0 - Loading profiler failed. COR_ENABLE_PROFILING was set properly, but COR_PROFILER was not. COR_PROFILER must be set to the CLSID of the profiler to load. Process ID (decimal): 2968. Message ID: [0x2500].
1
vote
1 answer

Duplicating .NET records does not call the constructor

In the new .NET type, record, one has the ability to duplicate a record with some optional modifications to the duplicate's properties. Considering the following two observations, I have come to a contradiction that I am unable to get my head…
Kia Panahi Rad
  • 1,235
  • 2
  • 11
  • 22
1
vote
0 answers

How to install runtime extensions for DotNet 5

I just installed DotNet 5.0, but I realized that I could not use any of the function from the runtime extensions. The program crashes every time I call any function from Random, Environement or Math, with the error System.TypeLoadException: Could…
Cydouzo
  • 445
  • 5
  • 18
1
vote
1 answer

Pivotal .NetCore 3.1 dotnet-runtime Error During Deployment

I want to deploy my project using Pivotal from Bamboo. During the deployment of my .NetCore 3.1 project, I'm getting the error "Unable to install dotnet-runtime: could not find a version of dotnet-runtime to install". The deployment stack is set to…
esdoodle
  • 247
  • 2
  • 21
1
2 3