Solved

Incomplete Failed Request Tracing Report

Posted on 2014-11-25
4
156 Views
Last Modified: 2014-12-07
I have a custom 500 error page that has been sending me incomplete data.  See below:

When Occur: 11/25/2014 12:27:38 PM
Web Page: //www.gopherstateevents.com
Line: 0
Column: -1
Source:
Description:
Err #:
Com Err #: 0
Category:
URL: /500err.asp
ASP Descr:

Line, Column, Source, Description, Err #, Category, and ASP Descr are either missing or "wrong."  I believe what is happening is that the Failed Request Tracing is reading from the custom error page rather than the page that caused the error.  This did not happen on my old server and I am guessing that it is a setting in IIS that is incorrect.

Here is what I get from the log files on the server:
Error Message
Here is my custom 500 error page code:
<%@ Language=VBScript%>

<%
Option Explicit

Dim i
Dim ASPErr
Dim ErrArray(23)
Dim bDontSend

bDontSend = False

On Error Resume Next
'Response.Clear
Set ASPErr = Server.GetLastError

ErrArray(0) = "Domain: Gopher State Events"
ErrArray(1) = "Organization: " & vbNullString
ErrArray(2) = "Site User: " & vbNullString
ErrArray(3) = "Role: " & vbNullString
ErrArray(4) = "Email: " & vbNullString
ErrArray(5) = "When Occur: " & Now()
ErrArray(6) = "Web Page: " & "//" & Request.ServerVariables ("SERVER_NAME") & ASPErr.File
ErrArray(7) = "Line: " & ASPErr.Line
ErrArray(8) = "Column: " & ASPErr.Column
ErrArray(9) = "Source: " & ASPErr.Source
ErrArray(10) = "Description: " & ASPErr.Description
ErrArray(11) = "Err #: " & ASPErr.ASPCode
ErrArray(12) = "Com Err #: " & ASPErr.Number
ErrArray(13) = "Category: " & ASPErr.Category
ErrArray(14) = "URL: " & Request.ServerVariables("URL")
ErrArray(15) = "ASP Descr: " & ASPErr.ASPDescription
ErrArray(16) = "REQUEST_METHOD: " & Request.ServerVariables("REQUEST_METHOD")
ErrArray(17) = "SERVER_PORT: " & Request.ServerVariables("SERVER_PORT")
ErrArray(18) = "HTTPS: " & Request.ServerVariables("HTTPS")
ErrArray(19) = "LOCAL_ADDR: " & Request.ServerVariables("LOCAL_ADDR")
ErrArray(20) = "REMOTE_ADDR: " & Request.ServerVariables("REMOTE_ADDR")
ErrArray(21) = "HTTP_USER_AGENT: " & Request.ServerVariables("HTTP_USER_AGENT")
ErrArray(22) = "Query STring: " & Request.QueryString
ErrArray(23) = "Form: " & Request.Form

Open in new window


Any help would be much appreciated.
0
Comment
Question by:Bob Schneider
  • 2
4 Comments
 
LVL 52

Assisted Solution

by:Scott Fell, EE MVE
Scott Fell,  EE MVE earned 100 total points
ID: 40465857
I think it is easier to send the 500 error to the browser when viewing remotely, but view the actual error when viewing on the server (or your dev server).  That's what I do.
0
 

Author Comment

by:Bob Schneider
ID: 40465873
I agree but sometimes it is hard to replicate the error...
0
 
LVL 33

Accepted Solution

by:
Big Monty earned 400 total points
ID: 40467009
I'm not sure if this is against EE rules or not (Scott, just delete this post if so and I'll find another way to get you the info) but I found this thread on an IIS site and it seems to have worked for a bunch of folks:

http://forums.iis.net/t/1150502.aspx?IIS7+Custom+500+asp+page+and+GetLastError+not+working

- open up the error pages and select "edit feature settings"
- set up your custom error page
- then set the error page back to the default

you could also try setting up a new error called 500.100 and configure your page for that as well
0
 

Author Closing Comment

by:Bob Schneider
ID: 40485444
Nice to get that up-n-running again.
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Understanding the various editions available is vital when you decide to purchase Windows Server 2012. You need to have a basic understanding of the features and limitations in each edition in order to make a well-informed decision that best suits y…
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
This tutorial will walk an individual through the process of configuring basic necessities in order to use the 2010 version of Data Protection Manager. These include storage, agents, and protection jobs. Launch Data Protection Manager from the deskt…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…

809 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