Quantcast
Channel: Common Language Runtime Internals and Architecture forum

Problems compiling and running mixed mode wrapper dll in VS 2017

I have two problems.  Several years ago I started a project in Visual Studio 2012 that involved:A dll with a set of native C++ classes for developing a complicated physical process simulation to be...

View Article


IO.Directory.Delete - Read-only "Access Denied"

I'm in the middle of a major project converting a VB6 application to .NET and have a requirement to delete a folder and its contents, in this case a complete user profile folder from C:\Documents and...

View Article


Unable to connect server with multiple users using C#

Hi,We have a shared folder on windows server which is connected using C# code. Now when its is connected by one user the next time again when we run the code to connect using different user credential...

View Article

Multithreading on recursive function to read a drive folders metadata.

Hi,We have a shared drive whose folders permissions and name we are updating in database. In order to read all folder we have used recursive function to traverse all folders(tree structure). While...

View Article

my .Net application is leaking handles into lsass.exe

Hi all,i'm trying to find the root cause of this weird behaviorI wrote an application 3 years ago in .net 4.5 (and updated to 4.5.2) that was running fine on win 7 32bit on Mini-PC barebone in last 3...

View Article


.Net App Get's Stuck

HiWe developed a .NET Windows App in C# and configured it as a logon script. It's using .NET 4.6. We noticed that the exe gets stuck at various points in our code, each time, each logon, within each...

View Article

Unloading a dynamically loaded assembly

Okay,So there are moments where reflection is awesome.  Other times, like this, it can be a royal pain.I have a system in place which allows the user to select an assembly and load it for evaluation of...

View Article

How to pause ConcurrentBag processing while uploading data to db

Hi,We have code were we are using Parallel.ForEach() method to process different folder of directory. We have used ConcurrentBag instead of List object as it is thread safe. Now from this Concurrentbag...

View Article


Microsoft.Office.Interop.Visio.Application.Documents.open throws null...

Sorry for the double post (those of you who follow other forums) but I was unsure which forum to post this question...I am attempting to open a Visio 2013 document in C#. The source code is pretty...

View Article


Excel Automation in C# - Excel process won´t quit

Hi there,I´m using Excel automation with C#. When closing Excel, the Excel.exe process still remains in the Task Manager. I´ve tried all the topics that can be found, but Excel won´t quit. When I make...

View Article

StreamWriter WriteLine() Timeout possible? (Named Pipes)

Hi, I am looking for some sort of timout for the WriteLine() Method of the Streamwriter. Following is the Problem: When I am using a named pipe and the client gets stuck in its program and doesnt get...

View Article

Unable to get the window handle for the 'AxNLevel2' control. Windowless...

Hi, I'm having an issue with an ActiveX control that is just driving me nuts right now. The weird part is this always worked just fine and now it suddenly doesn't anymore and I have no idea why.I have...

View Article

How to load a managed C# DLL from a path instead of loading from GAC using...

The managed DLL can be loaded when it is in GAC using the public key token and assembly name.MetaDataAssemblyEmit->DefineAssemblyRef(pbPublicKeyOrToken, publicKeySize, assemblyName,...

View Article


Remote debug problem generic host

Visual Studio 2019 16.7.7I have a .net 3.1 console app implemented as a generic host.This works fine on development machine.Now I want to do some changes and debug remotely on another machine. Have...

View Article

Data error (cyclic redundancy check).

when I wake up and opened my project this shows upInstances of this error (1) 1. Hide Call Stack at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at...

View Article


How to get Powershell to add types from an assembly it just loaded

I loaded an assembly using Add-Type:     $Typename = '\\crtwfaadvlkv0.d2dbfg.com\PRODUCTION\Vision\Apps\VisionPipeline\Oracle.ManagedDataAccess.dll'     Add-Type -LiteralPath $TypeName and confirmed it...

View Article

[Announcement] "Common Language Runtime Internals and Architecture" Forum...

This "Common Language Runtime Internals and Architecture" Forum will be migrated to a new home onMicrosoft Q&A!We've listened to your feedback on how we can enhance the forum experience. Microsoft...

View Article


Microsoft .NET Framework Excepcion de controlada en la aplicacion. Si hace...

Error al descargar AppDomain. (Excepcion de HRESULT: 0x80131015).ayuda, quiero desinstalar eso porque no me deja hacer cosas, osea juego y me sale ese mensaje todo el tiempo 

View Article

Call to GetRawInputDeviceInfo fails through Remote Desktop / Terminal Services

Hi,We are developing a Windows application to be used through Remote Desktop. Within this application we enumerate the HID devices connected to the client using GetRawInputDeviceInfo using the...

View Article

how to change primary language into english?

my primary language is stuck on Japanese

View Article


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>