Solved

iis 7 404 returning blank page instead of executing an url

Posted on 2010-09-06
6
1,602 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
Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

 

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

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

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…
Prologue It is often required to host multiple websites on a single instance of IIS, mostly in development environments instead of on production servers. I am sure it is not much a preferred solution on production servers but this is at least a pos…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
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: …

948 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

22 Experts available now in Live!

Get 1:1 Help Now