Solved

Incomplete Failed Request Tracing Report

Posted on 2014-11-25
4
161 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
[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
  • 2
4 Comments
 
LVL 53

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

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

You might have come across a situation when you have Exchange 2013 server in two different sites (Production and DR). After adding the Database copy in ECP console it displays Database copy status unknown for the DR exchange server. Issue is strange…
A phishing scam that claims a recipient’s credit card details have been “suspended” is the latest trend in spoof emails.
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …

734 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