I have transferred a classic asp website onto a new windows server 2008 / iis 7 setup.
Previously (iis 6) I had a custom error 500 page that logged any server 500 errors into a database.
The same error page does not work on the new server. I have set the custom error page in iis manager and the page displays when there is an error but the Server.GetLastError() doesn't seem to hold any info about the error, so nothing is logged in the db (line number etc).
I tried to do the fix by davidtg in this post but when I try I get an error popup saying lock violation in iis manager.
Any ideas?