in

SharePoint Blogs

The Best Place for SharePoint-related Blogs

Aziz

The form cannot be displayed because session state is not available.

 another situation and another problem that i found a perfect solution for it googling the error

originally written by  Mike - H

InfoPath 2007 - MOSS 2007 - The form cannot be displayed because session state is not available.

Whether you are working with forms in custom workflows - or simply trying to publish a form to a form library in MOSS so you can collect information from the user, you may encounter this error.

Initially if you Google the error - you may find comments that state that you need to uncomment the following line in the web.config for the web application:

<!-- <add name="Session" type="System.Web.SessionState.SessionStateModule"/> -->

DO NOT uncomment this field. Many do this and the forms may work - and this appears to be the solution - but it is not the best practice and it is not recommended by MSFT.

You probably have not created a Shared Service Provider and associated the web application in question with the SSP.

MOSS uses the Shared Service Provider to allow / manage session state for a Farm - and specifically for the associated web applications under that SSP.

CREATING THE SHARE SERVICE PROVIDER

When you installed MOSS - the first thing you began to get familiar with is the Central Administration tool. Take a look at the following snapshot:

Click here for a snapshot

 

Notice on the left side - under Shared Services Administration, there are 2 SSP's - SSP Administration and SSP Services. These were created after the farm was deployed (a farm is used relatively here - in essence, after MOSS was deployed).

When you first setup MOSS - there are no SSP's out of the box deployed for you. You must manually create them.

The first SSP you create will contain the SSP/Admin site - and you will also receive a warning that you should not create things like My Sites or Search services scopes within this SSP. It is a best practice to first create an initial SSP - like the example above - name is SSP Administration - and then create a 2nd or successive SSP's for shared services (like Forms, Search, Excel, My Sites, etc).

Finally, when creating a SSP - you will notice that the SSP site will default to an existing web application. See the snapshot below:

Click here for a snapshot 

Under the Basic Sites in this example, you would click the Create a new Web Application - the objective is to place the SSP in its own web application and not an existing one. Once that web application is provisioned - you will be returned to this screen and you'll be able to select the appropriate web application for the SSP.

Ping me if you have any questions - hope this is helpful...

Comments

No Comments

Leave a Comment

(required )  
(optional )
(required )  
Add

About Aziz

my name is Aziz i am 22 years old from Cairo,Egypt fresh graduate with 5 years cs bachelor degree from modern academy infopath sharepoint newbie everything i try to do i end up with tons of problems :) so i decided to make this blog to host all the topics and posts that gave me some help on my work

Need SharePoint Training? Attend a SharePoint Bootcamp!

Posts (c) their respective authors. Everything else (c) 2007 SharePoint Experts