问题
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:
- In IIS under Debugging Properties you set:
Send Errors to Browser
toTrue
. - In IIS under
Error Pages
you set the settings toDetailed Errors
. - Give write permissions on the website folder to the IIS_ISRS builtin group
- Checked all of the source code for something like:
On Error Resume Next
,On Error GoTo
orIf Err.Number
. - If using Internet Explorer you have to disable
Show Friendly HTTP Error Messages
in located inTools/Internet Options/Advanced
Under theBrowsing
section uncheck/disableShow 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