IIS 8.5 经典 ASP 和 500 错误

IIS 8.5 经典 ASP 和 500 错误

当我在 IIS 上运行经典 Asp 页面时出现以下错误

The page cannot be displayed because an internal server error has occurred.

我尝试了以下设置,但仍然看不到实际的代码错误

在此处输入图片描述

<%
Set cdoConfig = CreateObject("CDO.Configuration")

With cdoConfig.Fields
.Item(cdoSendUsingMethod) = cdoSendUsingPort
.Item(cdoSMTPServer) = "IP ADDRESS"
.Update
End With

Set cdoMessage = CreateObject("CDO.Message")

With cdoMessage
Set .Configuration = cdoConfig
.From = "[email protected]"
.To = "[email protected]"
.Subject = "Sample CDO Message"
.TextBody = "This is a test for CDO.message"
.Send
End With

Set cdoMessage = Nothing
Set cdoConfig = Nothing
%>

答案1

在错误页面设置中,您可以设置如何显示错误:

在此处输入图片描述

相关内容