The CLR has been unable to transition from COM context...
Hello,I have run across an interesting error that I do not have a good understanding about. This involves .NET 2.0 VS 2005. The situation arose while developing a console application that desterilizes...
View ArticleUsing overlapped I/O in .NET
Hello,I'm looking to implement my own buffered IO stream, based on the Win32 asynchronous (overlapped) model. I don't find any helpful documentation or examples how this can be used. I'm learning by...
View ArticleFileSystemWatcher is not triggering on Program Event
Hello,I have setup a file system watcher to monitor a folder. When I create a file in the folder, the event triggers and all is well. However, the reason I created this was to manipulate files being...
View Articlesetting custom attribute values on enum at runtime?
I have enum with values such as "1Day", "2Day", "5Day" etc. I created a custom attribute called DateId for this enum. The DateId is a value I use to keep track of every day the stock market was open...
View ArticleHow to disable string Interning on CLR
Hi, I know that String interning is flagged out by C# compiler, but I also know that CLR 2.0 ignores that. Is there a way to prevent that in VS 2005? I know NGEN can prevent that, but its too much work...
View ArticleHow to measure functional coverage of automation tests for WPF application?
Hi,How can we measure functional coverage of Automation test cases written for WPF application?I'm not sure if it's right place for this question but could not find any other relevant place.Thanks
View ArticleInstrumentation Profiler in legacy CAS Model - Fails
I am working on instrumenting .NET web applications using IL rewriting. My profiler injects code into each and every functions and tracks it. The injected code is a function call that resides in a...
View ArticleError: the file is being used by another process
Hi All, Here is an application, there are three threads. And each thread contains a function as below to write the same file:Using(StreamWriter log = File.AppendText(filePathandName))) { }The first two...
View ArticleAugust update and tls version
This is on Windows 7Prior to the August update you could open a secure tls 1.2 connection on any portAfter the August update you can only open a tls 1.2 connection on the standard port of 443, other...
View ArticleSearch for IL Stub Diagnostic Tool
Hello All,1. I am currently searching for the IL Stub Diagnostic Tool.2. It is supposed to be accessible from the download of the following site :CLR Tools3. However, after downloading the code, I was...
View Articleapplication auto shutdown after an hour or two on windows server 2003.
Hi all, I have developed an application a desktop application on windows 7 development environment using VISUAL STUDIO 2008. The problem is when i run the deployed application on windows server 2003,...
View Articlesending webhook in c#
Hello everyone, How can i create a sender webhook in asp.net mvc ? i read many documents but i couldn't create one my own... can anybody help me plz ? #webhook #cshaarp #aspdotnet
View ArticleFile name and line number in StackSnapshotCallback (unmanaged API for profiling)
I'm trying to make my profiler output how a profiled method was called, from a FunctionEnter hook. With the DoStackSnapshot and StackSnapshotCallback combo, getting the class and method names in the...
View ArticleSystem.TypeLoadException:EncryptCallDll has no implementation (no RVA)....
I am using a dll in my web service(asp) like this: [DllImport("CEracom.dll", EntryPoint = "InitializeCall")] public static extern int InitializeCallDll(string szSlotName, string szPassword);...
View ArticleIClrMetaHost::EnumerateLoadedRuntimes randomly returning 0x80070018...
We are getting sparse reports by some of our users that build of their projects that uses our tool fails randomly (~1 in 1000 cases). From logs and our error reporting we've determined that this is...
View ArticleSecurity concerns about the LogonUser API
Hello All, I am currently working on making our code more secure, ensuring that credentials (in particular passwords) are not kept plaintext in memory, databases, files, and over the wire.We put a lot...
View Article.Net Profiler - CLR calls only IID_ICorProfilerCallback2
I have inherited ICorProfilerCallback6 in to my profiler for using GetAssemblyReferences(..) method. Whenever my web application runs and the w3wp processes tries to load the profiler, the CreateObject...
View Article.Net Profiler - Fails AddAssemblyReference with BadImage Exception
My IL Rewrite profiler uses a helper assembly which will be installed in GAC which has a bunch of function definitions that gets injected in the .Net application code. While i add it's reference in...
View ArticleAccessing .Net classes/methods from Native C++
I am not sure if this is the correct forums to ask this question. I have an existing C# library whose methods I need to access from my existing native C++ application. That is I need to instantiate the...
View ArticleTroubleshooting 8 to 12 seconds hang in GC try_allocate_more_space
Hi all,I have a long-running, heavily multithreaded .NET application which hangs sporadically (i.e. about once a day) for about 8 to 12 seconds, and that pause is not acceptable because of required...
View Article