470,648 Members | 1,324 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,648 developers. It's quick & easy.

Session state can only be used when enableSessionState is set to true Error

I am getting a "Session state can only be used when enableSessionState is
set to true" error.

it works on the first form where I am writing some data to a
dictionary(Dictionarybase). After the data

is written to the dictionary I redirect to another page and read the values.
My Code:

web.config :
<sessionState mode="InProc">

Session Startup: Session("Name") = New Object

Form1 has code to add to CType(Session("Name"), Object) then redirect to

With CType(Session("Name"), Object)
With .Item("Dictionary Item")

label1.text = .item("FieldName")

End With

End with

I've tried adding the EnableSessionState=True to the page directive, this
does not help.

This was working and nothing was changed, I can run it in debug but not
through IE and both are hitting the same server.

Can anyone help with this?

Thanks in Advance,
Nov 19 '05 #1
0 1141

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by fniles | last post: by
10 posts views Thread by =?Utf-8?B?V2FubmFiZQ==?= | last post: by
4 posts views Thread by Cirene | last post: by
1 post views Thread by Korara | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.