Classic ASP error line 0 column -1

走远了吗. 提交于 2019-12-06 12:02:38

You could create a simple separate ASP page that would trigger an error. For example :

<%
Option Explicit
a = 1
%>

Browse to the page and see what happens. If you still got no error informations it is probably IIS configuration. Otherwise you may have some really curious error, but nothing I've ever seen in the past.

A bit late on my reply, hopefully you have solved this by now and this will simply help someone else in our position later.

In IIS, open the site and then the Error Pages feature. Select "Edit Feature Settings..." from the right side and change to "Detailed errors". Refresh the page throwing the error and you should see the true error which is occurring.

I had 2 errors which could cause this: missing DB Provider and using Option Explicit with an undeclared variable.

Hope this helps someone!

In IIS7 and later, there's a bug whereby only the default error handler gets full error details - if you call Server.GetLastError() from a custom error page that's configured for a specific error code, everything comes back blank.

There is a workaround, though - if you set the site’s default error property (under IIS settings > Error Pages > Edit Feature Settings...) to your custom error page, IIS will invoke this page whenever an error is not handled by an explicitly configured status-code handler (so your 404, etc. handlers will still work) - but for some reason, handling the error this way means Server.GetLastError() still works properly

More details at https://dylanbeattie.net/2008/12/04/fun-with-servergetlasterror-in-classic.html

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