Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.Net Session_Start event not firing

I have an ASP.Net 2.0 application in which the Session_Start event is not firing in my Global.asax file. Can anyone tell why this is happening and how I can get it working?

The application worked fine on my Windows XP development machine, but stopped working when deployed to the server (Win Server 2003/IIS 6/ASP.Net 2.0).

I'm not sure if this is relevant, but the server also hosts a SharePoint installation (WSS 3.0) which I know does change some settings at the default web site level.

like image 390
Jazza Avatar asked Sep 16 '08 12:09

Jazza


2 Answers

Is the site precompiled before adding global.asax? Try compiling it again.

like image 164
Gulzar Nazim Avatar answered Oct 24 '22 04:10

Gulzar Nazim


Is the <session /> section in the web.config?

like image 28
craigmoliver Avatar answered Oct 24 '22 03:10

craigmoliver