?
Solved

iis 7 404 returning blank page instead of executing an url

Posted on 2010-09-06
6
Medium Priority
?
1,708 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 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

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

Accepted Solution

by:
Steve Bink earned 2000 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 recovery tool for Microsoft Active Directory

Veeam Explorer for Microsoft Active Directory provides fast and reliable object-level recovery for Active Directory from a single-pass, agentless backup or storage snapshot — without the need to restore an entire virtual machine or use third-party tools.

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…
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses

579 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