error: enableSessionState is NOT set to true?

  • 26 July 2006
  • 1 reply
  • 1 view

Badge
I'm trying to use SmartForms for the first time, and I get this error:
"Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive".

My aspx is empty, and wizard K2smartform made:
http://duffy.pt/sites/k2net/_layouts/1033/k2smartform2.aspx
And it has "<%@ Page Language="c#" AutoEventWireup="true" Codebehind="K2SmartForm2.aspx.cs" Inherits="WebApplication1.K2SmartForm2" ClassName="K2SmartForm" EnableSessionState="True"%>"

My web.config has:
<pages enableSessionState="true" enableViewState="true" enableViewStateMac="true" validateRequest="false" />
<trust level="Full" originUrl="" />
<add name="Session" type="System.Web.SessionState.SessionStateModule"/>

What am I missing?
Thank you.

1 reply

Badge +8
Based on the URL to your form, it looks like the form exists within a SharePoint implementation. Perhaps the following Microsoft KB article will be of help to you:

http://support.microsoft.com/default.aspx?scid=kb;en-us;837376

Reply