1,130 questions with .NET Runtime tags

Sort by: Updated
1 answer

N unit-Can't access toolstrip button using button name in windows forms

I’m trying to access a toolstrip button in windows forms using button name in windows forms but facing null reference exception as end result. Normally I can access button using its name, but i am facing issue in accessing the button in toolstrip. This…

.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 2020-12-21T11:22:56.057+00:00
SanthoshPichumanu 6 Reputation points
commented 2021-01-04T08:46:06.513+00:00
Santhosh Pichumani 1 Reputation point
1 answer

Running managed executables inside an unmanaged executable in C++

For the past few days, I've been trying to run a .NET executable inside an unmanaged executable made in C++. I made a simple MessageBox program to test if my code worked, and indeed the application ran fine: using System; using…

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,554 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 2020-12-31T12:07:33.387+00:00
rab00t 1 Reputation point
commented 2021-01-04T06:14:53.507+00:00
Barrnet Zhou-MSFT 171 Reputation points
1 answer

C# app "has exited with code -1073741819 (0xc0000005) 'Access violation'" while debugging (winform)

​in winform app after crashing the output is showing.... Exception thrown: 'System.Data.Entity.Core.EntityCommandExecutionException' in EntityFramework The program '[2256] project.exe' has exited with code -1073741819 (0xc0000005) 'Access violation'.…

.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 2020-12-24T12:25:05.907+00:00
Adarsh 1 Reputation point
commented 2021-01-02T10:40:35.56+00:00
Castorix31 81,941 Reputation points
1 answer

Provider type not defined. (Exception from HRESULT: 0x80090017) (Could not load file or assembly 'Microsoft.IdentityModel.Extensions')

We have an issue which occurs intermittently on one of our test environment. The issue is mostly observed when a deployment is carried out but the peculiar behavior about the issue is the post deployment sanity test completes with out any issues however…

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
.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
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,706 questions
asked 2020-12-18T06:14:31.447+00:00
Sajit Kurup 1 Reputation point
commented 2020-12-31T08:23:16.58+00:00
Sam Wu-MSFT 7,046 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

Why don't my webcam components work in my VB WinForms apps?

WHAT I HAVE: Visual Basic 2019, .NET 4.6.1, WinForms, Windows 10 Home laptop MY PROBLEM: I downloaded WebEye.Controls.WinForms.WebCameraControl from NuGet, and tried to run a VB.NET WinForms program using the control, only to get just a black…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,849 questions
Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,773 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,599 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 2020-12-30T22:44:46.757+00:00
Robert Gustafson 606 Reputation points
accepted 2020-12-31T06:40:34.64+00:00
Robert Gustafson 606 Reputation points
1 answer One of the answers was accepted by the question author.

Could I write WinForm application by C# for Linux

By the newest version of Visual Studio, can I do the title? Thanks.

.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 2020-12-22T18:26:45.867+00:00
Dudu 161 Reputation points
accepted 2020-12-29T23:38:40.283+00:00
Dudu 161 Reputation points
1 answer

Excel 2019 crashes, .NET Runtime version 2.0.50727.9151 - Fatal Execution Engine Error (00007FFB8AC56D4E) (80131506)

Hello, I have Windows 10 64-bit, 20H2 build: 19042.662 and Microsoft Office Pro plus 2019 Version 2011 (Build: 13426.20294) also 64-bit. I'm trying to run my project c#, VSTO, Excel COM-AddIn created with .NET Framework 3.5, Excel crashes(closes)…

.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 2020-12-04T07:02:28.443+00:00
astera123 6 Reputation points
commented 2020-12-29T07:22:19.903+00:00
astera123 6 Reputation points
2 answers One of the answers was accepted by the question author.

COM interop - pass an [in, out] array

Hello, I want to call FileStream.Read from COM Interop. The .Read method wants an [in, out] byte[] buffer to write to. What parameter and variant type should I pass to .invoke? I tried passing a safearray of bytes with VT_ARRAY+VT_UI1. The .Read call…

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,554 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 2020-12-24T07:37:54.913+00:00
haton 21 Reputation points
commented 2020-12-27T17:16:17.987+00:00
haton 21 Reputation points
1 answer One of the answers was accepted by the question author.

How can I get all namespaces in scope for a specific XmlElement?

Hi all; I am editing an XmlDocument and at a given XmlElement, I need to know all prefixes/URIs that are in scope for the element as namespaces? Is there a way to do this? (There's lot's of examples to get all namespaces in the entire document, but 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 2020-12-13T20:28:05.517+00:00
David Thielen 2,306 Reputation points
commented 2020-12-24T16:45:08.07+00:00
David Thielen 2,306 Reputation points
2 answers

After upgrading to .NET 4.8 system Class libraries are not loading in VS 2019

Hi All, I am facing Class libraries are not loading issue as I have upgraded .NET framework to 4.8 and tried to open that solution in Visual studio 2019 and getting below error ... ' The type or namespace name 'ScriptObject' could not be found (are…

.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 2020-12-22T14:39:58.197+00:00
Kamayani 1 Reputation point
commented 2020-12-23T16:37:37.38+00:00
Kamayani 1 Reputation point
1 answer One of the answers was accepted by the question author.

Choosing b/w .Net Core 3.1 or .Net 5

We have to create new project which we need to deploy on ECS Fargate. We are confused b/w .NET Core 3.1 and .NET 5. Our concern are We want very stable framework .NET 5.0 is released in November 2020 only so should we use it. There is no LTS…

.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 2020-12-22T11:37:18.23+00:00
sahil c 21 Reputation points
accepted 2020-12-23T08:09:06.243+00:00
sahil c 21 Reputation points
1 answer One of the answers was accepted by the question author.

Run quick assist(QuickAssist.exe)) in C#

Hi, I'm making a wpf application witch starting "quickassist.exe" in system32 folder. here is my code. string path = @"C:\windows\system32\quickassist.exe"; ProcessStartInfo startInfo = new ProcessStartInfo(); …

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
.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 2020-12-20T05:02:46.513+00:00
Kyeongdon Lim 41 Reputation points
commented 2020-12-23T01:49:44.637+00:00
DaisyTian-1203 11,616 Reputation points
3 answers One of the answers was accepted by the question author.

show flyout (shell) with submenu

I'm trying for submenu in flyout like if i am click any option from flyout then it will automatically open the sub-menu of that particular option. following is my code please help me to get corrected. if (domestic.IsChecked) { …

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,299 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 2020-12-18T08:24:49.6+00:00
rasika kale 21 Reputation points
accepted 2020-12-22T11:10:07.68+00:00
rasika kale 21 Reputation points
2 answers One of the answers was accepted by the question author.

import .net framwork 3.5 to wsus

In my domain network, all clients receive updates from the wsus . Some clients need (.net framework 3.5 (includes .net 2.0 and 3.0)) to run a specific program When I want to install this update through : Control Panel> program and Features>,…

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,256 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 2020-12-16T10:03:25.813+00:00
Mohsen Ebi 156 Reputation points
commented 2020-12-21T07:36:11.417+00:00
Rita Hu -MSFT 9,626 Reputation points
1 answer

error CS0117: 'Marshal' does not contain a definition for 'SecureStringToGlobalAllocUnicode'

Hello, Just want to check if Marshal.SecureStringToGlobalAllocUnicode(SecureString); is supported in .NET 4.5 . I keep getting the above error that Marshall doesnt contain a definition for SecureStringToGlobalAllocUnicode . …

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,443 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 2020-12-19T08:03:49.44+00:00
Krishna Yalavarthi 1 Reputation point Microsoft Employee
commented 2020-12-19T08:24:31.047+00:00
Viorel 112.9K Reputation points
3 answers

Migrating Microsoft.EntityFrameworkCore.SqlServer.Migrations.Internal override to .net 5

Hello, I'm migrating my code from .net core 3.1 to .net 5.0 All works well except for one thing. On my columns in my Entities I have created a custom Annotation like this [CustomAnnotiation("Some key", "Interval in ms")] …

.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 2020-12-11T11:51:55.837+00:00
Bart K 1 Reputation point
commented 2020-12-18T10:00:44.307+00:00
Jerry Cai-MSFT 986 Reputation points
0 answers

.NET Framework 4.8 crashed during GC if the profiling API is used

OS: Windows 10 Pro x64 (Build 19042) .NET Framework: 4.8.4084 x64 We have the our customer dump file, but we can check if user allows to share it. Profiling API flags: …

.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 2020-12-15T10:47:07.807+00:00
ww898 16 Reputation points
commented 2020-12-17T11:41:53.347+00:00
ww898 16 Reputation points
2 answers

How to find Class/Entity complete namespace where it is used in solution/source code with their line number

Hi folks, I hope you are doing well. I want to write a program in C# that extract Class/Entity complete namespace where it is used in solution/source code with their line number I do research from internet I have found some references but it can't…

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 2020-11-27T06:33:32.153+00:00
Saifullah 1 Reputation point
commented 2020-12-17T04:59:09.5+00:00
YASER SHADMEHR 781 Reputation points
1 answer

Can't find .NETFramework

.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 2020-12-16T23:55:48.87+00:00
answered 2020-12-17T02:13:46.213+00:00
Jerry Cai-MSFT 986 Reputation points
1 answer One of the answers was accepted by the question author.

How can I write an XmlElement to an XmlTextWriter, where the element may have children

Hi all; Is there an easy (single call) way in .NET to write an XmlElement to a XmlTextWriter where that element is written out in full to the output? Where the XmlElement may have many child elements and they have children, etc. And where it…

.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 2020-12-13T20:27:24.357+00:00
David Thielen 2,306 Reputation points
commented 2020-12-16T14:32:04.9+00:00
David Thielen 2,306 Reputation points