Solved: InstallUtil throws ArgumentOutOfRangeException when trying to install...
This is just to help people troubleshoot the ArgumentOutOfRangeException problem when trying to install a windows service with installutil. It took me a good while to understand the reason of the...
View ArticleWindows server 2012R2 - Cluster-aware application fails to detect an active...
Hi There,We are maintaining an application based on 3 layers (DB, WS, Application services). The application is cluster-aware, meaning once cluster is configured on the target machine the install...
View ArticleWhether can SignTool appends a differnt company signature to a exe?
I have a application need to call a 3rd part SDK, but we have sign my application with 3rd part certificate. if I use signtool sign my application with their certificate, our certificate will miss...
View ArticleHow to detect UseRandomizedStringHashAlgorithm?
.NET Framework 4.5 and later can be configured to use a randomized string hashing algorithm. How can a managed-code library check whether the framework is using such an algorithm?A library of ours has...
View ArticleI moved a webservice from 2003R2 to 2008R2 and now I am getting an error.
I am moving off of a 2003R2 server.I have a webservice that runs fine on the 2003R2 server, but when I install and use it on the 2008R2 server I get an error.The webservice seems to not run at all. My...
View ArticleFontFamily Memory Leak on Windows 10
Hi, On Windows 10, the System.Drawing.FontFamily.IsStyleAvailable method seems to leave the allocated space into memory even after the Dispose method has been called. I wrote a simple console...
View Article.Net DLL version insight Required
Hi,I have one query regarding .net assemblies. If we have Aseembly1 and Assembly2, where Assembly1 has a dependency on Assembly2 and both are build/deployed with version 2.0.0.0. Now if I do a patch in...
View ArticleWinRT (C++) with C# solution , Runtime issue.
Hi, I am being practicing Windows app development with VS 2015. I did a C# program which calls WinRT created by C++. I have created two solution C++ RT and C#. 1] WinRT (C++) .winwd...
View ArticleReleasing COM Objects
Hi, I just started with vb.net and I am not really familiar with releasing COM object yet.I am using Visual Studio 2015 and my program is for Office 2007 and above.So I am trying to do it perfect but I...
View ArticleSimple question newbie to .net
I am creating an application in vb.net for a manufacturing test. At the end of the test, I am using a windows form to display either PASS on a green background or FAIL on a red background. Everything...
View ArticleTo Share or Not To Share .NET DLLs
The Build Manager (Me) and an Architect Lead are going back and forth on how to implement his common DLLs. Our current setup is 20+ individual .NET websites of which some are compiled and some are not...
View ArticlePerfView complains merged data not merged
Hello,I'm running PerfView 1.8 from the command line. The log file specified with -LogFile shows:[DONE 14:04:22 SUCCESS: PerfView start -AcceptEULA -BufferSizeMB:64 -CircularMB:512...
View ArticleDoes ASP.net need access to the temp folder ?
The government entity decided to deny processes from running from the temp folder. Now when i run my ASP.net website in either debug mode or without debugging I get some strange access denied errors....
View ArticlePassing array of struct to unmanaged code
Hi, I am relatively new to C# and I am having a hard time implementing one function and was hoping that I could get some help from here. I am trying to call a function from c/c++ library which takes in...
View ArticleWhich reflection operations will tolerate a missing DLL?
Suppose we have A.dll:namespace A { public class A1 { } }and B.dll:namespace B { using System.Collections.Generic; using A; public class B1 { public A1 Prop { get; set; } public IList<A1> Fun(A1...
View Articleerror message: Failure adding assembly to the cache
I am able to install non-obfuscated delay-signed assemblies to the GAC. When I attempt to install obfuscated delay-signed assemblies to the GAC then I get the error message: "Failure adding...
View ArticleHow to Prevent the .NET Compiler from Treating Object Return Value as Dynamic
We are in the process of migrating our COM/.NET Interop application from compiling against .NET 2.0 CLR to .NET 4.0 CLR. We are seeing a problem where we have to change our code because of the...
View ArticleStatic class vs singleton class
hi,the main objective of both static class and a singleton class is that having a shared entity. but what is the basic difference between them?> which to use where?thanks in advanceSwapnil
View ArticleHow I can hook OnAmbientPropertyChange for UserMode property in ActiveX...
I have ActiveX writeon on C# [ComVisible(true)] [Guid("XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX")] [InterfaceType(ComInterfaceType.InterfaceIsDual)] public interface IChart { void Activate(); void...
View ArticleASP.NET Web Api fails DllImport (LoadLibrary) on IIS
Hi, I'm developping a Web API that needs to call an unmanaged DLL written in C++.Like here: http://blogs.msdn.com/b/eldar/archive/2006/09/22/how-to-call-c-dll-from-asp-net-c-code.aspxIn debugging (IIS...
View Article