Email sent and I've also posted the contents of the file below... Anyway I
think it has something to do with storing an object inside a session
variable...
It's very random that's for sure
<%@LANGUAGE="JAVASCRIPT"%>
<%
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;
%>
<html>
<head>
<title>Untitled Document</title>
</head>
<body>
My Session.Data equals: <%=UCII.Data%>
</body>
</html>
--
JScavitto
""WenJun Zhang[msft]"" <v-wzhang DeleteThis @online.microsoft.com> wrote in message
news:hvAS33lMEHA.3064@cpmsftngxa10.phx.gbl...
> Hello,
>
> I've seen the problem:
>
> Session ID: 963127544
>
> Microsoft JScript runtime error '800a138f'
>
> 'Data' is null or not an object
>
> /vs149732_secure/testcart2.asp, line 12
>
> Since you stated the error occurs after migrating the application
> from a IIS5 box to IIS6, could you please provide with this page to
> perform some tests? I'd like to see if the same issue can be
> reproduced in my test environment.
>
> Best regards,
>
> WenJun Zhang
> Microsoft Online Support
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
<font color=purple> > Get Secure! - <a style='text-decoration: underline;' href="http://www.microsoft.com/security</font" target="_blank">www.microsoft.com/security</font</a>>
><!-- ~MESSAGE_AFTER~ -->
>> Stay informed about: IIS 6 Random Session Problem