Jazza
Jazza

Reputation: 1082

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.

Upvotes: 10

Views: 9579

Answers (4)

Brad Jareczek
Brad Jareczek

Reputation: 1

I had to remove the following tag in SharePoint 2010 web.config:

< remove name="Session" />

Upvotes: 0

craigmoliver
craigmoliver

Reputation: 6562

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

Upvotes: 1

Gulzar Nazim
Gulzar Nazim

Reputation: 52198

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

Upvotes: 2

BigJump
BigJump

Reputation: 16419

Are you sure the website in IIS is set to use ASP.NET 2.0 rather than 1.1?

Upvotes: 0

Related Questions