Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / December 2007

Tip: Looking for answers? Try searching our database.

Session_start event does not get fired

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
rockdale - 21 Dec 2007 14:32 GMT
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
vapor - 24 Dec 2007 15:13 GMT
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.

Signature

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

> Hi:
>
[quoted text clipped - 27 lines]
> thanks
> -rockdale

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.