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 