Solved

iis 7 404 returning blank page instead of executing an url

Posted on 2010-09-06
6
1,646 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 51

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 51

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
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 

Author Comment

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

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

Free NetCrunch network monitor licenses!

Only on Experts-Exchange: Sign-up for a free-trial and we'll send you your permanent license!

Here is what you get: 30 Nodes | Unlimited Sensors | No Time Restrictions | Absolutely FREE!

Act now. This offer ends July 14, 2017.

Question has a verified solution.

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

If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
Lync server 2013 or Skype for business Backup Service Error ID 4049 – After File Share Migration
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…

705 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