IIS Service will not start (Event Id 4275)

This article has been migrated to its new home here:  https://benperk.github.io/msdn/2012/2012-07-iis-service-will-not-start-event-id-4275.html When you are troubleshooting IIS issues there are tools like Failed Request Tracing, IIS logs, etc. which will let you see what is going on.  But what do you do when IIS itself is not working? A common cause is that the applicationHost.config file…


Using PowerShell 3.0 on Windows 8 to find the Process Id (PID) of an Application Pool

This article has been migrated to its new home here: https://benperk.github.io/msdn/2012/2012-06-using-powershell-3-0-on-windows-8-to-find-the-process-id-pid-of-an-application-pool.html With the release of Windows 8 Server comes a new version of PowerShell.  You can check which version of PowerShell you are using by executing the command show in Figure 1. Figure 1, Which version of PowerShell am I using To get a list of application…


Displaying detailed error messages in IIS

This article has been moved to its new home here: https://benperk.github.io/msdn/2012/2012-06-displaying-detailed-error-messages-in-iis.html One of the first questions I ask when troubleshooting an IIS case is “What HTTP Status code are you receiving?”  I ask this question because it sets the direction for further analysis.  In this example I want to discuss the 404 status code and how…


Modifying IIS 6 log data in Windows 2003

This article has been moved to its new home here: https://benperk.github.io/msdn/2012/2012-05-modifying-iis-6-log-data-in-windows-2003.html All IIS logging properties are not selected by default.  Some of them, which are not selected by default can add some valuable information when troubleshooting performance or availability issues. To modify the properties which IIS 6 logs, first select the web site which you want…


Custom Error Pages – HTTP Error 500.19 – Internal Server Error

This article has been moved to its new home here:  https://benperk.github.io/msdn/2012/2012-05-custom-error-pages-http-error-500-19-internal-server-error.html Rendering custom error pages can be helpful when, for example, the custom error page provides some information on how to resolve the error.  Perhaps if a client attempts to access a file which does not exist on the web site, meaning they receive a…


Application Request Routing Error – 502.4 – Bad Gateway

This articles has been moved to its new home here: https://benperk.github.io/msdn/2012/2012-04-application-request-routing-error-502-4-bad-gateway.html I was setting up an Application Request Routing server and received the error shown in Figure 1 when I attempted to access the ARR URL. Figure 1, HTTP Error 502.4 – Bad Gateway The cause was due to the Health Status of the servers being set to…


Creating a W3WP Memory dump on Windows Server 2008 R2

This article has been moved to its new home here:  https://benperk.github.io/msdn/2012/2012-02-creating-a-w3wp-memory-dump-on-windows-server-2008-r2.html On a web server with multiple application pools, there most likely will be multiple W3WP processes.  Therefore, the first action to take when creating a memory dump of a W3WP worker process is to find which W3WP process you need to get the dump of.  To…


Enable and Activate Failed Request Tracing Rules

This article has been moved to its new home here: https://benperk.github.io/msdn/2012/2012-01-enable-and-activate-failed-request-tracing-rules.html There is a new troubleshooting capability available in IIS 7, it is called Failed Request Tracing Rules.  It provides a lot of very useful information which can help pinpoint the cause of performance problem or error. At the moment it is not installed by default…


Creating a W3WP Memory dump on Windows Server 2003

This article has been moved to its new home here: https://benperk.github.io/msdn/2011/2011-12-creating-a-w3wp-memory-dump-on-windows-server-2003.html On a web server with multiple application pools, there most likely will be multiple W3WP processes.  Therefore, the first action to take when creating a memory dump of a W3WP worker process is to find which one you need to get the dump of….


Finding the W3WP worker process PID and associated ID

This article has been moved to its new home here: https://benperk.github.io/msdn/2011/2011-12-finding-the-w3wp-worker-process-pid-and-associated-id.html When you have multiple websites running under different application pools on the same server, you may need to trouble shoot a specific worker process. On Windows 2003 and Internet Information Services 6 (IIS6), I use the iisapp.vbs script as shown in following command, as…