Forums

This topic is locked

Microsoft JScript runtime error '800a138f'

Posted 11 Sep 2006 06:51:17
1
has voted
11 Sep 2006 06:51:17 fabio minhoca posted:
I have recently changed service providers and since then keep getting this error : Microsoft JScript runtime error '800a138f'

'Data' is null or not an object

/sessaotesteservidor.asp, line 11

when trying to access my session test page from ultracart.

I make a search in the net and it look likes that is a problem with a IIS6 to manipulate sessions , anyone know something??

See the code:

<%@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>



Im stucked here and need a urgent help

Reply to this topic