Forums
This topic is locked
JScript runtime error x server win 2003 configurat
Posted 18 Sep 2006 01:28:49
1
has voted
18 Sep 2006 01:28:49 fabio minhoca posted:
hiIm having a strange Jscript error, is a randomic error, sometime work fine e other stop the page with the error JScript runtime error '800a138f' . This error is from a shopping cart behavior (Ultracart) that before i change from service never been occoured, but after i change my service provider, this error persits.
The developer of ultracart send me a script to test the shopping cart behavior in my server, and this script only works fine in some services providers like u can see bellow:
emulatorbr.brinkster.net/sessaotesteservidor.asp
catvi.plughosting.com.br/sessaotesteservidor.asp
All servers run in a windows 2003 server
But in my actual service provider some happen and make the script stopped with the JScript error:
Microsoft JScript runtime error '800a138f'
'Data' is null or not an object
/sessaotesteservidor.asp, line 11
Bellow u can see the script:
<%@LANGUAGE="JAVASCRIPT" CODEPAGE="1252"%>
<%
function MyCartObj(Name) {
this.Data = null;
this.Name = Name;
// METHODS
this.Persist = Persist;
if (Session(Name) != null)
{
this.Data = Session(Name).Data;
}
else
{
this.Data = "My Data";
this.Persist();
}
}
function Persist() {
var sObj = new Object();
sObj.Data = this.Data;
Session(this.Name) = sObj;
}
Response.Write("Session ID: " + String(Session.SessionID) + "<br>" // debug
var UCII = new MyCartObj("MyTestSession"
var UCII__i = 0;
if(String(Session("iCount") != "undefined" )
{
Session("iCount" += 1;
}
else
{
Session("iCount" = 1;
}
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
<meta http-equiv="refresh" content="1">
</head>
<body>
<p>My Session.Data equals: <%=UCII.Data%> </p>
<p>How many times the page has run: <%=Session("iCount"%></p>
</body>
</html>
The programmers of where my website is, believe that the error maybe can be by something in their configuration server (windows 2003), but they cant detect what is ? They thing that can be something that they use to be able to share the server with anothers users.
If someone here can help me i will be grathfull
Regards
Fábio