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

Re: VBScript.Encode Trouble by Joshua

Joshua
Mon Dec 01 18:25:22 CST 2003

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
>
>



Re: VBScript.Encode Trouble by Eli

Eli
Tue Dec 02 06:54:56 CST 2003

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
>>
>>
>
>
>.
>

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
> >>
> >>
> >
> >
> >.
> >



Re: VBScript.Encode Trouble by Michael

Michael
Tue Dec 02 21:02:31 CST 2003

---snip---

> INVALID:
> Query = "SELECT Apples, " & _
> "Oranges, Grapes " & _
>
> "FROM Fruits;"
>

---snip---

> Resolution:
> Since standard VBScript allows for this to occur without error, I


??? Your example of INVALID code (with respect to the script encoder) throws
the *identical* error from an *unencoded* script on my W2K Pro sp3 box with
the same 5.6.0.8515 build of VBScript.


> would classify this as a bug in encoder, but since the extra lines
> are only for code presentation and readibility, just take them out.
>




--
Michael Harris
Microsoft.MVP.Scripting

Windows 2000 Scripting Guide
Microsoft® Windows®2000 Scripting Guide
http://www.microsoft.com/technet/scriptcenter/scrguide/sagsas_overview.asp

TechNet Script Center Sample Scripts
http://www.microsoft.com/downloads/release.asp?ReleaseID=38942

WSH 5.6 documentation download
http://www.microsoft.com/downloads/details.aspx?FamilyId=01592C48-207D-4BE1-8A76-1C4099D7BBB9&displaylang=en