I was setting up a web farm with Web Farm Framework (WFF) and Application Request Router (ARR) and received the error shown in Figure 1/2. Figure 1, HTTP Error 502.3 – Bad Gateway Figure 2, HTTP Error 502.3 – Bad Gateway I checked the Monitoring and Management window to see if the Health Status of […]
Read More →Tags: IIS
Using !DumpThreadConfig (!dtc) within WinDbg
I have written articles about how to capture a W3WP memory dump on Windows 2003 and Windows 2008. Once you have the memory dump, you need to analyze it to find out what is causing the problem. One command I use while analyzing a memory dump is !DumpThreadConfig or !dtc. Figure 1 shows the output […]
Read More →Recycling a worker process due to deadlock
There are many reasons why an IIS worker process can hang. For example, a long running SQL query, searching through a Dictionary object, a non-optimal Regex command, hitting the limits of the process model configuration, etc… can all cause performance to slow. Previously, I wrote a blog about using the !dtc command in WinDbg. This […]
Read More →Modifying IIS 7 log data in Windows 2008
Not all IIS logging properties are selected by default. Some of them, which are not selected by default can provide some valuable information when troubleshooting performance or availability issues. To modify the properties which IIS 7 logs, first open IIS Manager, then select the top level server as show in Figure 1. Figure 1, display […]
Read More →IIS Service will not start (Event Id 4275)
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 is corrupted. Perhaps there was a manual modification made to it […]
Read More →Using PowerShell to find the Process Id (PID) of an Application Pool
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 pools existing on the web server enter the following […]
Read More →Displaying detailed error messages in IIS
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 you might need to make some changes or do some […]
Read More →Custom Error Pages – HTTP Error 500.19 – Internal Server Error
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 404 HTTP status code, you can render a page which has […]
Read More →Application Request Routing Error – 502.4 – Bad Gateway
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 “Unhealthy” as shown in Figure 2. They were […]
Read More →Creating a W3WP Memory dump on Windows Server 2008 R2
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 do this, open IIS 7 and select the web […]
Read More →