Copied to clipboard

Flag this post as spam?

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


  • MK 4 posts 55 karma points
    Sep 14, 2011 @ 09:35
    MK
    0

    Server.TransferRequest() fails at System.Web.UI.Page.get_Session()

    Hi everyone,

    I'm trying to do a Server.TransferRequest("path.aspx") onInit() of my page and it gives me this error:

    Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.Web.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 \\ section in the application configuration.

    I've checked for what the error points to and I have:

    <location path="." inheritInChildApplications="false">
        <system.web>
                    <sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes" cookieless="false" timeout="20" />

                <pages enableEventValidation="false" enableSessionState="true">
          </system.web>
    </location>


    But from what I've read Server.TransferRequest doesn't neet extraordinary session configuration, any idea why this is happening here?

    This is an Umbraco application running .NET 4.0 on integrated mode, shouldn't this work on Umbraco?

    Thanks for your attention,
    JRA

Please Sign in or register to post replies

Write your reply to:

Draft