Converting Octet String to byte array for LogonHours attribute
Hi everyone, I'm attempting to set the Logon Hours attribute for Active Directory with C# but I'm running into problems. The Logon Hours attribute is bascially has an OctetString syntax. A typical...
View ArticlePDB files in Process Monitor Trace
Hi,I am using process monitor to trace the dlls being used for my .net application. I am able to find the entries for the dlls i am using in application but in Process Monitor i am also finding the...
View ArticleSecurity changes not sticking
Have a script that runs to allow access to a number of website using Caspol.exe. But this process doesn't seem to stay, or completely fails and will not update the user's safe internet/intranet...
View ArticlePass a native code c++ callback function pointer to a C# dll and have c++...
Hi,How to pass a unmanaged(native code) c++ callback function pointer to c# com dll and have c++ callback to it?Thanks in advance.
View ArticleMany exceptions deep inside OS functions. How to investigate and what to do?
Hi, My recent crash report shows a lot of exceptions somewhere deep inside the framework (OS). It seems to me that there is nothing I can do about it but still I'd like to ask if somebody...
View ArticleSystem.OverflowException in CallWindowProc for 64 bit configuration when...
Hi,We have the following piece of C# code in our application:private IntPtr _DefaultWndProc = IntPtr.Zero;[DllImport("user32")]private static extern IntPtr SetWindowLongPtr(IntPtr hwnd, int index,...
View ArticleMultithreaded COM access in C#
We have a C# WinForms application where we create several COM objects at startup. During the running of the application these COM objects can get accessed from multiple threads. In our legacy...
View ArticleFacing problem in registering a third party DLL using REGASM.
Hello all, i am trying to register a third party .NET DLL which i want to reference in my C++ project, using regasm.exe. But its giving me the error saying "Failed to load <My DLL> because it is...
View ArticleTargetException while raising COM event for interop
Hi experts,I've one DLL loaded in two Internet Explorer Windows. While loading the first one, a singleton is created. This singleton raises COM events, which are received by JavaScript in the Internet...
View ArticleC# How to catch stdout when p-invoking to unmanaged DLL, as Visual Studio...
Hi to all, as the title states, I need to capture the messages (stdout and stderr) that an unmanaged dll sends when particular functions are called, preferably through asynchronous callbacks. If I...
View ArticleLatest Microsoft patches have broken our application
Hello,We are software developers of a Visual Studio dotnet application. For our customers with a significant number of users, we put the runtime components on a network share, and they run the...
View Article.NET COM registration to be used by COM
Hi,We have host of applications which are a mix of C++, VB6.0 and .NET assemblies. We wanted to go COM free and hence went ahead with side by side dll concept. It works fine with Vb6 and C++ but...
View ArticleProblem Event Name:_CLR20r3
I m starting program on windows 7. I'm running into the problem "KeywordPanda has stopped working" each time I start the program "Flashkeywordminer" Here is the details of the program. Problem...
View ArticleC#App connection to DB throws A device attached to the system is not...
Since I upgrade my 32bit c# app from .net 3.5 to .net 4, the following code fragment generates the 0x8007001F error from time to time. The command is a simple stored proc that validates the existence...
View ArticleSystem.ComponentModel subclass instantiation very slow when optimize is...
Hi, Our company is facing a crucial performance issue with component instantiation (using Component Model). We currently use .net 3.5 for most of our products and we cannot migrate to .net 4.0/4.5...
View ArticleRunning Profiler inside certain IIS ASP.NET 4.0 apps results in error...
I have a IL rewriting profiler which uses the profiling API to intercept JITs and writes prologue\epilogues calling a supporting C# assembly(HP.Diagnostics).We have been running our product(HP...
View ArticleHow do I send a message from a Windows 7 PC to a Windows XP PC?
How do send a message using msg.exe from a Windows 7 machine to a Windows XP machine on the same network? I am able to send a message between two Windows 7 machines, but I cannot find anything that...
View Article[interop] native DLL only accessible from my C# project.
Hello In order to better protect the source code of some functions, I moved them from my C# project to a native C++ dll. The concerned functions are now declared as "extern "C" __declspec(dllexport)"...
View ArticleEncryptedXml.DecryptDocument creates "\r\n\t" in Windows 8
In Windows 8, using EncryptedXml.DecryptDocument to decrypt a xml file will found that there are many "\r\n\t" created in the InnerXml.While it does not happen in Windows 7 and before OS. (I use the...
View ArticleWhat is wrong with this code - 'ArgOutValueArray(int (__gc* __nogc& aRef)...
We have a VC++ project for CLR which is compiling properly in VS 2012. But getting the following exception during runtime:"Could not load type 'System.Int32[]&' from assembly 'mscorlib,...
View Article