﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>InstantASP Community Forums / Old Forums / InstantForum.NET 3.x / Suggestions &amp; Requests  / EnableSessionState = True / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>InstantASP Community Forums</description><link>http://community.instantasp.co.uk/</link><webMaster>sales@instantasp.co.uk</webMaster><lastBuildDate>Mon, 01 Dec 2008 16:53:15 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: EnableSessionState = True</title><link>http://community.instantasp.co.uk/Topic4710-31-1.aspx</link><description>&lt;P class=MsoNormal&gt;&lt;FONT face="Times New Roman" size=3&gt;&lt;SPAN style="FONT-SIZE: 12pt"&gt;I’m glad to hear that things are working out on your machine.  &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class=MsoNormal&gt;&lt;FONT face="Times New Roman" size=3&gt;&lt;SPAN style="FONT-SIZE: 12pt"&gt;Thank you very much for your feedback!&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class=MsoNormal&gt;&lt;FONT face="Times New Roman" size=3&gt;&lt;SPAN style="FONT-SIZE: 12pt"&gt;&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt; &lt;/P&gt;</description><pubDate>Thu, 31 Mar 2005 15:57:08 GMT</pubDate><dc:creator>Carlos Muniz</dc:creator></item><item><title>RE: EnableSessionState = True</title><link>http://community.instantasp.co.uk/Topic4710-31-1.aspx</link><description>&lt;P&gt;&lt;STRONG&gt;&lt;FONT color=#1111dd&gt;Solution: &lt;img src='images/emotions/biggrin.gif' height='20' width='20' border='0' title='Big Grin' align='absmiddle'&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT color=#1111dd&gt;In the web.config&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;system.web&amp;gt;   &lt;BR&gt; &lt;BR&gt; &amp;lt;!--&lt;BR&gt; Clear out the WSS ASP.NET handler and specify the default ASP.NET handler for all pages.&lt;BR&gt; --&amp;gt; &lt;BR&gt; &amp;lt;httpHandlers&amp;gt;&lt;BR&gt; &amp;lt;clear /&amp;gt;&lt;BR&gt; &amp;lt;add verb="*" path="*.aspx" type="System.Web.UI.PageHandlerFactory" /&amp;gt;&lt;BR&gt; &amp;lt;/httpHandlers&amp;gt;&lt;BR&gt; &lt;BR&gt; &amp;lt;!--&lt;BR&gt; Set the trust to Full. WSS configures a very restrictive trust policy that does not&lt;BR&gt; allow ASP.NET Web application to run correctly.&lt;BR&gt; --&amp;gt; &lt;BR&gt; &amp;lt;trust level="Full" originUrl="" /&amp;gt;&lt;BR&gt; &lt;BR&gt; &amp;lt;!--&lt;BR&gt; Enable the session module. This can also be enabled on the WSS Web.config,&lt;BR&gt; but is not enabled by default. If you receive the following message:&lt;BR&gt; Parser Error Message: The module 'Session' is already in the application&lt;BR&gt; and cannot be added again. You can remove the following&lt;BR&gt; &amp;lt;httpModules&amp;gt;&amp;lt;/httpModules&amp;gt; section as session is already enabled&lt;BR&gt; on the virtual server.&lt;BR&gt; --&amp;gt; &lt;BR&gt; &amp;lt;httpModules&amp;gt;&lt;BR&gt; &lt;FONT color=#1111dd&gt;&amp;lt;!--&amp;lt;add name="Session" type="System.Web.SessionState.SessionStateModule"/&amp;gt;--&amp;gt; This is commented out because its already in the machine.config file&lt;BR&gt;&lt;/FONT&gt; &amp;lt;/httpModules&amp;gt;&lt;BR&gt; &lt;BR&gt; &amp;lt;!-- Enable session state for all the pages in the Web application. --&amp;gt;&lt;BR&gt; &amp;lt;pages autoEventWireup="true" enableSessionState="true" enableViewState="true" enableViewStateMac="true" smartNavigation="true" validateRequest="false" /&amp;gt;&lt;BR&gt;        &lt;BR&gt; &amp;lt;!-- Comment the line below if your running .NET framework 1.0 to disable request validation --&amp;gt;&lt;BR&gt; &amp;lt;!--&amp;lt;pages validateRequest="false" /&amp;gt;--&amp;gt;&lt;BR&gt;  &lt;BR&gt; &amp;lt;!-- Enable in-process session state for application --&amp;gt;&lt;BR&gt; &amp;lt;sessionState mode="InProc" cookieless="false" timeout="20"/&amp;gt;&lt;BR&gt;  &lt;BR&gt; &amp;lt;!-- Set debugmode to false when running application in live environment --&amp;gt;&lt;BR&gt; &amp;lt;compilation debug="true"/&amp;gt;&lt;BR&gt;     &lt;BR&gt; &amp;lt;!-- enable custom error page if not viewing locally --&amp;gt;&lt;BR&gt; &amp;lt;customErrors mode="RemoteOnly" defaultRedirect="error.aspx"/&amp;gt;&lt;BR&gt;  &lt;BR&gt; &amp;lt;!-- When uploading a file to the web server, we have a limit of 4MB by default with asp.net. --&amp;gt;&lt;BR&gt; &amp;lt;!-- The value is set in the key, maxRequestLength below in kilobytes. --&amp;gt;&lt;BR&gt; &amp;lt;!-- Increase this value to allow larger file uploads --&amp;gt;&lt;BR&gt; &amp;lt;!-- This value should be increased to allow larger uploads when adding attachments to posts. --&amp;gt;&lt;BR&gt; &amp;lt;!-- The default setting for this key is 30MB. --&amp;gt;  &lt;BR&gt; &amp;lt;httpRuntime maxRequestLength="30096"/&amp;gt;&lt;BR&gt;  &lt;BR&gt; &amp;lt;/system.web&amp;gt;&lt;/P&gt;</description><pubDate>Thu, 31 Mar 2005 15:56:25 GMT</pubDate><dc:creator>AMulroy</dc:creator></item><item><title>EnableSessionState = True</title><link>http://community.instantasp.co.uk/Topic4710-31-1.aspx</link><description>&lt;P&gt;This was pretty time consuming...&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;The server that I just installed InstantForum on required me to go through all the aspx pages and add EnableSessionState="true" to the page directive.  If I didn't add EnablesSessionState="true" to the page directive I got the following error on page load:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA"&gt;&lt;EM&gt;Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description><pubDate>Mon, 07 Mar 2005 10:38:48 GMT</pubDate><dc:creator>AMulroy</dc:creator></item></channel></rss>