Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Encrypted ASP doesn't work - misplaced @ command?

Status
Not open for further replies.

denoxis

Programmer
Jul 22, 2002
154
US
Hi,

I tried to encrypt my 70K-long ASP code. It's pure ASP, beginning with <% and ending with %> No HTML or anything. When I encrypt and upload it, web server gives &quot;Page Command Out Of Order&quot; error at the first line. &quot;@ commands must be at the first line&quot; it says. First line is this:

<%@ LANGUAGE = VBScript.Encode %>

On the other hand, I created a quick test code with response.write and encrypted it. The very first line is exactly same as the one above. But it worked. If I encrypt without adding the line above it won't work at all.

What might be the problem you think?
 
Double check that you aren't including any other asp files that have language defined at the top. This is generally the cause of the error you displayed, in that programmers will forget and use that line at the top of a script that is being included.

Hope this is the solution, only thing I could think of off the top of my head,
-Tarwn ________________________________________________________________________________
Want to get great answers to your Tek-Tips questions? Have a look at faq333-2924
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top