<!--<add key="ReportViewerMessages" value="Microsoft.SharePoint.Portal.Analytics.UI.ReportViewerMessages, Microsoft.SharePoint.Portal, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />-->
2. By default session is disabled in SharePoint. Enable it by ensuring an entry like below inside <system.web>.
3. Enable session at page level by setting the enableSessionState to true of <page…..> tag inside system.web.
<pages enableSessionState="true" enableViewState="true" enableViewStateMac="true" validateRequest="false" ……………………=""
4. SharePoint disable the default session module inside the <system.webserver>modules tag. To enable the module comment out the following line inside <system.webserver>moudles as shown below:
Now if you try to put a reportviewer control you will find a message like below:
If you find the above error then follow the steps 5, 6 and 7:
5. Add the following tag inside system.webhttphandlers section
<add verb="*" path="Reserved.ReportViewerWebControl.axd" type = "Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
6. Add the following line in the system.webserverhandlers
<add name="ReportViewerWebControlHandler" preCondition="integratedMode" verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
7. Comment out the following line in the system.WebServerhandlers (If Exists)