Microsoft IIS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsSystem AdministrationMicrosoft IIS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old September 3rd, 2007, 06:39 PM
jerimorris jerimorris is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2007
Posts: 5 jerimorris User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 36 m 55 sec
Reputation Power: 0
IIS - Other - ASP Errors Inline vs. Whole Page

Until recently, when errors (like a VBscript "Variable is undefined" error) occured in the ASP code I was developing, the errors would appear inline in the page. In other words, any output the page had already generated would appear, followed by the error details. I don't remember doing anything to enable this -- it's just the way errors were reported.

Recently, IIS started displaying "The page cannot be displayed" messages. The details of the error are all there, but not the output that the page already generated before the line containing the error.

I haven't defined any custom error pages -- everything on the "Custom Errors" page is set to the default values.

The only change I can think of that I made recently was that I temporarily installed an SSL certificate for testing purposes, but I've since removed the certificate from the server, and this problem still happens.

The way the errors used to be displayed was helpful, because I could see some of the page's output in addition to the error details. I'd like to get it back to displaying errors in that way. Any suggestions on how to do that?

Thank you,

Jeri

Reply With Quote
  #2  
Old September 3rd, 2007, 06:57 PM
Doug G Doug G is offline
Grumpier Old Moderator
ASP Free God 11th Plane (10000 - 10499 posts)
 
Join Date: Sep 2003
Posts: 10,143 Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 3 Weeks 4 Days 23 h 29 m 58 sec
Reputation Power: 181
Your best bet is to get your code to quit causing errors

There are iis settings in the application configuration area that may affect the level of detail that is returned on errors. Othwerise, I don't recall seeing a partial page in the browser prior to an asp server error. Maybe you've changed some of the flow in your asp coding?
__________________
======
Doug G
======
I didn't attend the funeral, but I sent a nice letter saying I approved of it. --Mark Twain

Reply With Quote
  #3  
Old September 3rd, 2007, 08:14 PM
jerimorris jerimorris is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2007
Posts: 5 jerimorris User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 36 m 55 sec
Reputation Power: 0
Doug, thanks for your reply!

I agree, I'd be much better off without the errors!

Here's an example that demonstrates the error. I have an ASP page with the following:

Code:
  <%
  Option Explicit
  
  Response.Write "<p>This is a test.</p>"
  
  ' Cause an error
  set foo = nothing
  
  %>


I have two IIS servers (on 2 different computers), and I installed this ASP page onto both servers. When I view the page from one server, the browser says:

Quote:
This is a test.

Microsoft VBScript runtime error '800a01f4'

Variable is undefined: 'foo'

/mysite/test_causeanerror.asp, line 7


When I view the page from the other server, it says:

Quote:
The page cannot be displayed
There is a problem with the page you are trying to reach and it cannot be displayed.

--------------------------------------------------------------------------------

Please try the following: ... and so on ...


The second site used to behave the same way the first one does, but now it doesn't. I've tried comparing the IIS property pages for the two sites, but I don't see any differences. Something must be different -- I just don't see what it is.

Thanks,

Jeri

Reply With Quote
  #4  
Old September 3rd, 2007, 08:47 PM
mehere's Avatar
mehere mehere is offline
Senior Sarcasm Wizardess
ASP Free God 16th Plane (12500 - 12999 posts)
 
Join Date: Feb 2005
Location: Dreamland
Posts: 12,867 mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)  Folding Points: 10976 Folding Title: Novice Folder
Time spent in forums: 4 Months 4 Weeks 15 h 21 m 57 sec
Reputation Power: 1762
are you viewing both from the same browser? or are you viewing them from the server browser? if the latter, check to make sure you have turned off show friendly http error messages on your browser.
__________________
Come JOIN the party!!!

Quote of the Month:
Retirement: Because you've given so much of yourself to the company that you don't have anything left we can use.

Questions to Ponder:
What do you do when you see an endangered animal eating an endangered plant?

iif([sarcasm]=true,iif([you have to ask]=true,"didn't work","ha ha ha"),"not sarcasm")
copyright© 2008 sbenj69

Reply With Quote
  #5  
Old September 4th, 2007, 07:40 AM
jerimorris jerimorris is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2007
Posts: 5 jerimorris User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 36 m 55 sec
Reputation Power: 0
Quote:
Originally Posted by mehere
are you viewing both from the same browser? or are you viewing them from the server browser? if the latter, check to make sure you have turned off show friendly http error messages on your browser.


Yup, same browser, and "show friendly http error messages" is turned off. I'm pretty sure it's a web server configuration issue, not a browser issue.

Thanks!

Jeri

Reply With Quote
  #6  
Old September 4th, 2007, 02:12 PM
Doug G Doug G is offline
Grumpier Old Moderator
ASP Free God 11th Plane (10000 - 10499 posts)
 
Join Date: Sep 2003
Posts: 10,143 Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 3 Weeks 4 Days 23 h 29 m 58 sec
Reputation Power: 181
Did you compare the settings in the asp error handling settings between the two servers? That's the place I know of where the server admin can alter the way IIS responds to errors. And did you check for any custom error pages on one server but not the other?

Reply With Quote
  #7  
Old September 4th, 2007, 02:32 PM
jerimorris jerimorris is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2007
Posts: 5 jerimorris User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 36 m 55 sec
Reputation Power: 0
Quote:
Originally Posted by Doug G
Did you compare the settings in the asp error handling settings between the two servers? That's the place I know of where the server admin can alter the way IIS responds to errors. And did you check for any custom error pages on one server but not the other?


Yup, I compared all the settings for the sites' virtual directory for both servers, and I also compared the settings at the Default Web Site level -- all seem to be the same. Ditto for custom error pages.

I'm now wondering whether there are any relevant settings that might be hiding in the registry or the metabase that aren't visible through the management console. If that seems likely, any suggestions on how to check that out?

Thank you!

Jeri

Reply With Quote
  #8  
Old September 4th, 2007, 07:45 PM
Doug G Doug G is offline
Grumpier Old Moderator
ASP Free God 11th Plane (10000 - 10499 posts)
 
Join Date: Sep 2003
Posts: 10,143 Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 3 Weeks 4 Days 23 h 29 m 58 sec
Reputation Power: 181
Are the IIS versions the same? I don't know where else to look, if there are registry or metabase settings I wouldn't know how to find them.

Reply With Quote
  #9  
Old September 5th, 2007, 08:52 AM
jerimorris jerimorris is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2007
Posts: 5 jerimorris User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 36 m 55 sec
Reputation Power: 0
After much poking around, I finally found it.

I had been looking at the Custom Errors property pages for a particular virtual directory and for the top-level "Web Sites" entry in the IIS manager. I could have sworn that I had also looked at the page for the Default Web Site, but apparently not -- when I checked it just now, I saw that the Custom Error for IIS 500-100 was set to something else -- when I changed it back to the default, it went back to behaving the way I wanted.

So here's a lesson: there are three places where Custom Errors (and presumably other properties) could affect the behavior of a virtual directory:

- Property pages for "Web Sites"
- Property pages for "Default Web Site"
- Property pages for the virtual directory itself

(Of course, the other lesson is to check everything twice before posting a question!)

I don't know how the Default Web Site's Custom Errors wound up set to something other than the default, but I know I didn't do it! I suppose that when I installed a test SSL certificate, IIS could have changed the value for the Default Web site. I guess the only way to find out is to re-install the test certificate and see what happens, but at this point, I'm reluctant to break it again.

Doug, thank you for your help!

Jeri

Reply With Quote
  #10  
Old September 5th, 2007, 12:26 PM
Doug G Doug G is offline
Grumpier Old Moderator
ASP Free God 11th Plane (10000 - 10499 posts)
 
Join Date: Sep 2003
Posts: 10,143 Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 3 Weeks 4 Days 23 h 29 m 58 sec
Reputation Power: 181
I'm glad to hear you got it figured out.

Reply With Quote
Reply

Viewing: ASP Free ForumsSystem AdministrationMicrosoft IIS > IIS - Other - ASP Errors Inline vs. Whole Page


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT