title: Session state is not available in this context
body: <p>I want to read session id in application error event but always get error "Session state is not available in this context". Why? The strange thing is that I have the same code in another asp.net app and everything works fine.</p>
  
  <pre><code>void Application_Error(object sender, EventArgs e)
  {
  
          var sessionId = Session.SessionID;
          //skipped code
  
  }
  </code></pre>