.Net Patch MS13-004 [KB 2756920] causing problem on SharePoint,Exchange 2010, .Net Web Apps

Yesterday Microsoft released a patch MS13-04[KB 2756920] which is causing extensive issues with Web[.Net] related applications. Windows 2008 R2 RTM customer are mainly affected by this patch. The following exception is thrown after installing KB2756920 on Win7/Win2k8 R2 RTM when any WCF service is hosted on IIS using HTTPS in which the machine has a…


To check whether a file is in use or not in .Net program

As the saying goes, Prevention is better than cure. It is always better to check whether file is in use before doing any file operation on it to avoid any unexpected IOException during the runtime. Exception in question is: System.IO.IOException: The process cannot access the file ‘C:\Inetpub\XXX.jpg’ because it is being used by another process.at…

WTF: DateTime.AddDays() is not working as expected

Working with following code on DateTime AddDays operation I found end result is not the addition of days!! int increment = 5;DateTime now = DateTime.Now; //Current Datenow.AddDays(increment); //Increment by 5 daysConsole.WriteLine(“Today’s date:” + DateTime.Now);Console.WriteLine(“New Date:” + now.ToString());   Read More


.Net Versions Unleashed Part-2

In the changing .Net world it’s difficult to keep track of version corresponding to framework. Following chart would help you to keep upto date: Read More http://www.asprangers.com/post/2012/04/01/Net-Versions-Unleashed-.aspx

How to change GC flavor[from Server mode to WorkStation Mode] for dllhost.exe

  When you have a Managed COM+ component written in C# class library and hosted on to DLLHOST.EXE By default on a multi proc box .Net would load Server Mode GC(Mscorsvr) and in case you want to change the GC flavor to Workstation Mode (Mscorwks) for some reasons Typically we do the change in aspnet.config…