Forums

ASP

This topic is locked

Microsoft JScript runtime error '800a138f'

Posted 11 Sep 2006 06:52:47
1
has voted
11 Sep 2006 06:52:47 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

Replies

Replied 11 Sep 2006 07:14:22
11 Sep 2006 07:14:22 Kelly Bell replied:
Hey. I ran the script on my server and it worked 100% OKAY!
Who is your hosting provider? They might have banned it.

Ask your Hosting Provider to enable your script.
Replied 11 Sep 2006 16:52:27
11 Sep 2006 16:52:27 fabio minhoca replied:
This is the worst problem they dont know how to make my script works !!!!

Reply to this topic