Welcome to HostingForumz.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

IIS 6 Random Session Problem

 
   Web Hosting Problem Solving Community! (Home) -> IIS RSS
Next:  Problem logging into SUS  
Author Message
nospam140

External


Since: Apr 30, 2004
Posts: 5



(Msg. 1) Posted: Sat May 01, 2004 12:41 am
Post subject: IIS 6 Random Session Problem
Archived from groups: microsoft>public>inetserver>iis (more info?)

I seem to have a random problem with session variables that did not exist
with IIS 5

If you load this page
<a style='text-decoration: underline;' href="https://wic005u.server-secure.com/vs149732_secure/testcart2.asp" target="_blank">https://wic005u.server-secure.com/vs149732_secure/testcart2.asp</a>

and press F5 a couple of time you will eventually get this error

<<
Microsoft JScript runtime error '800a138f'
'SC' is null or not an object
  >>

Now the odd part is I know I'm not lossing the session nor does the
SessionID change
This is the code for the page

<%@LANGUAGE="JAVASCRIPT" CODEPAGE="1252"%>
<%
function MyCartObj(Name) {
this.SC = null;
this.Name = Name;

// METHODS
this.Persist = MyClassPersist;

if (Session(Name) != null)
{
Response.Write(String(Session.SessionID) + "<br>"); // debug
this.SC = Session(Name).SC;
}
else
{
this.SC = "Loaded"; // a simple test but normally an array
this.Persist();
}
}

function MyClassPersist() {
var sObj = new Object();
sObj.SC = this.SC;
Session(this.Name) = sObj;
var sObj = null;
}
%>

<%
var UCII = new MyCartObj("MyTestSession");
var UCII__i = 0;
%>
<html>
<head>
<title>Untitled Document</title>
</head>
<body>
<%=UCII.SC%>
</body>
</html>

Any ideas on what this might be as I have code similar to this above in
VBScript and JavaScript on a thousand or more website and as they migrate to
windows 2003 they randomly display this error?



Now I've done some searching via google for sessions and iis 6 and the most
common answer is application pooling but that does not apply as application
pooling is not setup as a web garden and the option in the following
article - <a style='text-decoration: underline;' href="http://www.iisfaq.com/default.aspx?View=A560&P=1" target="_blank">http://www.iisfaq.com/default.aspx?View=A560&P=1</a> - is not enabled.


I'm just at a total loss here...and any help would be most appreciative.

--

JScavitto<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: IIS 6 Random Session Problem 
Back to top
Login to vote
user1375

External


Since: Feb 03, 2004
Posts: 423



(Msg. 2) Posted: Mon May 03, 2004 11:50 am
Post subject: RE: IIS 6 Random Session Problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi,

I've refresh the page for many times and haven't gotten reproduce the
error. Probably the issue is related to client browser configuration,
take a look at the following KB:

You Cannot View Updates on the Windows Update Site Using Secure
Socket Layer
http://support.microsoft.com/?id=326253

Best regards,

WenJun Zhang
Microsoft Online Support
This posting is provided "AS IS" with no warranties, and confers no
rights.
Get Secure! - www.microsoft.com/security

 >> Stay informed about: IIS 6 Random Session Problem 
Back to top
Login to vote
nospam140

External


Since: Apr 30, 2004
Posts: 5



(Msg. 3) Posted: Mon May 03, 2004 4:48 pm
Post subject: Re: IIS 6 Random Session Problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

It also happens when not in ssl mode. I just used this ssl page because it
was the only page I could get it to trip pretty consistently but apparently
it is not doing it now.



Any other ideas?

--

JScavitto


""WenJun Zhang[msft]"" <v-wzhang DeleteThis @online.microsoft.com> wrote in message
news:$m4D5uOMEHA.3064@cpmsftngxa10.phx.gbl...
 > Hi,
 >
 > I've refresh the page for many times and haven't gotten reproduce the
 > error. Probably the issue is related to client browser configuration,
 > take a look at the following KB:
 >
 > You Cannot View Updates on the Windows Update Site Using Secure
 > Socket Layer
<font color=purple> > <a style='text-decoration: underline;' href="http://support.microsoft.com/?id=326253</font" target="_blank">http://support.microsoft.com/?id=326253</font</a>>
 >
 > 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 
Back to top
Login to vote
user1375

External


Since: Feb 03, 2004
Posts: 423



(Msg. 4) Posted: Wed May 05, 2004 8:00 am
Post subject: Re: IIS 6 Random Session Problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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.
Get Secure! - www.microsoft.com/security
 >> Stay informed about: IIS 6 Random Session Problem 
Back to top
Login to vote
nospam140

External


Since: Apr 30, 2004
Posts: 5



(Msg. 5) Posted: Wed May 05, 2004 7:17 pm
Post subject: Re: IIS 6 Random Session Problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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 
Back to top
Login to vote
user1375

External


Since: Feb 03, 2004
Posts: 423



(Msg. 6) Posted: Thu May 06, 2004 11:23 am
Post subject: Re: IIS 6 Random Session Problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi,

The code running quite stablely on my IIS6 box(either https or http).
Please check if there is a global.asa under the Web Application's
root directory which may also affect something.

Storing COM objects in session is not recommended, for example: ADO's
RecordSet. However, I don't think this also applies to the objects
created in the ASP page.

Best regards,

WenJun Zhang
Microsoft Online Support
This posting is provided "AS IS" with no warranties, and confers no
rights.
Get Secure! - www.microsoft.com/security
 >> Stay informed about: IIS 6 Random Session Problem 
Back to top
Login to vote
user1375

External


Since: Feb 03, 2004
Posts: 423



(Msg. 7) Posted: Thu May 06, 2004 11:26 am
Post subject: Re: IIS 6 Random Session Problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

You may create a directory as a new application in IIS and place the
page into it to run(same as my test environment), see what happens.

Best regards,

WenJun Zhang
Microsoft Online Support
This posting is provided "AS IS" with no warranties, and confers no
rights.
Get Secure! - www.microsoft.com/security
 >> Stay informed about: IIS 6 Random Session Problem 
Back to top
Login to vote
nospam140

External


Since: Apr 30, 2004
Posts: 5



(Msg. 8) Posted: Fri May 07, 2004 3:55 pm
Post subject: Re: IIS 6 Random Session Problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I removed the global.asa but it still does it and as you can see from the
code I'm not storing a com object... in the none stripped down code I'm
storing an array of strings and numbers but I tried to simplify the code to
make sure it wasn't me anyother ideas?

--

JScavitto


""WenJun Zhang[msft]"" <v-wzhang.TakeThisOut@online.microsoft.com> wrote in message
news:QMzW%23N0MEHA.304@cpmsftngxa10.phx.gbl...
 > Hi,
 >
 > The code running quite stablely on my IIS6 box(either https or http).
 > Please check if there is a global.asa under the Web Application's
 > root directory which may also affect something.
 >
 > Storing COM objects in session is not recommended, for example: ADO's
 > RecordSet. However, I don't think this also applies to the objects
 > created in the ASP page.
 >
 > 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 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting Problem Solving Community! (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can 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



[ Contact us | Terms of Service/Privacy Policy ]