Can't see the errors on classic asp sites

℡╲_俬逩灬. 提交于 2019-12-01 08:40:34

问题


There are sites that I am trying to migrate from Windows 2003 Server to 2008. Some of the sites shows blank pages when I visit them.

Obviously there are errors but I can't see anything.

I already enabled client side errors and detailed error pages but no luck.

Any idea ?


回答1:


So just to make sure you did all of this:

  1. In IIS under Debugging Properties you set: Send Errors to Browser to True.
  2. In IIS under Error Pages you set the settings to Detailed Errors.
  3. Give write permissions on the website folder to the IIS_ISRS builtin group
  4. Checked all of the source code for something like: On Error Resume Next, On Error GoTo or If Err.Number.
  5. If using Internet Explorer you have to disable Show Friendly HTTP Error Messages in located in Tools/Internet Options/Advanced Under the Browsing section uncheck/disable Show Friendly HTTP Error Messages.



回答2:


Are you using the Classic pipeline? If so only thing left is to make sure in the source code that there is no code that says on error resume next also make sure that you have classic-asp installed on the server for example you can just create a new page name it something like test.asp and inside write some code like:

<html>
<head>
<title>Test ASP Page</title>
</head>
<body>
<%
strMessage = "Hello World"
Response.Write (strMessage)
%>
</body>
</html>

then in your web browser run it and see if you get a message saying Hello World if not then you will need to install classic-asp.

Please Note: Classic ASP in NOT installed by default on IIS 7.0 / 7.5 look here if you need instructions on how to install it.



来源:https://stackoverflow.com/questions/11849428/cant-see-the-errors-on-classic-asp-sites

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!