Problem with Session State

A

Alex G

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
 
T

Teemu Keiski

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

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,190
Latest member
Martindap

Latest Threads

Top