IIS 7 and Above
Server.GetLastError() not working on IIS8.5
Last post Jul 18, 2018 02:58 AM by deepakpanchal10
Jul 17, 2018 05:29 PM|osbornj6|LINK
I've got an old, Classic ASP application that is now running on Windows 2012R2 under IIS8.5. I've created a custom page to handle 500 errors, and used httpErrors configuration to reference it when an error occurs in any of the .asp pages within the application.
However, when the custom pages executes and attempts to retrieve the details of the last error with Server.GetLastError(), it is essentially blank, so I can write nothing useful to a local logfile or in any Email.
I've spent hours looking for useful "hits" from search engines, but so far I've not managed to find a working solution to this, despite many different attempts and clues, usually from people who encountered this when they first migrated from IIS6 to II7.
Would appreciate any useful tips or pointers, especially with reference to to configuration in the relevant XML files. Thanks in advance.
Jul 18, 2018 02:58 AM|deepakpanchal10|LINK
I try to refer the documentation for Server.GetLastError Method
and find that is for IIS 6.
Then after there is no any other documentation was published.
I also try to check some older threads but no one are using IIS 8.5.
So at present I am not sure that whether it supports IIS 8.5 or not.
I will try to make a test and let you know about my testing results, Once I finished the testing.
Thanks for your understanding.