?
Solved

Tired of "Internal Server Error"

Posted on 2007-04-04
11
Medium Priority
?
210 Views
Last Modified: 2010-04-20
Every once in a while I go to start debugging an .ASP application that can be nothing more than a simple syntax error (forgot an end if or something) and rather than getting a nice error message that tells me where the problem is, I get "Internal server error".  I have to futz with it, delete the file, move it, edit it, put it back until eventually it actually reports the error.

Does anyone know why this might happen?

Thanks
0
Comment
Question by:jglazer63
  • 3
  • 2
  • 2
  • +2
10 Comments
 
LVL 54

Expert Comment

by:Ryan Chong
ID: 18850901
try do this to debug your script..

1. If you're using IE browser, go to Menu Tools > Internet Options > Advanced Tab, make sure the "Show friendly HTTP error messages" is unchecked.

2. For your ASP scripts, remark all "On Error Resume Next" that available and change it to "On Error Goto 0"
0
 

Author Comment

by:jglazer63
ID: 18851193
1. of course its checked (otherwise I would NEVER get a friendly error message)
2. thats not the issue

You don't understand.  The asp code could be simply:

response.write("hello world)

Missing the ending quote.  And I get the error I mention.  If I go in, delete the the .asp (cut into clipboard the code blanking the file), refresh, get a blank page, the paste it back in, sometimes this will start the debugger and I'll get the error message I was looking for.
0
 
LVL 54

Expert Comment

by:Ryan Chong
ID: 18851255
0
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
LVL 4

Expert Comment

by:ETA-TECHNICIANS
ID: 18851300
Are you using any of the error handling with On Error Resume Next?
(E.G.,
If Err.Number <> 0 Then
      Response.Write Err.Number & ": " & Err.Source & " | " & Err.Description & "<br />" & vbCrLf
End If
).
These are not usually the most descriptive, but can be another clue.

But, back to your original question, i have run into situations where I get a nondescript error, but after i either comment and then uncomment, I get the more descriptive ASP error.
I cannot explain why this happens.  I find when i simpify the page (cut it down to the code bare minimums) i tend to get the more descriptive error messages rather then the ambiguous 'Server Error' message.  But again, i cannot tell you why.  perhaps an error with too much content following causes ASP to choke out the generic message?

anyways, nothing definitive here, but thought I would give my $0.02.
0
 

Author Comment

by:jglazer63
ID: 18851696
No on the first part, exactly on the second.  This is my issue.  Just tired of having to futz with removing/commenting/tweaking code just to get the error message I need to fix the problem.

Anyone have any other clues to this?
0
 
LVL 4

Expert Comment

by:nstand
ID: 18852147
Yep - I've seen this issue a few times, can be very frustrating.

Do you see the same behavoiur in IE & Firefox or just in IE?

Under IE Tools Internet Options > General > Temporray Internet Files is this set to 'Automatic' or 'Every time I visit the webpage'?

Do you use a proxy server?

Any special caching set on IIS?
0
 

Author Comment

by:jglazer63
ID: 18852156
I have only tried in IE.  No proxy or special caching.  
0
 
LVL 4

Accepted Solution

by:
nstand earned 500 total points
ID: 18852907
I'd be tempted to install a 2nd browser to see if you can replicate, that should highlight whether the problem is with IIS or the browser. Ensure "Every time I visit the webpage" is alsoselected in IE.

Am fairly certain when I saw this issue it was a problem with IIS and to do with IIS Caching of cetain files.

Take a look at this doc:
http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/a0483502-c6da-486a-917a-586c463b7ed6.mspx

Good luck
0
 
LVL 11

Assisted Solution

by:AnthonyP9618
AnthonyP9618 earned 500 total points
ID: 18854314
Turn off Friendly IE Error Messages...

http://support.microsoft.com/kb/294807
0
 
LVL 11

Expert Comment

by:AnthonyP9618
ID: 18854320
Preferably Method 1...

Method 1
1.      Turn off the friendly error message option in the browser as follows:
a.       In Internet Explorer 5.x and 6.x, on the Tools menu, click Internet Options.
b.       On the Advanced tab, under the Browsing section, click to clear the Show friendly HTTP error messages check box, and then click OK.
c.       Close the browser.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
What You Need to Know when Searching for a Webhost Provider
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
Suggested Courses

850 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