The information in this article applies to:
SYMPTOMSAn Active Server Pages (ASP) page encoded by using Microsoft Scripting Encoder 1.0 gives a scripting error, whereas the un-encoded version works fine. CAUSEThe Microsoft Scripting Encoder does not handle conditional inclusion of the source code correctly. If there is any conditional inclusion of client side and server side code, the encrypted code might be incorrect and give scripting errors. RESOLUTIONDo not include conditional code that involves the nesting of client-side and server-side code. The entire script block needs to be complete when it gets handed to the encoder. STATUSThis behavior is by design. MORE INFORMATIONThe following code demonstrates the problem. To reproduce the problem, copy the following ASP code and save it as Source.asp. Execute the following inline commands sequentially, and then run the Encoded.asp:
The files Source.asp and Output.asp work fine, but Encoded.asp does not.Changing the above ASP code into the following format overcomes this problem:
REFERENCESMicrosoft Scripting Technologies Additional query words: VBScript JScript Encoder
Keywords : kbGrpInet kbIE500 kbDSupport |
Last Reviewed: November 8, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |