Pablo Software Solutions Forum Index Pablo Software Solutions

 
 FAQFAQ   SearchSearch   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

server side JScript error

 
Post new topic   Reply to topic    Pablo Software Solutions Forum Index -> Quick 'n Easy Web Server
View previous topic :: View next topic  
Author Message
aerohost



Joined: 21 Aug 2008
Posts: 8
Location: San Diego

PostPosted: Sat Aug 23, 2008 4:41 pm    Post subject: server side JScript error Reply with quote

Hi, I am interested in buying Quick 'n Easy Web Server because I only
want to use it to test my ASP pages and I don't want to go to all the
trouble of installing IIS.

I downloaded the trial and ran a test on my current project, but I get
an error - something to do with 'server side JScript' (see full browser
error at the end of this message).

I use an ASP code generator (ASPmaker) and when I checked their
support forum, someone else had reported the same kind of error.

The response on that forum was "always use IIS, Quick 'n Easy Web
Server doesn't support all server functions"

Is that true, or is there a fix for this?

Tks, Adrian

Script error detected at line 2994.
Source line: // Server-side JScript functions for ASPMaker 6+ (Requires
script engine 5.5.+)
Script details:
2984 '### Set d = ew_CurrentMasterKeys()
2985 '### If d.Count > 0 Then
2986 '### k = d.Keys
2987 '### ew_CurrentMasterKey = d(k(0))
2988 '### End If
2989 '### Set d = Nothing
2990
2991 End Function
2992
2993 Response.Write "" & vbCrLf
2994
2995 // Server-side JScript functions for ASPMaker 6+ (Requires script
engine 5.5.+)
2996 // encrytion key
2997 EW_RANDOM_KEY = 'rUmDD4Lu5hd1TtfM';
2998
2999 function ew_Encode(str) {
3000 return encodeURIComponent(str);
3001 }
3002
3003 function ew_Decode(str) {
3004 return decodeURIComponent(str);
Description: Expected statement
-------------------------------
Below is the actual area of code in the asp file:
------------------------------------------------
' Return first master key
Function ew_CurrentMasterKey()

'### Dim d, k
'### Set d = ew_CurrentMasterKeys()
'### If d.Count > 0 Then
'### k = d.Keys
'### ew_CurrentMasterKey = d(k(0))
'### End If
'### Set d = Nothing

End Function
%>
<script language="JScript" runat="server">
// Server-side JScript functions for ASPMaker 6+ (Requires script engine 5.5.+)
// encrytion key
EW_RANDOM_KEY = 'rUmDD4Lu5hd1TtfM';

function ew_Encode(str) {
return encodeURIComponent(str);
}
Back to top
View user's profile Send private message
admin
Site Admin


Joined: 13 Apr 2005
Posts: 1472

PostPosted: Sat Aug 23, 2008 4:47 pm    Post subject: Reply with quote

Did you enable jscript in the server's options?
By default VBSCRIPT will be selected. You can not select 2 different scripting languages at the same time.

All scripts are executed by the Windows Scripting engine, so basically if IIS supports it then Quick 'n Easy Web Server supports it.
Back to top
View user's profile Send private message Send e-mail
aerohost



Joined: 21 Aug 2008
Posts: 8
Location: San Diego

PostPosted: Sat Aug 23, 2008 6:42 pm    Post subject: Reply with quote

Hi, I also downloaded and installed Windows Script Engine 5.6, but there was no change in the error.

Thanks, Adrian
Back to top
View user's profile Send private message
aerohost



Joined: 21 Aug 2008
Posts: 8
Location: San Diego

PostPosted: Sat Aug 23, 2008 6:43 pm    Post subject: Reply with quote

Hi, I also checked the VBSCRIPT setting and it was correct. I tried changing it to JSCRIPT, but that didn't help (it was a different error, but still didn't work).

Tks, Adrian
Back to top
View user's profile Send private message
aerohost



Joined: 21 Aug 2008
Posts: 8
Location: San Diego

PostPosted: Sat Aug 23, 2008 6:45 pm    Post subject: Reply with quote

Hi, one other thing - this code runs fine on my remote IIS server.

Tks, Adrian
Back to top
View user's profile Send private message
aerohost



Joined: 21 Aug 2008
Posts: 8
Location: San Diego

PostPosted: Sat Aug 23, 2008 7:49 pm    Post subject: Reply with quote

Hi, I've also tested this on both XP and Vista - same error.

Tks, Adrian
Back to top
View user's profile Send private message
admin
Site Admin


Joined: 13 Apr 2005
Posts: 1472

PostPosted: Sun Aug 24, 2008 8:45 am    Post subject: Reply with quote

The settings should be set to JSCRIPT.
You do not need to install the Windows Scripting Engine, it is installed on WIndows by default.
Back to top
View user's profile Send private message Send e-mail
aerohost



Joined: 21 Aug 2008
Posts: 8
Location: San Diego

PostPosted: Sun Aug 24, 2008 3:16 pm    Post subject: Reply with quote

Hi, if I change it to JSCRIPT, I get a different error:

Script error detected at line 1.
Source line: Const EW_PAGE_ID = "default"
Script details:
Description: Expected ';'

The code in the asp page looks like this:

1 <%
2 Const EW_PAGE_ID = "default"
3 %>
4 <!--#include file="ewcfg61.asp"-->
5 <!--#include file="aspfn61.asp"-->
6 <!--#include file="userfn61.asp"-->
7 <%
8 Response.Expires = 0
9 Response.ExpiresAbsolute = Now() - 1
10 Response.AddHeader "pragma", "no-cache"
11 Response.AddHeader "cache-control", "private, no-cache, no-store, must-revalidate"
12 %>

Thanks, Adrian
Back to top
View user's profile Send private message
admin
Site Admin


Joined: 13 Apr 2005
Posts: 1472

PostPosted: Sun Aug 24, 2008 10:03 pm    Post subject: Reply with quote

This is VBSCRIPT code!
If you select JSCRIPT then you can't use VBSCRIPT.
Back to top
View user's profile Send private message Send e-mail
aerohost



Joined: 21 Aug 2008
Posts: 8
Location: San Diego

PostPosted: Sun Aug 24, 2008 10:16 pm    Post subject: Reply with quote

Hi, ok, I understand that - it seems there are both types of scripts on the ASP pages. But why would this work on my remote IIS server, but not with Q&E Web Server on my local machine?

There must be a reason, and I'd really like to resolve it because I want to buy and use your product.

Thanks, Adrian
Back to top
View user's profile Send private message
admin
Site Admin


Joined: 13 Apr 2005
Posts: 1472

PostPosted: Mon Aug 25, 2008 7:30 am    Post subject: Reply with quote

Quick 'n Easy Web Server does not support two types of scripting languages at the same time. It's either VBSCRIPT or JSCRIPT.
Back to top
View user's profile Send private message Send e-mail
aerohost



Joined: 21 Aug 2008
Posts: 8
Location: San Diego

PostPosted: Mon Sep 01, 2008 2:28 pm    Post subject: Reply with quote

Hi Pablo, ok, I'll just use it for those projects where there aren't the two types of scripts combined.

So I purchased it and it is working well. However, I noticed it doesn't work when my laptop is offline. I'm using it only to test my ASP pages on my local machine, so is there a way to do this without being connected to the internet?

Thanks, Adrian
Back to top
View user's profile Send private message
admin
Site Admin


Joined: 13 Apr 2005
Posts: 1472

PostPosted: Mon Sep 01, 2008 7:12 pm    Post subject: Reply with quote

You should use a local ip address (localhost or 127.0.0.1) for local connections.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Pablo Software Solutions Forum Index -> Quick 'n Easy Web Server All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


SwiftBlue Theme created by BitByBit
Powered by phpBB © 2001, 2002 phpBB Group