Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Dan 1288 posts 3921 karma points c-trib
    Sep 10, 2010 @ 11:43
    Dan
    0

    Contour error on form submit, only on one page

    Hi,

    I'm facing a weird issue in that a contour form errors on the homepage of a new site, but not on the other pages.  The homepage shares the same master template file, in which the form is placed, as all other pages, so I'm really baffled as to why it's erroring here but nowhere else.

    Umbraco 4.5.2.
    Windows Web Server 2008R2
    IIS 7.5
    .NET framework 2.0

    The error is:

     

    Server Error in '/' Application.

    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.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.Web.HttpException: 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.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


    Stack Trace:

    [HttpException (0x80004005): 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.]
       System.Web.UI.Page.get_Session() +4077522
       Umbraco.Forms.UI.Usercontrols.RenderForm.RenderUi() in d:\TeamCity\buildAgent\work\e4473b9ec9597356\Umbraco.Forms.UI\Usercontrols\RenderForm.ascx.cs:375
       Umbraco.Forms.UI.Usercontrols.RenderForm.nextPage(Object sender, EventArgs e) in d:\TeamCity\buildAgent\work\e4473b9ec9597356\Umbraco.Forms.UI\Usercontrols\RenderForm.ascx.cs:205
       System.Web.UI.WebControls.Button.OnClick(EventArgs e) +115
       System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +140
       System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +29
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2981
    



    Version Information: Microsoft .NET Framework Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927

     

     

    Any help greatly appreciated, thanks!

  • Comment author was deleted

    Sep 10, 2010 @ 12:31
  • Dan 1288 posts 3921 karma points c-trib
    Sep 10, 2010 @ 12:51
    Dan
    0

    Thanks Tim.  I saw that post actually, but didn't know where exactly to put the different settings - do they all do in web.config?  If so, where?

    From what I understand, I need to include "enableSessionState=true" somewhere, and also:

    <remove name="Session"/>
    <add name="Session" type="System.Web.SessionState.SessionStateModule"/>

    But I'm just not sure where exactly to put these things?

  • Comment author was deleted

    Sep 10, 2010 @ 13:43

    Hi,

    Yes in the webconfig look for the system.webserver / modules element

    Then add these lines to the element:

    <remove name="Session"/>
    <add name="Session" type="System.Web.SessionState.SessionStateModule"/>
Please Sign in or register to post replies

Write your reply to:

Draft