Sorry if this comes twice. I didn't see an email come threw the list serv after an hour.
Shouldn't that throw a 500 error cause its not technically a tango error and a database error. Like for example if your trying to put the same key in for a primary key it will throw an error and its not a tango error but actually from the database itself? Mike D Educational Directories Unlimited, Inc. Michael Dittbrenner Programmer http://www.StudyAbroad.com http://www.GradSchools.com A service of EDU, Inc... http://www.EDUdirectories.com A partner of EDU Internet Strategies: http://www.EDUInternetStrategies.com/ [Phone] 610-499-9200 [Fax] 610-499-9205 [E-mail] [EMAIL PROTECTED] or [EMAIL PROTECTED] -----Original Message----- From: Dave Machin [mailto:[EMAIL PROTECTED] Sent: Thursday, August 07, 2003 1:26 PM To: [EMAIL PROTECTED] Subject: Re: Witango-Talk: Get error 500 instead of my error HTML? Do you put the <@clearerrors> in the beginning of the error HTML for the DBMS action? ----- Original Message ----- From: "John McGowan" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, August 07, 2003 9:38 AM Subject: Re: Witango-Talk: Get error 500 instead of my error HTML? > Dave, > > If you want it to work like that for everybody, then you will need to > execute a <@clearerrors>. Which should clear the error and set the > status code back to 200, however, that was a bug with witango when > they made the error handling "more functional" @clearerrors wasn't > setting the status back to 200. So in the meantime you can do it > yourself by assigning the httpheader with the following code... > > <@ASSIGN local$httpHeader "HTTP/1.1 200 OK<@CRLF>Content-Type: > text/html<@CRLF><@SETCOOKIES><@USERREFERENCECOOKIE><@CRLF><@CRLF>"> > > I haven't tested yet to see if the bug with @clearerrors not setting > the status to 200 was fixed in 062 or not. Didn't see it in the > readme file. > > Of course if you're the only one who needs to see the code in the > error results then scotts solution will work just fine for you > > However I know that not all errors encountered are really errors that > warrant a 500 being sent back to the browser.... (that's why I use the > @clearerrors tag) > > /John > > Scott Cadillac wrote: > > >Hi Dave, > > > >The Error handling in v5 has been upgraded to be more functional. > > > >The "HTTP 500 - Internal Server Error" page you see is actually > >coming from > >MS Internet Explorer. Witango has simply sent back a proper HTTP > >status code > >(via IIS) identifying an error. > > > >In MSIE, go to "Tools / Internet Options... / Advanced tab" and > >toggle the > >"Show friendly HTTP error messages" setting. > > > >You should now be able to see your Witango errors. Cheers.... > > > >Scott Cadillac, > >Witango.org - http://witango.org > >403-281-6090 - [EMAIL PROTECTED] > >-- > >Information for the Witango Developer Community > >--------------------- > > > >XML-Extranet - http://xml-extra.net > >403-281-6090 - [EMAIL PROTECTED] > >-- > >Well-formed Development (for hire) > >--------------------- > > > > > > > > > >>-----Original Message----- > >>From: Dave Machin [mailto:[EMAIL PROTECTED] > >>Sent: Thursday, August 07, 2003 10:07 AM > >>To: [EMAIL PROTECTED] > >>Subject: Witango-Talk: Get error 500 instead of my error HTML? > >> > >> > >>Sometimes when a database action fails I get IIS's "HTTP 500 > >>- Internal > >>server error" page instead of the error HTML I have associated with > >>the DBMS action - is this normal? (W2K SP3 - IIS5, WiTango 5). > >> > >>Dave Machin > >> > >> > >>______________________________________________________________ > >>__________ > >>TO UNSUBSCRIBE: Go to http://www.witango.com/maillist.taf > >> > >> > >> > > > >_____________________________________________________________________ > >___ > >TO UNSUBSCRIBE: Go to http://www.witango.com/maillist.taf > > > > > > > > > ______________________________________________________________________ > __ > TO UNSUBSCRIBE: Go to http://www.witango.com/maillist.taf > > ________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/maillist.taf ________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/maillist.taf
