To get the ASP error message and line number in code, do the following:
1. Go to Error pages
2. Under actions click Add
3. Enter status code 500.100
4. Select ‘Execute URL on this site’
5. Enter your error page, i.e. 500.asp
Now the Server.GetLastError object will contain the full error information.