Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Internet Explorer 5

Status
Not open for further replies.

khue

Programmer
Mar 6, 2001
112
US
We have a web application written in ASP with SQL and the web application keeps giving us this error:

HTTP 500 - Internal server error Internet Explorer

When updating the database. Can someone help?
 
This is most likely related to your code in your asp page. Copy & paste this into a new file..
-----------------------------------------------
<%@ Language = VBSCRIPT %>
<% Option Explicit %>

<HTML>
<BODY>
<P>An Error has occurred. We appologize for this inconvenience.
<P>
<U>Useful Links:</U><BR>
<LI><A HREF=&quot;/&quot;>Main Page</A>

<P><HR><P>

<%
'Create an instance of the ASPError object
Dim objASPError
Set objASPError = Server.GetLastError()
%>

<CENTER>
<TABLE BORDER=1 CELLSPACING=1>
<TR>
<TH COLSPAN=2>Detailed Error Information</TH>
</TR>

<TR>
<TD>ASP Code</TD>
<TD><%=objASPError.ASPCode%></TD>
</TR>
<TR>
<TD>Error Number</TD>
<TD><%=objASPError.Number%></TD>
</TR>
<TR>
<TD>Source Code that caused the error</TD>
<TD><%=objASPError.Source%></TD>
</TR>
<TR>
<TD>Category</TD>
<TD><%=objASPError.Category%></TD>
</TR>
<TR>
<TD>Error Occured in</TD>
<TD><%=objASPError.File%></TD>
</TR>
<TR>
<TD>Line Number</TD>
<TD><%=objASPError.Line%></TD>
</TR>
<TR>
<TD>Column Number</TD>
<TD><%=objASPError.Column%></TD>
</TR>
<TR>
<TD>Description</TD>
<TD><%=objASPError.Description%></TD>
</TR>
<TR>
<TD>Extended Description</TD>
<TD><%=objASPError.ASPDescription%></TD>
</TR>
</TABLE>
</BODY>
</HTML>
-----------------------------------------------
Name the file ErrorHandler.asp then go into IIS.. right click on the website.. click properties.. under the &quot;custom errors&quot; tab.. find &quot;500:100 internal server error&quot; double click on it.. and replace the page in the &quot;URL&quot; box with new &quot;ErrorHandler.asp&quot; page.

Now mimic the error.. you should now get a detailed description of what went wrong. Good Luck. :)

Hope this helps.

T [afro][gorgeous][afro2]
 
P.S.

Remember to correctly map out the location of &quot;ErrorHandler.asp&quot;. The instructions I put up assumes that you put it into ur directory.. if u decide to put it into another directory then make sure u include the subfolders by preceeding the filename with the folder name.

Good luck.

T
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top