Re: VBScript.Encode Trouble by Joshua
Joshua
Tue Dec 02 11:31:36 CST 2003
In hopes that this helps someone else, here is the cause of the error I was
getting:
Env:
Window 2000 Server SP4
VBScript 5.6.8515
Error:
Microsoft VBScript compilation error '800a03ea'
Syntax error
?, line 0
Cause:
screnc.exe does not allow for blank lines within syntax spanned over
multiple lines using the line continuation character (_)
Examples:
INVALID:
Query = "SELECT Apples, " & _
"Oranges, Grapes " & _
"FROM Fruits;"
VALID:
Query = "SELECT Apples, " & _
"Oranges, Grapes " & _
"FROM Fruits;"
Resolution:
Since standard VBScript allows for this to occur without error, I would
classify this as a bug in encoder, but since the extra lines are only for
code presentation and readibility, just take them out.
I hope this saves somebody from the headache it gave me.
-joshua
"Eli" <elizino4@netscape.net> wrote in message
news:0a8001c3b8d3$7cbe1c70$a301280a@phx.gbl...
> Hi Joshua,
>
> I also have problem encoding ASP files.
> I am getting this error,
>
> Scripting encoder object ("Scripting.Encoder") failed on
> C:\Encoded Script\ine2c.asp
>
> According to Microsoft, there are four kinds of files that
> can be processed by the Script Encoder. They are:
>
> ASP, HTML, Plain text, and Scriptlet. I have no problem
> encoding Scriptlet, however I cannot do the same with ASP
> files, I have tried to encode different asp file but none
> works.
>
> Eli Zino
>
>
> >-----Original Message-----
> >i should add that the unencoded ASP file executes without
> error.
> >
> >-joshua
> >
> >"Joshua" <joshua@beaconia.com> wrote in message
> >news:%23Uq2ikGuDHA.1764@TK2MSFTNGP10.phx.gbl...
> >> When using screnc.exe to encode ASP files, the
> resulting encoded ASP file
> >> produces the following error:
> >>
> >> Microsoft VBScript compilation error '800a03ea'
> >> Syntax error
> >> ?, line 0
> >>
> >> The ASP page is being served on the same server it was
> encoded on:
> >>
> >> Window 2000 Server SP4
> >> VBScript 5.6.8515
> >>
> >> Any ideas? Thanks.
> >>
> >> -joshua
> >>
> >>
> >
> >
> >.
> >