ASP.NET Session State Error only on default document
Posted
by schmidty
on Stack Overflow
See other posts from Stack Overflow
or by schmidty
Published on 2010-03-26T18:03:11Z
Indexed on
2010/03/26
19:43 UTC
Read the original article
Hit count: 527
I have a site where when accessing via site.com/default.aspx everything is fine, however when accessing via site.com/ I get a session error as follows:
"Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive. Please also make sure that System.Web.SessionStateModule or a custom session state module is included in the \\ section in the application configuration."
I have confirmed that default.aspx is the highest priority default document and that it is the page being loaded. However why is this session error only occurring when accessing via the default document?
The server is 2008 R2 and IIS 7.5.
© Stack Overflow or respective owner