Welcome to weblogs.com.pk Sign in | Join | Help

Adeel bin Khalid

"When a Man's Education is Finished; He is finished"
MOSS: The form cannot be displayed because session state is not available.

I have seen two solution of the "The form cannot be displayed because session state is not available." error while loading an InfoPath form in XMLFormView Control. One is a change in web.config file. Lot of people do not recommend this change. The second solution is doing something with the SharedServices. 

However, this error could also occur if EnableSessionState="True" is absent in the page directive of your asp.net page. Your page directive should look something like this:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="MyCustomPage.aspx.cs" Inherits="CustomPage_MyCustomPage" EnableSessionState="True" %>

 problem solved Smile

Posted: Monday, October 13, 2008 11:21 AM by abk

Comments

Schalk said:

I'm no sharepoint expert but, this does not seem to be the "right" solution to the problem (although it might solve it), have a look at this post:

http://www.sharepointblogs.com/aziz/archive/2008/01/28/the-form-cannot-be-displayed-because-session-state-is-not-available.aspx

also:

http://technet.microsoft.com/en-us/library/cc262649.aspx

# October 30, 2008 8:41 AM

abk said:

Schalk,

if you go to the post

http://weblogs.com.pk/abk/archive/2008/10/07/moss-xmlformview-control.aspx

and checkout the MSDN Article mentioned in the post. Look for the line that says "Setting Page Properties and Adding the XmlFormView Control" and then read the first point.

# November 5, 2008 7:38 PM

pdfoxy said:

Thanks for information and solution

# February 15, 2009 12:55 PM
Anonymous comments are disabled