Home All Groups Group Topic Archive Search About

No syntax error msgs in the Browser



Author
22 Mar 2006 7:54 AM
Robin
Hello!
I am useing ASP scripts with PERL and IIS 6.0 (Internet Information
Server). The scripts are useing the 'Response.Redirect "xxx.asp"' cmd.
Beside this there is a form which calls another ASP script in the
action part.
My problem is that the Browser does not print out Syntax Errors of my
script (for example a bracket is missing). Instead the very common
message appears:

HTTP 500 - Internal Servererror
Internet Explorer

With sripts which do not use the Redirect I have error messages with
line numbers in the browser window.

Is there a possibility to display Errors of my script if it uses
Redirects and Forms?

Beside this I am using a simple text editor without syntax
highlighting. Does anybody know an editor or programming tool
(freeware) which shows syntax errors in the combination of
ASP/HTML/PERL in one script?
Eclipse for example does only recognize Perl errors. But in my
application the Perl code is embedded in the ASP code.

Thank you

Udo Schmitt

Author
22 Mar 2006 9:32 AM
Lee Carnell
> My problem is that the Browser does not print out Syntax Errors of my
> script (for example a bracket is missing). Instead the very common
> message appears:
>
> HTTP 500 - Internal Servererror
> Internet Explorer
>
> With sripts which do not use the Redirect I have error messages with
> line numbers in the browser window.
>
> Is there a possibility to display Errors of my script if it uses
> Redirects and Forms?

Turn off 'Show friendly HTTP error messages'

In Internet Explorer:

    Tools >> Internet Options >> Advanced
    Uncheck 'Show friendly HTTP error messages'


> Beside this I am using a simple text editor without syntax
> highlighting. Does anybody know an editor or programming tool
> (freeware) which shows syntax errors in the combination of
> ASP/HTML/PERL in one script?
> Eclipse for example does only recognize Perl errors. But in my
> application the Perl code is embedded in the ASP code.

Persoanally I use Textpad, it's not freeware but there is a trial
version:

http://www.textpad.com

Cheers,

Lee
Author
22 Mar 2006 12:06 PM
Robin
Thank you Lee,

Lee Carnell schrieb:

>
> Turn off 'Show friendly HTTP error messages'>
> In Internet Explorer:
>
>     Tools >> Internet Options >> Advanced
>     Uncheck 'Show friendly HTTP error messages'
>

This is a good solution. But the script with the action part (of forms)
returns immediately with no action (because of the error) and no error
message will be printed out.

>
> Persoanally I use Textpad, it's not freeware but there is a trial
> version:
>
> http://www.textpad.com
>

I will try it. Thank you very much for your help.

Cheers,

Udo
Author
22 Mar 2006 1:32 PM
Lee Carnell
Hi Udo
>>
>
> This is a good solution. But the script with the action part (of forms)
> returns immediately with no action (because of the error) and no error
> message will be printed out.
>
>>

Can you not simply take out the 'redirect' to test the page and introduce it
once more once you have de-bugged?

Lee
Author
22 Mar 2006 1:39 PM
Jeff
With the new host that I have. There was an option in the control panel that
when unchecked, allowed the errors to be shown.
Otherwise, I was getting the same thing.

Hope that helps.


Show quote
"Lee Carnell" <leexcarnell@gmailxcom> wrote in message
news:44215137$0$1175$5a6aecb4@news.aaisp.net.uk...
> Hi Udo
>>>
>>
>> This is a good solution. But the script with the action part (of forms)
>> returns immediately with no action (because of the error) and no error
>> message will be printed out.
>>
>>>
>
> Can you not simply take out the 'redirect' to test the page and introduce
> it once more once you have de-bugged?
>
> Lee
>
Author
22 Mar 2006 3:17 PM
Robin
Hi Lee,
>
> Can you not simply take out the 'redirect' to test the page and introduce it
> once more once you have de-bugged?

Redirect works. But forms have an action part. When this action script
(e.g called after preesing a button) has an error, I cannot see the
error.

....

Oh yes! I can remove the redirects in the action script.

Thanks

Udo
Author
22 Mar 2006 4:44 PM
Kyle Peterson
read the 1st part
http://www.powerasp.com/content/hintstips/common_sense.asp


Show quote
"Robin" <Ro***@123schmitt.de> wrote in message
news:1143014066.212259.25830@i40g2000cwc.googlegroups.com...
> Hello!
> I am useing ASP scripts with PERL and IIS 6.0 (Internet Information
> Server). The scripts are useing the 'Response.Redirect "xxx.asp"' cmd.
> Beside this there is a form which calls another ASP script in the
> action part.
> My problem is that the Browser does not print out Syntax Errors of my
> script (for example a bracket is missing). Instead the very common
> message appears:
>
> HTTP 500 - Internal Servererror
> Internet Explorer
>
> With sripts which do not use the Redirect I have error messages with
> line numbers in the browser window.
>
> Is there a possibility to display Errors of my script if it uses
> Redirects and Forms?
>
> Beside this I am using a simple text editor without syntax
> highlighting. Does anybody know an editor or programming tool
> (freeware) which shows syntax errors in the combination of
> ASP/HTML/PERL in one script?
> Eclipse for example does only recognize Perl errors. But in my
> application the Perl code is embedded in the ASP code.
>
> Thank you
>
> Udo Schmitt
>

AddThis Social Bookmark Button