Problem with Session State

Discussion in 'ASP .Net Web Controls' started by Alex G, Apr 15, 2004.

  1. Alex G

    Alex G Guest

    I dont know why this message show in my web app. (some one can help me??

    "[HttpException (0x80004005): Sólo puede utilizar el estado de sesión cuando enableSessionState está establecido como true, en un archivo de configuración o en la directiva de la página
    System.Web.UI.Page.get_Session(
    NEOWEB5.WFrmMenu.Page_Init(Object sender, EventArgs e) in c:\inetpub\wwwroot\Neoweb5\WFrmMenu.aspx.vb:6
    System.Web.UI.Control.OnInit(EventArgs e
    System.Web.UI.Control.InitRecursive(Control namingContainer
    System.Web.UI.Page.ProcessRequestMain()

    this is my web.config file

    <?xml version="1.0" encoding="utf-8" ?><configuration><appSettings><add key="NeoPathName" value="D:\MatrixApps\Neo" /><add key="NeoPathFtp" value="D:\MatrixApps\Neo\SALIDAFTP" /><add key="DBOLEConnStr" value="Provider=SQLOLEDB;Server=10.9.4.154;database=Matrix30;user id=sa;password=;" /><add key="DBConnStr" value="data source=10.9.4.154;initial catalog=Matrix30;persist security info=False;user id=sa"/><add key="Country" value="PR"/></appSettings><system.web><compilation defaultLanguage="vb" debug="true"><assemblies><add assembly="CrystalDecisions.CrystalReports.Engine, Version=9.2.3300.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/><add assembly="CrystalDecisions.ReportSource, Version=9.2.3300.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/><add assembly="CrystalDecisions.Shared, Version=9.2.3300.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/></assemblies></compilation><customErrors mode="RemoteOnly" /><authentication mode="Forms"><forms name=".ASPXCOOKIEDEMO" loginUrl="WFrmInicio.aspx" protection="All" timeout="7" ></forms></authentication><authorization><deny users="?" /></authorization><trace enabled="false" requestLimit="10" pageOutput="false" traceMode="SortByTime" localOnly="true" /><sessionState
    mode="InProc
    stateConnectionString="tcpip=100.19.84.154:42424
    sqlConnectionString="data source=100.19.84.154;user id=sa;password=
    cookieless="false"
    timeout="20"
    /><globalization requestEncoding="utf-8" responseEncoding="utf-8" /></system.web></configuration

    ====================================
    i star my proj. in Wfrminicio.aspx then the user loged and i redirect to wfrmmenu.aspx in this form the error happend
     
    Alex G, Apr 15, 2004
    #1
    1. Advertising

  2. Alex G

    Teemu Keiski Guest

    Google Translator provided this dummy translation (funny one) but I guess it
    tells something (I don't understand Spanish):
    "It only can use the state of session when enableSessionState is established
    like true, in a configuration file or the director of the page" :)

    Have you disabled session for the page in question? What's on the line it
    complains about?

    --
    Teemu Keiski
    MCP, Microsoft MVP (ASP.NET), AspInsiders member
    ASP.NET Forum Moderator, AspAlliance Columnist
    http://blogs.aspadvice.com/joteke

    "Alex G" <> wrote in message
    news:...
    I dont know why this message show in my web app. (some one can help me??)

    "[HttpException (0x80004005): Sólo puede utilizar el estado de sesión cuando
    enableSessionState está establecido como true, en un archivo de
    configuración o en la directiva de la página]
    System.Web.UI.Page.get_Session()
    NEOWEB5.WFrmMenu.Page_Init(Object sender, EventArgs e) in
    c:\inetpub\wwwroot\Neoweb5\WFrmMenu.aspx.vb:66
    System.Web.UI.Control.OnInit(EventArgs e)
    System.Web.UI.Control.InitRecursive(Control namingContainer)
    System.Web.UI.Page.ProcessRequestMain() "

    this is my web.config file:

    <?xml version="1.0" encoding="utf-8" ?><configuration><appSettings><add
    key="NeoPathName" value="D:\MatrixApps\Neo" /><add key="NeoPathFtp"
    value="D:\MatrixApps\Neo\SALIDAFTP" /><add key="DBOLEConnStr"
    value="Provider=SQLOLEDB;Server=10.9.4.154;database=Matrix30;user
    id=sa;password=;" /><add key="DBConnStr" value="data
    source=10.9.4.154;initial catalog=Matrix30;persist security info=False;user
    id=sa"/><add key="Country"
    value="PR"/></appSettings><system.web><compilation defaultLanguage="vb"
    debug="true"><assemblies><add
    assembly="CrystalDecisions.CrystalReports.Engine, Version=9.2.3300.0,
    Culture=neutral, PublicKeyToken=692fbea5521e1304"/><add
    assembly="CrystalDecisions.ReportSource, Version=9.2.3300.0,
    Culture=neutral, PublicKeyToken=692fbea5521e1304"/><add
    assembly="CrystalDecisions.Shared, Version=9.2.3300.0, Culture=neutral,
    PublicKeyToken=692fbea5521e1304"/></assemblies></compilation><customErrors
    mode="RemoteOnly" /><authentication mode="Forms"><forms
    name=".ASPXCOOKIEDEMO" loginUrl="WFrmInicio.aspx" protection="All"
    timeout="7" ></forms></authentication><authorization><deny users="?"
    /></authorization><trace enabled="false" requestLimit="10"
    pageOutput="false" traceMode="SortByTime" localOnly="true" /><sessionState
    mode="InProc"
    stateConnectionString="tcpip=100.19.84.154:42424"
    sqlConnectionString="data source=100.19.84.154;user id=sa;password="
    cookieless="false"
    timeout="20"
    /><globalization requestEncoding="utf-8" responseEncoding="utf-8"
    /></system.web></configuration>


    =====================================
    i star my proj. in Wfrminicio.aspx then the user loged and i redirect to
    wfrmmenu.aspx in this form the error happend
     
    Teemu Keiski, Apr 15, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. shamanthakamani
    Replies:
    1
    Views:
    3,502
    Natty Gur
    Nov 20, 2003
  2. Not Liking Dot Net Today
    Replies:
    0
    Views:
    620
    Not Liking Dot Net Today
    Apr 21, 2004
  3. Maciek
    Replies:
    0
    Views:
    8,259
    Maciek
    Sep 15, 2005
  4. jnickfl1
    Replies:
    0
    Views:
    598
    jnickfl1
    Sep 18, 2006
  5. Harry Haller
    Replies:
    0
    Views:
    1,663
    Harry Haller
    Nov 7, 2006
Loading...

Share This Page