void Application_Error(object sender, EventArgs e) 
    { 
        // Code that runs when an unhandled error occurs
        Server.Transfer("ErrorPage.aspx");
    }
    但在ErrorPage.aspx中Session居然不可用
错误提示
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 <configuration>\\<system.web>\\<httpModules> section in the application configuration.web.config 中我也加了
    <httpModules>
      <add type="System.Web.Caching.OutputCacheModule" 
           name="OutputCache"/>
      <add type="System.Web.SessionState.SessionStateModule" 
           name="Session"/>
    </httpModules>
但不管用,错误依旧有趣的是,我在windows 2000 server 下面没这个问题
现在装的是xp,却出现了这个问题
不知有没人遇到这样的问题, 可以探讨一下???