Can't see the errors on classic asp sites

后端 未结 2 1488
一个人的身影
一个人的身影 2021-01-14 23:56

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

相关标签:
2条回答
  • 2021-01-15 00:40

    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.

    0 讨论(0)
  • 2021-01-15 00:59

    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.
    0 讨论(0)
提交回复
热议问题