IIS application pool may be terminated while collecting dump

Consider the following scenario: You are running a web application on IIS and you need to collect a memory dump of the application pool process (w3wp.exe). W3wp.exe in subject consumes huge memory, for example, around 40 GB, and it takes some time to write the dump file. When you try to collect a memory dump…


How to get an application pool configuration with appcmd.exe

Sometimes it is needed to dump out the configuration of an application pool in a text file. I have found the following command very useful for that: appcmd list apppool “test” /text:* Needless to say, test is the name of the application pool. The output will be like below: APPPOOL  APPPOOL.NAME:”test”  PipelineMode:”Classic”  RuntimeVersion:”v4.0″  state:”Started”  [add]    …


Easiest way to generate MachineKey

Have you ever needed to generate a MachineKey to use in your application’s configuration file or in machine.config? You may need a MachineKey in several scenarios. One of them is the scenario where you deploy your application in a web farm. One another scenario is to need to encrypt Forms Authentication tickets. You have some…


Free ebooks from Microsoft Press

Here you can find very valuable resource from Microsoft Press, including Programming Windows Phone 7, by Charles Petzold. Free ebooks: Great content from Microsoft Press that won’t cost you a pennyhttp://blogs.msdn.com/b/microsoft_press/archive/2012/05/04/free-ebooks-great-content-from-microsoft-press-that-won-t-cost-you-a-penny.aspx Enjoy 🙂 —AMB


Is my web site using Kerberos or NTLM authentication?

If you are not sure if Kerberos or NTLM authentication is used in your web application then you can use the script given in the following blog: http://www.ilinfo.fr/blog/post/Page-de-test-Kerberos-et-de-delegation-ASPX.aspx The blog is in French but you only need to copy the ASPX code which you can find below: <%@ Page language=”VB” %>   <%@ Import namespace = “System.web” %>   <script language=”VB” runat=”server”>       Dim AuthLength     Dim AuthOther…


How to add notepad shortcut in "Send to" menu on Windows 7

I found adding notepad shortcut in the “Send to” menu very useful trick as I can send any file to notepad quickly as seen in the screenshot below: Follow the instructions below to add notepad shortcut in “Send to” menu: Type shell:sendto in Search in Start menu (or in Start –> Run) and press enter. This will…


Easiest way to take your web site offline (IIS 6.0 or IIS 7.5 with .NET 4.0)

If you are running your application within a .NET 4.0 application pool (IIS 7.0 or IIS 7.5) or your web site is configured as an ASP.NET 4.0 web site (IIS 6.0) and would like to show your clients an “under maintenance” page for a limited time, the easiest way is to put a file named…


Use "Stopwatch" class to calculate the execution time

Although this class is not famous, it does a great job to calculate the execution time. Usually, the execution time of a code block is calculated by setting a start and stop variable (DateTime) just before and after the code block and then calculating the difference between “start” and “stop” variable by substracting the “start” from the “stop”. Yes, this does…


Why does not IIS log requests immediately?

Here is a frequently asked question: why can’t I see IIS logs written immediately after a request? The anwer is that the HTTP.SYS buffers the IIS logs and flushes to the disk every 60 seconds because of performance issues. If you are running IIS 7.0 or IIS 7.5 and if you want to flush the…


No traffic is logged when using Fiddler on localhost

Fiddler is a great tool for logging HTTP/HTTPS traffic in the client side. However, you may see that no traffic is logged if you would like to debug your web site by browsing http://localhost or If this is your case then you can try to browse the web site with http://ipv4.fiddler or http://ipv6.fiddler URLs….