Thursday, February 9, 2012

Configure ReportViewer in SP2010

Scenario:
While I already wrote an article before on errors configuring ReportViewer in SharePoint. I get the question on steps, how to configure it without getting errors :)

Solution:
Yes additional configurations need to make it work. Web.config of the web application need to be update with following steps below.

  1. Navigate the c:\inetpub\wwwroot\VirtualDirectories\[portno]
  2. Make a backup copy of web.config
  3. Open web.config in some text editor , may be notepad
  4. Look for following tag , ensure enableSessionState="true"
    <pages asynctimeout="7" enablesessionstate="true" enableviewstate="true" enableviewstatemac="true" pageparserfiltertype="Microsoft.SharePoint.ApplicationRuntime.SPPageParserFilter, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" validaterequest="false">
  5. Look for <httpmodules> tag and add below statement as last child node ( if not there already )
    <add name="Session" type="System.Web.SessionState.SessionStateModule">
  6. Look for this tag below and update version to 10.0.0.0
    <add name="ReportViewerWebControl" verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
  7. Look for <appsettings> and comment the entry with name=ReportViewerMessages

0 comments: