This is a discussion on "Server.GetLastError" within the Classic ASP section. This forum, and the thread "Server.GetLastError are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Server.GetLastError
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Server.GetLastError
I want to create my own error pages. My users freak out when they get a real error page.
So I went and did some research and stumbled upon Server.GetLastError. I thought, "Well this doesn't look hard". Ha. What I want is to have an email with all the pertinate information sent to me so that I see the error details (some users couldn't figure out how to get that to me so I want to get the info myself). Then I want it to print out a generic error thing. This is what I encounter: My email script doesn't run. I've even changed the page and it doesn't seem to notice. Of course, I don't understand what's going on on the IIS side, so maybe it's something weird there. Thanks jakyra |
|
|
|
#2
|
|||
|
|||
|
Can you be more specific than: "My email script doesn't run"
Get any errors? Does it just hang? What version of IIS are you hosting this on? Server.GetLastError wont work on IIS4. Please provide more details, and maybe post some code? |
|
#3
|
||||
|
||||
|
You did tie this in via the custom error pages tab in the IIS Manager, yeah?
Also, did you tie it to the 500.100 error? make sure this is where it is applied to. This code is taken directly from the Microsoft Knowledge Base:-
__________________
Click the 'Thanks!' button if this post has helped you Rob - Webforumz Founder
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
#4
|
|||
|
|||
|
The original code looks like this:
The other thing, that I forgot to mention, is that when he got the file selector popup the options for file types were HML, HTML and ALL FILES. and, Mozilla doesn't know what to do with the file and pops open a dialog box saying that it's an octet stream that it doesn't know what to do with. It's like the server doesn't understand that it's an ASP file so it's not passing the page to the ASP server. jakyra (who needs to work on giving enough info) |
![]() |
| Tags |
| servergetlasterror |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| URGENT!!!! Send HTTP request from one web server to another server | chandra.nowduri | ASP.NET Forum | 1 | Aug 7th, 2006 19:18 |
| Need to process data on one server, utilize it on another server ... can it be done? | jaobrien | Classic ASP | 1 | Dec 6th, 2005 00:58 |
| XP as Server | jgbarber65 | Hosting & Domains | 1 | Dec 3rd, 2005 16:43 |