Solved

iis 7 404 returning blank page instead of executing an url

Posted on 2010-09-06
6
1,614 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today I came across an interesting issue that had me pulling my hair out.  I was troubleshooting a new internal web site which uses integrated security instead of anonymous.  When browsing the site from my laptop, I was able to access it with no iss…
What is an ISAPI filter?   •      It's an assembly (.dll file) that can add or change the way IIS works.   •      They can be enabled globally for your web server or on a site-by-site basis.   When the IIS server receives a request, enabling the ISAPI fi…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

786 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