ASP.NET Session State Error only on default document
- by schmidty
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.