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…
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# 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'.…
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…
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…
Could I write WinForm application by C# for Linux
By the newest version of Visual Studio, can I do the title? Thanks.
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)…
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…
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…
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…
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…
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(); …
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) { …
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>,…
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 . …
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 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: …
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…
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…