Skip to main content

I'm trying to view the out of box reports on the K2 Management site


 


Each time I try and run a report I get the following errors:


 


   Process Instances Report gives this error-


 


Session state has been disabled for ASP.NET.  The Report Viewer control requires that session state be enabled in local mode. 


 

 


Process Information and Activity Statistic Reports  gives the errors -


 


Exception of type 'SourceCode.SmartObjects.Client.SmartObjectException' was thrown. 


 


The errors appear after I click 'OK' on the Reports settings page.


 


I’ve check IIS and the ASP.NET session state  is set to InProc


I'm running K2 on a dev box, so K2 Server, databases and reporting services are all on the same box.


I could see no errors in the Windows event log.


 


 Any help appreciated. 


 


Thanks,


Vanessa


 


 


 


 


 


 


 

Posting the resolution for completeness

 

I had to go and manually edit theweb.config file for the SharePoint site

In my case it was in:-

C:InetpubwwwrootwssVirtualDirectories80

 

I had to uncomment the line

<system.web>

<httpModules>

               …

               <!--  <add name="Session"type="System.Web.SessionState.SessionStateModule"/> - - > (notsure why it  was commented out in the first place)

 

</httpModules>

 

I also needed to set the enableSessionStateattribute to true in the pages element, which is also a child of<system.web>

 

<pagesenableSessionState="true" enableViewState="true"enableViewStateMac="true" validateRequest="false"pageParserFilterType="Microsoft.SharePoint.ApplicationRuntime.SPPageParserFilter,Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral,PublicKeyToken=71e9bce111e9429c" asyncTimeout="7">

  


Reply