Is it possible my application is loading NativeImage and JIT versions of dll's?
When looking at my application startup with Fusion, I see the same dll seemingly loaded multiple times:From the 'default' pane of fusion logger:*** Assembly Binder Log Entry (06/05/2013 @ 6:56:56 PM)...
View ArticleHow to pass the Current Thread Identity to a worker thread handling events...
Hi,Here after is a very simple piece of code to open Word using "Microsoft Office Interop Word" 1.14 and to execute some code when a document is opened within this instance of word.The issue I...
View ArticleimpersonateValidUser does not work for some PC,saying "Access to the path...
hi. i would like to ask u to do me a favor to help me. i am using impersonateValidUser to copy file to a folder(if the folder does not exist it will create the folder). then i deploy and...
View ArticlePeverify error - Unable to resovle token
hi,I am writing a very simple example from a book and I am getting an error when I run Peverify. It says it is unable to verify token. There are two files in the example. The first one - CILCars.il...
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 ArticleNeed clarification : Loader Heap , High Frequency heap and method tables
Please verify if there is some gap in my understanding-A) Loader Heap maintains type system for assembly loaded in the app domain.B) For Each type the Loader Heap maintains - a) References to its...
View ArticleHow to get local variable names defined in a method using reflection in C#.net
How to get local variable names defined inside a method using reflection(.net assembly).I can get local variable info using MethodInfo.MethodBody().LocalVariables. But it gives data type of the local...
View Articleunbind BindAsLegacyV2Runtime
So we have an application launcher which can (should) run new apps created in clickOnce and older apps that use a remoting type of logic When trying to run the apps I received the following...
View ArticleGetting COM Error 80004005 while using Interop.Domino.dll
Hi,I am using Visual Studio 2008 and .NET 3.5, i have case where in i use a ASP.NET Web Application and a C# Windows Service to use this Interop.Domino.dll for accessing Lotus Notes and create a...
View ArticleInstalling security certificates
Hello All,Currently I am doing some testing with installing a security certificate in c#. It is a .cer file . I am using the X509Store to open the store and install. I noticed when I open the store for...
View ArticleOpen winform window when widows service start
I want to display a winform window(not exe) when the windows service starts. i am new to windows services, just implemented simple service to open a winform window at service start, but it displays the...
View ArticleProblems accessing a structure in a C# wrapper
Hi,I have written a C# wrapper for a library of C functions. Most of the wrapper works correctly, when I call the C# methods, the underlying C functions perform as expected. The wrapper is compiled as...
View ArticleReferencing and using Managed C++ binaries in C#
Hello All,I have a managed C++ dll built in DotNet 3.5 and my C Sharp application needs to call functions from it. The managed C++ dll internally uses unmanaged C++ dlls. While I am trying to use use...
View ArticleFailed to debug C# application developed and compiled in .net 3.5 but...
Failed to debug C# application in a host having both .net 4.0 and 3.5 using windebug. This application was developed and compiled in .net 3.5 environment but targeted to .net 4.0 and 3.5 using...
View ArticleIs there a way to know if there is a IWin32Window already created?
I don't know if this is the right place to ask.But I came accross this exception the other time:System.InvalidOperationException was unhandled by user code Message=SetCompatibleTextRenderingDefault...
View Articlehow to provide system.diagnostics.performancecounter impersonation through c#?
i have used the following code,static void Main(string[] args){PerformanceCounterCategory cat = new PerformanceCounterCategory("Processor", "172.16.2.171");List<PerformanceCounter> counters = new...
View ArticlePitfalls of Async?
I started to look into on simple examples how Async works and I find it extremely misleading that all tutorials and articles just talk about how great it is and almost none talk about the pitfalls...
View ArticleJust in Time debugger for C# managed code - Revisited
I would like to use VS2010 as the JIT Debugger for my winforms application, which contains managed and unmanaged 3rd party controls. I have the set the following things: 1) In app.config i've inserted...
View ArticleError: Cannot create more than one System.Windows.Application instance in the...
I am creating a visual studio plugin which will analyze code for WPF project. I am doing reflection activity to get metadata info and also to invoke some methods or constructor. As we know wpf project...
View ArticleMainClass in a ReferencedAssembly
Dear all,I have one assembly (a.dll) that process data (text files) in separate resource assemblies (r1.dll, r2.dll, r3.dll, etc...). Each resource assembly is processed, separately, by the...
View Article