HighTechTalks DotNet Forums  

Session_start event does not get fired

ASP.net ASP.net discussions (microsoft.public.dotnet.framework.aspnet)


Discuss Session_start event does not get fired in the ASP.net forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
rockdale
 
Posts: n/a

Default Session_start event does not get fired - 12-21-2007 , 09:32 AM






Hi:

I have a web application which runs fine on our production server. But
now when I install abother production server, it gets
"System.NullReferenceException: Object reference not set to an
instance of an object". It is because the session variable does not
initialized. in my session_start event, I have initialized all the
session variables, and it works on my another production server.

I comapred 2 server's configuration, they are both windows 2003
stardand edition, but the works one is service pack 1 and the new
production server is service pack 2, also on the new production server
IIS I deleted the "default web site".

On Properties >Home Directory > Configuration > Options
Enable session state is enabled, session timeout is 20 minutes on both
machine.

On Properties > ASP.NET > Edit Configuration > state management
Session state mode: inProc, Cookieless mode: UserCookies, session
timeout: 20min

and I am running under ASP.NET version 2.0.50727

I also ran aspnet_regiis.exe -i to reinstall asp.net.

does service pack 2 or delete default web site have anything with this
problem? Please help....

thanks
-rockdale



Reply With Quote
  #2  
Old   
vapor
 
Posts: n/a

Default Re: Session_start event does not get fired - 12-24-2007 , 10:13 AM






I've hardly seen an instance when session start does not fire. I would first
suspect the code. Remove all your application logic in the start handler and
write a simple test page that manipulates session. See if that works. Then
start adding back the logic one bit at a time. See if that works.

--
--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The O.W.C. Black Book, 2nd Edition
Exclusively on www.lulu.com/owc $19.99

"rockdale" <rockdale.green (AT) gmail (DOT) com> wrote

Quote:
Hi:

I have a web application which runs fine on our production server. But
now when I install abother production server, it gets
"System.NullReferenceException: Object reference not set to an
instance of an object". It is because the session variable does not
initialized. in my session_start event, I have initialized all the
session variables, and it works on my another production server.

I comapred 2 server's configuration, they are both windows 2003
stardand edition, but the works one is service pack 1 and the new
production server is service pack 2, also on the new production server
IIS I deleted the "default web site".

On Properties >Home Directory > Configuration > Options
Enable session state is enabled, session timeout is 20 minutes on both
machine.

On Properties > ASP.NET > Edit Configuration > state management
Session state mode: inProc, Cookieless mode: UserCookies, session
timeout: 20min

and I am running under ASP.NET version 2.0.50727

I also ran aspnet_regiis.exe -i to reinstall asp.net.

does service pack 2 or delete default web site have anything with this
problem? Please help....

thanks
-rockdale




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.