Solved

iis 7 404 returning blank page instead of executing an url

Posted on 2010-09-06
6
1,594 Views
Last Modified: 2012-08-13
Hi,

For some reason iis is NOT displaying the custom error pages i made for 404. Instead it just returns a blank page. I have the following configuration. Under action Edit feature request custom error pages is selected. And under the error page there is a row
Status code: 404
Path: /page-not-found/page-not-found.cfm
Type: Execute url
Entry type: local

Other sites on the same server do not have this problem the only differenct i could find is that their entry type for 404 state inherited instead of local.

Well hope anyone can help

Kind regards,
Nebu
0
Comment
Question by:Nebukad
  • 3
  • 3
6 Comments
 
LVL 50

Expert Comment

by:Steve Bink
ID: 33615170
Have you tried failed request tracing in IIS7?  Have you tried using a simple HTML page as the target?
0
 

Author Comment

by:Nebukad
ID: 33615625
Simple html page also does not work.

Below a trace of the failed request. Note: I use ISAPI_Rewrite3 on all my sites.

<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type='text/xsl' href='freb.xsl'?>
<!-- saved from url=(0014)about:internet -->
<failedRequest url="http://www.example.com/xxxxyyyzzz"
               siteId="16"
               appPoolId="www.example.com"
               processId="28128"
               verb="GET"
               remoteUserName=""
               userName=""
               tokenUserName="NT AUTHORITY\IUSR"
               authenticationType="anonymous"
               activityId="{00000000-0000-0000-8BD4-0080010000FC}"
               failureReason="STATUS_CODE"
               statusCode="200"
               triggerStatusCode="404"
               timeTaken="63"
               xmlns:freb="http://schemas.microsoft.com/win/2006/06/iis/freb"
               >
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
 <System>
  <Provider Name="WWW Server" Guid="{3A2A4E84-4C21-4981-AE10-3FDA0D9B0F83}"/>
  <EventID>0</EventID>
  <Version>1</Version>
  <Level>0</Level>
  <Opcode>1</Opcode>
  <Keywords>0x0</Keywords>
  <TimeCreated SystemTime="2010-09-07T07:27:29.419Z"/>
  <Correlation ActivityID="{00000000-0000-0000-8BD4-0080010000FC}"/>
  <Execution ProcessID="28128" ThreadID="3184"/>
  <Computer>WEBSSERVER</Computer>
 </System>
 <EventData>
  <Data Name="ContextId">{00000000-0000-0000-8BD4-0080010000FC}</Data>
  <Data Name="SiteId">16</Data>
  <Data Name="AppPoolId">www.example.com</Data>
  <Data Name="ConnId">1610667146</Data>
  <Data Name="RawConnId">0</Data>
  <Data Name="RequestURL">http://www.example.com/xxxxyyyzzz</Data>
  <Data Name="RequestVerb">GET</Data>
 </EventData>
 <RenderingInfo Culture="nl-NL">
  <Opcode>GENERAL_REQUEST_START</Opcode>
 </RenderingInfo>
 <ExtendedTracingInfo xmlns="http://schemas.microsoft.com/win/2004/08/events/trace">
  <EventGuid>{D42CF7EF-DE92-473E-8B6C-621EA663113A}</EventGuid>
 </ExtendedTracingInfo>
</Event>
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
 <System>
  <Provider Name="WWW Server" Guid="{3A2A4E84-4C21-4981-AE10-3FDA0D9B0F83}"/>
  <EventID>0</EventID>
  <Version>1</Version>
  <Level>0</Level>
  <Opcode>1</Opcode>
  <Keywords>0x8</Keywords>
  <TimeCreated SystemTime="2010-09-07T07:27:29.466Z"/>
  <Correlation ActivityID="{00000000-0000-0000-8BD4-0080010000FC}"/>
  <Execution ProcessID="28128" ThreadID="3184"/>
  <Computer>WEBSSERVER</Computer>
 </System>
 <EventData>
  <Data Name="ContextId">{00000000-0000-0000-8BD4-0080010000FC}</Data>
  <Data Name="FilterName">C:\Windows\Microsoft.NET\Framework64\v2.0.50727\aspnet_filter.dll</Data>
 </EventData>
 <RenderingInfo Culture="nl-NL">
  <Opcode>FILTER_START</Opcode>
  <Keywords>
   <Keyword>Filter</Keyword>
  </Keywords>
 </RenderingInfo>
 <ExtendedTracingInfo xmlns="http://schemas.microsoft.com/win/2004/08/events/trace">
  <EventGuid>{00237F0D-73EB-4BCF-A232-126693595847}</EventGuid>
 </ExtendedTracingInfo>
</Event>
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
 <System>
  <Provider Name="WWW Server" Guid="{3A2A4E84-4C21-4981-AE10-3FDA0D9B0F83}"/>
  <EventID>0</EventID>
  <Version>1</Version>
  <Level>0</Level>
  <Opcode>2</Opcode>
  <Keywords>0x8</Keywords>
  <TimeCreated SystemTime="2010-09-07T07:27:29.466Z"/>
  <Correlation ActivityID="{00000000-0000-0000-8BD4-0080010000FC}"/>
  <Execution ProcessID="28128" ThreadID="3184"/>
  <Computer>WEBSSERVER</Computer>
 </System>
 <EventData>
  <Data Name="ContextId">{00000000-0000-0000-8BD4-0080010000FC}</Data>
 </EventData>
 <RenderingInfo Culture="nl-NL">
  <Opcode>FILTER_END</Opcode>
  <Keywords>
   <Keyword>Filter</Keyword>
  </Keywords>
 </RenderingInfo>
 <ExtendedTracingInfo xmlns="http://schemas.microsoft.com/win/2004/08/events/trace">
  <EventGuid>{00237F0D-73EB-4BCF-A232-126693595847}</EventGuid>
 </ExtendedTracingInfo>
</Event>
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
 <System>
  <Provider Name="WWW Server" Guid="{3A2A4E84-4C21-4981-AE10-3FDA0D9B0F83}"/>
  <EventID>0</EventID>
  <Version>1</Version>
  <Level>0</Level>
  <Opcode>1</Opcode>
  <Keywords>0x8</Keywords>
  <TimeCreated SystemTime="2010-09-07T07:27:29.466Z"/>
  <Correlation ActivityID="{00000000-0000-0000-8BD4-0080010000FC}"/>
  <Execution ProcessID="28128" ThreadID="3184"/>
  <Computer>WEBSSERVER</Computer>
 </System>
 <EventData>
  <Data Name="ContextId">{00000000-0000-0000-8BD4-0080010000FC}</Data>
  <Data Name="FilterName">C:\Program Files\Helicon\ISAPI_Rewrite3\ISAPI_Rewrite_x64.dll</Data>
 </EventData>
 <RenderingInfo Culture="nl-NL">
  <Opcode>FILTER_START</Opcode>
  <Keywords>
   <Keyword>Filter</Keyword>
  </Keywords>
 </RenderingInfo>
 <ExtendedTracingInfo xmlns="http://schemas.microsoft.com/win/2004/08/events/trace">
  <EventGuid>{00237F0D-73EB-4BCF-A232-126693595847}</EventGuid>
 </ExtendedTracingInfo>
</Event>
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
 <System>
  <Provider Name="WWW Server" Guid="{3A2A4E84-4C21-4981-AE10-3FDA0D9B0F83}"/>
  <EventID>0</EventID>
  <Version>1</Version>
  <Level>0</Level>
  <Opcode>2</Opcode>
  <Keywords>0x8</Keywords>
  <TimeCreated SystemTime="2010-09-07T07:27:29.482Z"/>
  <Correlation ActivityID="{00000000-0000-0000-8BD4-0080010000FC}"/>
  <Execution ProcessID="28128" ThreadID="3184"/>
  <Computer>WEBSSERVER</Computer>
 </System>
 <EventData>
  <Data Name="ContextId">{00000000-0000-0000-8BD4-0080010000FC}</Data>
 </EventData>
 <RenderingInfo Culture="nl-NL">
  <Opcode>FILTER_END</Opcode>
  <Keywords>
   <Keyword>Filter</Keyword>
  </Keywords>
 </RenderingInfo>
 <ExtendedTracingInfo xmlns="http://schemas.microsoft.com/win/2004/08/events/trace">
  <EventGuid>{00237F0D-73EB-4BCF-A232-126693595847}</EventGuid>
 </ExtendedTracingInfo>
</Event>
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
 <System>
  <Provider Name="WWW Server" Guid="{3A2A4E84-4C21-4981-AE10-3FDA0D9B0F83}"/>
  <EventID>0</EventID>
  <Version>1</Version>
  <Level>0</Level>
  <Opcode>12</Opcode>
  <Keywords>0x0</Keywords>
  <TimeCreated SystemTime="2010-09-07T07:27:29.482Z"/>
  <Correlation ActivityID="{00000000-0000-0000-8BD4-0080010000FC}"/>
  <Execution ProcessID="28128" ThreadID="3184"/>
  <Computer>WEBSSERVER</Computer>
 </System>
 <EventData>
  <Data Name="ContextId">{00000000-0000-0000-8BD4-0080010000FC}</Data>
 </EventData>
 <RenderingInfo Culture="nl-NL">
  <Opcode>GENERAL_ISAPI_HANDLER</Opcode>
 </RenderingInfo>
 <ExtendedTracingInfo xmlns="http://schemas.microsoft.com/win/2004/08/events/trace">
  <EventGuid>{D42CF7EF-DE92-473E-8B6C-621EA663113A}</EventGuid>
 </ExtendedTracingInfo>
</Event>
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
 <System>
  <Provider Name="WWW Server" Guid="{3A2A4E84-4C21-4981-AE10-3FDA0D9B0F83}"/>
  <EventID>0</EventID>
  <Version>1</Version>
  <Level>0</Level>
  <Opcode>1</Opcode>
  <Keywords>0x0</Keywords>
  <TimeCreated SystemTime="2010-09-07T07:27:29.482Z"/>
  <Correlation ActivityID="{00000000-0000-0000-8BD4-0080010000FC}"/>
  <Execution ProcessID="28128" ThreadID="3184"/>
  <Computer>WEBSSERVER</Computer>
 </System>
 <EventData>
  <Data Name="ContextId">{00000000-0000-0000-8BD4-0080010000FC}</Data>
 </EventData>
 <RenderingInfo Culture="nl-NL">
  <Opcode>ISAPI_START</Opcode>
 </RenderingInfo>
 <ExtendedTracingInfo xmlns="http://schemas.microsoft.com/win/2004/08/events/trace">
  <EventGuid>{2E94E6C7-EDA0-4B73-9010-2529EDCE1C27}</EventGuid>
 </ExtendedTracingInfo>
</Event>
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
 <System>
  <Provider Name="ISAPI Extension" Guid="{A1C2040E-8840-4C31-BA11-9871031A19EA}"/>
  <EventID>0</EventID>
  <Version>1</Version>
  <Level>0</Level>
  <Opcode>1</Opcode>
  <Keywords>0x0</Keywords>
  <TimeCreated SystemTime="2010-09-07T07:27:29.482Z"/>
  <Correlation ActivityID="{00000000-0000-0000-8BD4-0080010000FC}"/>
  <Execution ProcessID="28128" ThreadID="3184"/>
  <Computer>WEBSSERVER</Computer>
 </System>
 <EventData>
  <Data Name="ContextId">{00000000-0000-0000-8BD4-0080010000FC}</Data>
  <Data Name="DllName">C:\ColdFusion9\runtime\lib\wsconfig\1\jrun_iis6_wildcard.dll</Data>
 </EventData>
 <RenderingInfo Culture="nl-NL">
  <Opcode>CALL_ISAPI_EXTENSION</Opcode>
 </RenderingInfo>
 <ExtendedTracingInfo xmlns="http://schemas.microsoft.com/win/2004/08/events/trace">
  <EventGuid>{ACADE3B2-B7D7-4339-956C-811B4EDB1B24}</EventGuid>
 </ExtendedTracingInfo>
</Event>
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
 <System>
  <Provider Name="WWW Server" Guid="{3A2A4E84-4C21-4981-AE10-3FDA0D9B0F83}"/>
  <EventID>0</EventID>
  <Version>1</Version>
  <Level>0</Level>
  <Opcode>31</Opcode>
  <Keywords>0x0</Keywords>
  <TimeCreated SystemTime="2010-09-07T07:27:29.482Z"/>
  <Correlation ActivityID="{00000000-0000-0000-8BD4-0080010000FC}"/>
  <Execution ProcessID="28128" ThreadID="3184"/>
  <Computer>WEBSSERVER</Computer>
 </System>
 <EventData>
  <Data Name="ContextId">{00000000-0000-0000-8BD4-0080010000FC}</Data>
  <Data Name="SiteId">16</Data>
  <Data Name="RequestURL">http://www.example.com/xxxxyyyzzz</Data>
  <Data Name="RequestVerb">GET</Data>
  <Data Name="RecursiveLevel">1</Data>
 </EventData>
 <RenderingInfo Culture="nl-NL">
  <Opcode>GENERAL_CHILD_REQUEST_START</Opcode>
 </RenderingInfo>
 <ExtendedTracingInfo xmlns="http://schemas.microsoft.com/win/2004/08/events/trace">
  <EventGuid>{D42CF7EF-DE92-473E-8B6C-621EA663113A}</EventGuid>
 </ExtendedTracingInfo>
</Event>
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
 <System>
  <Provider Name="WWW Server" Guid="{3A2A4E84-4C21-4981-AE10-3FDA0D9B0F83}"/>
  <EventID>0</EventID>
  <Version>1</Version>
  <Level>0</Level>
  <Opcode>1</Opcode>
  <Keywords>0x0</Keywords>
  <TimeCreated SystemTime="2010-09-07T07:27:29.482Z"/>
  <Correlation ActivityID="{00000000-0000-0000-8BD4-0080010000FC}"/>
  <Execution ProcessID="28128" ThreadID="3184"/>
  <Computer>WEBSSERVER</Computer>
 </System>
 <EventData>
  <Data Name="ContextId">{00000000-0000-0000-8BD4-0080010000FC}</Data>
  <Data Name="SiteId">16</Data>
  <Data Name="AppPoolId">www.example.com</Data>
  <Data Name="ConnId">1610667146</Data>
  <Data Name="RawConnId">0</Data>
  <Data Name="RequestURL">http://www.example.com/xxxxyyyzzz</Data>
  <Data Name="RequestVerb">GET</Data>
 </EventData>
 <RenderingInfo Culture="nl-NL">
  <Opcode>GENERAL_REQUEST_START</Opcode>
 </RenderingInfo>
 <ExtendedTracingInfo xmlns="http://schemas.microsoft.com/win/2004/08/events/trace">
  <EventGuid>{D42CF7EF-DE92-473E-8B6C-621EA663113A}</EventGuid>
 </ExtendedTracingInfo>
</Event>
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
 <System>
  <Provider Name="WWW Server" Guid="{3A2A4E84-4C21-4981-AE10-3FDA0D9B0F83}"/>
  <EventID>0</EventID>
  <Version>1</Version>
  <Level>0</Level>
  <Opcode>2</Opcode>
  <Keywords>0x0</Keywords>
  <TimeCreated SystemTime="2010-09-07T07:27:29.482Z"/>
  <Correlation ActivityID="{00000000-0000-0000-8BD4-0080010000FC}"/>
  <Execution ProcessID="28128" ThreadID="3184"/>
  <Computer>WEBSSERVER</Computer>
 </System>
 <EventData>
  <Data Name="ContextId">{00000000-0000-0000-8BD4-0080010000FC}</Data>
  <Data Name="BytesSent">132</Data>
  <Data Name="BytesReceived">509</Data>
  <Data Name="HttpStatus">404</Data>
  <Data Name="HttpSubStatus">0</Data>
 </EventData>
 <RenderingInfo Culture="nl-NL">
  <Opcode>GENERAL_REQUEST_END</Opcode>
 </RenderingInfo>
 <ExtendedTracingInfo xmlns="http://schemas.microsoft.com/win/2004/08/events/trace">
  <EventGuid>{D42CF7EF-DE92-473E-8B6C-621EA663113A}</EventGuid>
 </ExtendedTracingInfo>
</Event>
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
 <System>
  <Provider Name="WWW Server" Guid="{3A2A4E84-4C21-4981-AE10-3FDA0D9B0F83}"/>
  <EventID>0</EventID>
  <Version>1</Version>
  <Level>0</Level>
  <Opcode>32</Opcode>
  <Keywords>0x0</Keywords>
  <TimeCreated SystemTime="2010-09-07T07:27:29.482Z"/>
  <Correlation ActivityID="{00000000-0000-0000-8BD4-0080010000FC}"/>
  <Execution ProcessID="28128" ThreadID="3184"/>
  <Computer>WEBSSERVER</Computer>
 </System>
 <EventData>
  <Data Name="ContextId">{00000000-0000-0000-8BD4-0080010000FC}</Data>
  <Data Name="BytesSent">132</Data>
  <Data Name="HttpStatus">404</Data>
  <Data Name="HttpSubStatus">0</Data>
 </EventData>
 <RenderingInfo Culture="nl-NL">
  <Opcode>GENERAL_CHILD_REQUEST_END</Opcode>
 </RenderingInfo>
 <ExtendedTracingInfo xmlns="http://schemas.microsoft.com/win/2004/08/events/trace">
  <EventGuid>{D42CF7EF-DE92-473E-8B6C-621EA663113A}</EventGuid>
 </ExtendedTracingInfo>
</Event>
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
 <System>
  <Provider Name="ISAPI Extension" Guid="{A1C2040E-8840-4C31-BA11-9871031A19EA}"/>
  <EventID>0</EventID>
  <Version>1</Version>
  <Level>0</Level>
  <Opcode>2</Opcode>
  <Keywords>0x0</Keywords>
  <TimeCreated SystemTime="2010-09-07T07:27:29.482Z"/>
  <Correlation ActivityID="{00000000-0000-0000-8BD4-0080010000FC}"/>
  <Execution ProcessID="28128" ThreadID="3184"/>
  <Computer>WEBSSERVER</Computer>
 </System>
 <EventData>
  <Data Name="ContextId">{00000000-0000-0000-8BD4-0080010000FC}</Data>
 </EventData>
 <RenderingInfo Culture="nl-NL">
  <Opcode>ISAPI_EXTENSION_DONE</Opcode>
 </RenderingInfo>
 <ExtendedTracingInfo xmlns="http://schemas.microsoft.com/win/2004/08/events/trace">
  <EventGuid>{ACADE3B2-B7D7-4339-956C-811B4EDB1B24}</EventGuid>
 </ExtendedTracingInfo>
</Event>
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
 <System>
  <Provider Name="WWW Server" Guid="{3A2A4E84-4C21-4981-AE10-3FDA0D9B0F83}"/>
  <EventID>0</EventID>
  <Version>1</Version>
  <Level>0</Level>
  <Opcode>2</Opcode>
  <Keywords>0x0</Keywords>
  <TimeCreated SystemTime="2010-09-07T07:27:29.482Z"/>
  <Correlation ActivityID="{00000000-0000-0000-8BD4-0080010000FC}"/>
  <Execution ProcessID="28128" ThreadID="3184"/>
  <Computer>WEBSSERVER</Computer>
 </System>
 <EventData>
  <Data Name="ContextId">{00000000-0000-0000-8BD4-0080010000FC}</Data>
 </EventData>
 <RenderingInfo Culture="nl-NL">
  <Opcode>ISAPI_END</Opcode>
 </RenderingInfo>
 <ExtendedTracingInfo xmlns="http://schemas.microsoft.com/win/2004/08/events/trace">
  <EventGuid>{2E94E6C7-EDA0-4B73-9010-2529EDCE1C27}</EventGuid>
 </ExtendedTracingInfo>
</Event>
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
 <System>
  <Provider Name="WWW Server" Guid="{3A2A4E84-4C21-4981-AE10-3FDA0D9B0F83}"/>
  <EventID>0</EventID>
  <Version>1</Version>
  <Level>0</Level>
  <Opcode>2</Opcode>
  <Keywords>0x0</Keywords>
  <TimeCreated SystemTime="2010-09-07T07:27:29.482Z"/>
  <Correlation ActivityID="{00000000-0000-0000-8BD4-0080010000FC}"/>
  <Execution ProcessID="28128" ThreadID="3184"/>
  <Computer>WEBSSERVER</Computer>
 </System>
 <EventData>
  <Data Name="ContextId">{00000000-0000-0000-8BD4-0080010000FC}</Data>
  <Data Name="BytesSent">132</Data>
  <Data Name="BytesReceived">509</Data>
  <Data Name="HttpStatus">200</Data>
  <Data Name="HttpSubStatus">0</Data>
 </EventData>
 <RenderingInfo Culture="nl-NL">
  <Opcode>GENERAL_REQUEST_END</Opcode>
 </RenderingInfo>
 <ExtendedTracingInfo xmlns="http://schemas.microsoft.com/win/2004/08/events/trace">
  <EventGuid>{D42CF7EF-DE92-473E-8B6C-621EA663113A}</EventGuid>
 </ExtendedTracingInfo>
</Event>
</failedRequest>
0
 
LVL 50

Expert Comment

by:Steve Bink
ID: 33620775
When you use the failed request trace, you should get an XML file for the failed attempt.  If you could post that XML file here as an attachment, it would easy for me to load it and view it properly.
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

Author Comment

by:Nebukad
ID: 33624657
The failed request trace is attached
fr000002.xml
0
 
LVL 50

Accepted Solution

by:
Steve Bink earned 500 total points
ID: 33651994
If you look in the trace, item 176 is the 404 response being triggered.  That is to be expected.  Items 200-202 are the custom error module doing its work, and it is responding with a pass-through.  In other words, leave the original response (i.e., 404) in place.  This could be because your error configuration is wrong.  See here:

http://blogs.iis.net/ksingla/archive/2008/02/18/what-to-expect-from-iis7-custom-error-module.aspx
0
 

Author Comment

by:Nebukad
ID: 33679829
I compared the web.config file with one of a site that does not have any problem and made some changes to the web.config file of the site that was having problems now the 404 are displayed correctly.
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Debug Tools to analyse IIS process: This article focus on taking memory dumps from IIS to determine which code is taking more time and to analyse which calls hangs/causes more CPU usage. To take dumps,download the following. Install1: To st…
Lync server 2013 Backup Service Error ID 4049 – After File Share Migration
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now