Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
inet
active_desktop
active_scrptng
asp.components
asp.db
asp.general
comctl32
comp.packaging
components.dev
dbweb
dhtml_editing
docobjects
html_authoring
html_objmodel
iis
iis.ftp
iis.security
iis.smtp_nntp
indexserver
misc
mshtml_hosting
scripting.jscript
scripting.vbscript
sdk_setup
shell_objmodel
urlmonikers
webbrowser_ctl
wininet
  
 
date: Sat, 19 Apr 2008 09:24:43 +0200,    group: microsoft.public.inetsdk.programming.scripting.vbscript        back       


SCRENC with Vista SP1   
Hi there,

I hope I am posting to the coorect news group, if not please point me to the 
correct one. I installed Vista SP1 yesterday and MS SCRENC stopped working. 
It gives an error message and of course does not encode. We are encripting 
ASP pages written in VB script. Is there a solution to the problem.

Regards,
George
date: Sat, 19 Apr 2008 09:24:43 +0200   author:   GVG

RE: SCRENC with Vista SP1   
I ran into the same problem. I found that specifying the /xl or -xl switch 
made it work and encode. However, this leaves out the <%@ LANGUAGE = 
VBScript.Encode %> line from the top of the encoded file and therefore causes 
a compile time error when you run the file:
Microsoft VBScript compilation error '800a0400' 

Expected statement 

main_nav.asp, line 2 

#@~^7AEAAA==@#@&ZG
^


I'm still looking for a good solution. If you find one, please post back here.

Thanks.


"GVG" wrote:

> Hi there,
> 
> I hope I am posting to the coorect news group, if not please point me to the 
> correct one. I installed Vista SP1 yesterday and MS SCRENC stopped working. 
> It gives an error message and of course does not encode. We are encripting 
> ASP pages written in VB script. Is there a solution to the problem.
> 
> Regards,
> George 
>
date: Mon, 26 May 2008 11:34:00 -0700   author:   TopCat

RE: SCRENC with Vista SP1 - Work Around   
I have found a work around for this problem. You can manually insert the <%@ 
LANGUAGE = VBScript.Encode %> line into the top of the encoded file, and it 
will work fine. So you can use the /xl switch, then copy the file with 
another file before it that just has the line in it:

copy /b header.inc+myencodedfile.asp finalserverfile.asp

You have to use the /b switch so that the EOF character is not inserted at 
the end of the output file. 

Another way to do it is to insert it in a text editor. However, some lines 
are very long and that approach won't work for them.

Alternatively, you can write a program that inserts the line at the 
beginning and copies the file, as I did. This approach can allow for 
automatic handline of files that begin with <%@ ENABLESESSIONSTATE = True %> 
or other such @ Directives, since only one such line can exist in the output. 
The above example needs to be turned into:
<%@ LANGUAGE = VBScript.Encode ENABLESESSIONSTATE = True %>

So, even though the documentation says you can't change the file due to 
checksum calculations, it appears that you can change this top portion quite 
successfully.
date: Tue, 10 Jun 2008 16:45:01 -0700   author:   TopCat

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us