Custom Error Messages To Alert Me
I have a site that currently has custom error messages enabled for all error messages, i.e. any error goes directly to error.asp etc. What I want to do however is have this error.asp email me with a fairly detailed error message outlining the problem that caused the error.
What is the best way of doing this? My server allows me to setup custom messages for any type of error but obviously to do this would be time consuming. Is there a way I can basically email myself an almost exact copy of the error message that I would get if I was viewing the page and the error happened to me?
For example, a 501.100 error can cover any number of error and whereas a message telling me that a person got a 501.100 at 12.43 on 31/5/2004 is ok it isn't very helpful. I want it to say:
501.100 at 12.43 on 31/5/2004
Error Type:
Microsoft VBScript compilation (0x800A03F9)
Expected 'Then'
/kshs/cms/cmsDefault.asp, line 54, column 39
View Replies
ADVERTISEMENT
On windows xp we can modify 500-100.asp file for custom asp error messages. How can we do this on a windows NT 4.0 and IIS.or what is the similar file on NT and IIS?
View Replies
View Related
I'm running asp on MS Server 2000. Running Internet Explorer I used to get a
proper message with page and line number when there was a bug in my asp
code. Suddenly I'm not getting these any more, I just get the standard
HTTP 500 - Internal server error
Internet Explorer
page which is completely useless.
In Tools/Internet Options/Advanced neither "Disable Script Debugging" or
"Disable a notification about every script error" is checked, though I think
these only apply to scripts running in the client e.g. javascript.
View Replies
View Related
I'm using IIS from win xp pro and normally when my page doesn't work i get
the error message but not on my computer....
Someone told me that i had to check the option in my IE, i did that but i
still don't get the messages. In my IIS i told him to activate errormessages
on the client and server but nothing
View Replies
View Related
I have inserted a free forum from youngpip.com into a website (www.mrmci.com/discuss) and although it works fine on my pws it keeps generating error 500 messages when on the net. Any attempt to write to the database returns this error (it reads from the DB fine).
Any ideas folks
View Replies
View Related
I am running a website on a IIS 5.0. I recently noticed that whenever I test an asp page, if there's an error in my ASP code, I do not see any details as to why the error occurred, but rather just a generic http 500 page...Before, it used to tell me for instance that a variable was not declared and also indicated the line number etc. but not anymore.
why is this and what do I need to change in IIS to get these detailed error messages back.
View Replies
View Related
I have a little gripe with my ASP pages, for some reason I am not getting error messages I would expect and don't know if it's an ASP thing, browser thing or IIS problem.
I use option explicit to ensure I define every variable. When I have forgotten to define one the error page just dislays the 500.100 error screen. I have ensured that in my IE 6 that 'show friendly http error messages' is unchecked but have the problem still.
I would have expected it to display some output and then state the error later in the page. How can I achieve this as I am totally stumped now.
View Replies
View Related
When you have a custom HTTP 500 error handler, how do you go about making sure all your previously opened recordsets/objects/connections/etc.are closed properly?
It would seem to me that once you hit a 500 error, you have no opportunity to close any of the previously opened objects, eventually causing memory leaks.
View Replies
View Related
When an HTTP 500.100 occure in IIS 5.0, I was getting redirected to a HTTP 500.100 -'page cannot be displayed' error page when there was an error, but now in IIS 6.0, I get 'Microsoft VBScript runtime error '800a01c2' ' nested within the page.
I'm trying to create my own error messages so it will re-direct to my own error page and send me an email. I used to be able to do this in IIS 5.0 but I can't seem to get it going in IIS 6.0 as it doesn't re-direct to a default error message.how to get IIS 6.0 to work like IIS 5.0, or is there another way of doing it, or is this not even an IIS problem.
View Replies
View Related
I've got an app I'm working on that sometimes will give me an error message and sometimes it won't. When it doesn't it just displays "Page cannot be displayed". Is there a code that will allow asp to display the error messages?
Here's the code I was using:
<%
dim objComm
set objComm = Server.createObject ("adodb.command")
objComm.activeconnection = MM_dbConn_STRING
objcomm.commandText = "dbo.aIssue"
objComm.commandtype = "adCmdStoredProc"
objComm.execute
%>
View Replies
View Related
I am testing my ASP page and when I click on the link to open up my new asp page I get "page cannot be displayed". When another person clicks on the she gets a descriptive error message about a Type Mismatch on a COM function call in whih I am passing a parameter. I see that I do have an error, but why am I NOT getting the same message the other person is?
View Replies
View Related
When a user tries to visit a non-existant page in our web site they receive a custom 404 error message. I want to capture the URL the user tried to visit. Does anyone know where I can find this string?
View Replies
View Related
I am still in the debugging of my website, but I'm nearing the end. As a last phase implementation, I want to be able to catch all asp errors and if there is one, send the user to a custom "sorry bout that" page, rather than having the errors displayed on that; if there aren't any errors, let the page load.
I setup the 404 error, but that doesn't seem to accomplish what I want.
View Replies
View Related
is there a way to make custom error pages specific to a particular page?I know you can make customer error pages for iis to use.but if there is an error on a particuar page, can i make a custom error page to be redirected to?
for example,if a user is clicking away and runs into an error,it would display error1.htm.if they were on a different page and an error occured,they would get an error2.hm.
View Replies
View Related
Just a quick question about making a custom error handler. Can I use. Code:
<%On Error Response.Redirect("error.asp")%>
instead of defining a custom error page in IIS? My site is hosted by an ISP so doing the latter would leave me completely without error messages; my way I could comment out the On Error code when debugging.
View Replies
View Related
why I can't use custom error messages with the asp extension in IIS5.1? I have set up a custom page to handle errors called errorHandler.asp and all HTML is rendered but not the asp.
If i put Hello World in the html body section it renders but if I put the same in a response.write of the asp it won't render.
View Replies
View Related
I have created a custom error page using asp. When I upload it to my site to test that it works, it appears to run fine. I have set it up so that an email would be sent to me if there is a page that can not be found. I first tested the page to make sure an email would be sent to me and it works.
Then I made sure that my server variables where be queried by printing them to the screen. But when I go in to IIS to point the 404 error to my new page and test it, the page is processed like straight html and not as an asp page.
View Replies
View Related
i have looked around on google and on here but cant find a decent example of making a custom 500 error page. I want an example that i can look at and unserstand then amend for my own needs (ie emailing the errors etc).
Can someone point me in the right direction?
View Replies
View Related
I set up a custom error 404 page as URL and it works sometimes but not always. The problem is when the URL contains special characters, like [ or : , it produces the error message:
The system cannot find the file specified. and nothing else. The response code is 404, and it does not contain any other info in the response header. The server is IIS5.
The odd thing about this problem is that it happens on only one server that I am aware of. Most of my clients do not have this problem, so I suspect that this is a server related issue instead of coding issue. What can possibly cause this problem?
View Replies
View Related
I have a problem when a user login to the site and when they tried to write or reply a message to other user I got this error message:
Server object error 'ASP 0177 : 800401f3'
Server.CreateObject Failed
/write.asp, line 122
800401f3
I am running windows 2003 server with IIS6 installed with all the access component install. I am not sure what causing it. The weird part it sent or reply messages to the user but it just give that error messages. I had include the error code below write.asp I only copy and paste half the text in here. Code:
View Replies
View Related
I just upgraded to Windows XP Pro from Windows 2000 Pro. All my ASP stuff seems to work, except that when an ASP page generates an error, and the Error handling is set to "On
Error Goto 0" the page just stops, as if I typed a response.end, and no
error information is returned to the client. If I set On Error Resume Next,
and write err.desc after the offending line, the error text is written
correctly. For debug purposes of course it is nice to be able to
immediately see the line number, and description though.
Anyway, does anybody know what setting I need to change to fix this? I have
server side, and client side debug set, and I have it set to send detailed
errors to the asp page.
Another interesting thing is if there is a compile-time error, like a syntax
error, or something, the page doesn't load, but I get the error message
until an error happens with the above condition, after that, it will just
return a blank page.
View Replies
View Related
I want to do error handling in my application. I have made a complete application. but when I encounter errors. I want to do error handling. how can I do it?
I mean like in this case I can see if the record is being added duplicate then I can always check for duplicate records and throw a message. but I will face so many errors like this??? do we have a list ..whereby I can get all the error numbers and there meanings and I generate my own user-friendly errors?
Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
[Microsoft][ODBC Microsoft Access Driver]
View Replies
View Related
I have a custom 404 error page. When I change my site properties in IIS (IIS 5.0, BTW) to point to a file, I still get the original 404 error page. But, then I copied my error page to my root, then pointed to it via URL and it works! BUT, I would prefer to use the file page instead of the URL.
View Replies
View Related
We currently have custom error logging setup on all of our websites. We
have IIS setup to redirect to our custom 500-100.asp page which logs the
error to a database and then redirects to a friendly error message page.
Last week we were working on a pretty troublesome error on our intranet site
and noticed huge discrepencies between the IIS Log and our error log
database. On this particular day for this particular site, the IIS Log has
literally thousands more errors logged than our database does.
I am very familiar with ASP error logging and completely understand how our
current system is working. I've been given the task of figuring out why
there are more errors in the IIS Logs than in our "dbSiteErrorLog" database,
the destination db of our custom 500-100 page.
View Replies
View Related
I have 404.asp file that catches non existing pages such as www.site.com/es for spanish version of site. Now I would like to move ahead and have es.site.com instead. I started digging into subdomains in IIS and found out that usually when creating subdomain in IIS it creates a separate sub-directory by the same name as the subdomain created. From some reason the custom error 404.asp file I already have is not called when a call to a non existing sub domain page is made.
Anyone knows why?
How do I configure 404.asp to also handle subdomain page requests?
I know that in Unix/Apache I can use .htaccess file to direct calls to es.site.com to www.site.com/es quite easily, can this be done somehow on IIS?
View Replies
View Related
I store few pending task in Access or MS SQL and set the deadline to
each item. While I am viewing the webpage, it will give message or
alert with specific time. How can I do in ASP?
View Replies
View Related
I want to show an alert("message") in the new window that is opend after I did a redirect:for example (that doesn't work):
Response.Write(" <script type=""text/javascript""> ")
Response.Write(" window.location.href=""Scenario.asp""; ")
Response.Write(" window.alert(""Scenario saved!""); ")
Response.Write(" </script> ")
Remember that I write in server-side.
View Replies
View Related
I have the following code which add a new record to database, after the record has been added. I want to prompt a message "Hello". But the following script does not promt.
Response.Write("<script>")
Response.Write("alert (""Hello"");")
response.write("</script>")
It just goto Response.redirect "OS_addnew.asp"
The following is my complete code:
View Replies
View Related
I am using a form that has action = aspemail.asp I want to write code that will alert the user if not entered properly or at all their e-mail address, and another to alert to enter their contact phone number, or if they left a field empty.
one line in the asp file is : strEmailUser = request.form("email")
View Replies
View Related
I have a list of events reading from an Access db. One field gives the total number of candidates that are allowed to apply and another gives the total that have currently applied. There's another field which will act as a flag. Eg if 50 are allowed to apply and 40 have applied then a message will appear saying "event nearly fully booked". At this point I want to send an email to the admin letting them know the course is nearly booked, how would I go about it?
View Replies
View Related
i want to do something in ASP that is exactly same as alert for mail when we are using some messanger. Say for example when we are online on yahoo messanger, we get alerts for new mails.
View Replies
View Related
How can I check if the file is an JPG within my form??
If the file is JPG then the submit button should be enable, if not the
submit button should be disable
View Replies
View Related
Am implementing an alert system that will notify users by mail of activity on a pre-defined date. What function or event can I use to achieve auto-execution of this alert on a specified date without human intervention.
View Replies
View Related