Enable logging for classic asp site

I inherited the classic ASP project and deployed it to IIS 7.5. I can access the site, however at some point I get a total error page of 500. I want to know what is happening, so I think it's best to see the logs

enter image description here

I am new to IIS / ASP for recording, so the question may sound a little silly. Thanks for any suggestion!

+4
source share
2 answers

You must install the HTTP Errors function in IIS. This is enough to view the error message - you do not need to keep a log.

  • Go to the "Programs and Features" control panel.
  • Select Enable or Disable Windows Features
  • - > - > HTTP " HTTP" ( , , - > - Word > " " "HTTP-".)
  • OK, .

IIS :

  • IIS " ". .
  • " ".
  • " " " ..." , .
  • IIS ASP.
  • " " " " true.

.

IIS , .

+6

. " blnLogFailure", .

On Error Resume Next

Set objASPError = Server.GetLastError

blnLogFailure = TRUE

myMessage = "ERROR IN PROCESSING: " & objASPError.File & vbCrLf
myMessage = myMessage & "ASP Code: " & objASPError.ASPCode & vbCrLf
myMessage = myMessage & "Number: " & objASPError.Number & vbCrLf
myMessage = myMessage & "Source: " & objASPError.Source & vbCrLf
myMessage = myMessage & "Line Number: " & objASPError.Line & vbCrLf
myMessage = myMessage & "Description: " & objASPError.Description & vbCrLf
myMessage = myMessage & "ASP Description: " & objASPError.ASPDescription & vbCrLf

for each item in Request.ServerVariables
    myMessage = myMessage & "ITEM: " & item & " VALUE: " & Request.ServerVariables(item) & vbCrLf
next

If blnLogFailure Then
    Response.Write myMessage
End If
+1

All Articles