This is a migrated thread and some comments may be shown as answers.

Problem with ReportViewer in Share Point

1 Answer 82 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Top achievements
Rank 1
Paweł asked on 23 Apr 2014, 07:13 AM
I try add ReportViewer control to the VisualWebPart.ascx
<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="VisualWebPart1.ascx.cs" Inherits="testRap.VisualWebPart1.VisualWebPart1" %>

<%@ Register assembly="Telerik.ReportViewer.WebForms, Version=, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" namespace="Telerik.ReportViewer.WebForms" tagprefix="telerik" %>

<telerik:ReportViewer ID="ReportViewer1" runat="server"></telerik:ReportViewer>

But when I open project and go to the designer of visual web part, I got message:

"The ReportViewer control failed to setup the http handler in the web.config file. You may experience troubles when viewing the report. Exception details: Object reference not set to an instance of an object."

I added to the C:\inetpub\wwwroot\wss\VirtualDirectories\80\web.config

 <add name="Telerik.ReportViewer.axd_*" path="Telerik.ReportViewer.axd" verb="*" type="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" preCondition="integratedMode" />  
in tags

I have IIS 8.0 and Visual Studio 2012.

Best Regards

1 Answer, 1 is accepted

Sort by
Telerik team
answered on 25 Apr 2014, 03:41 PM
Hello PaweĊ‚,

Please test to re-add the ASP.NET ReportViewer control as illustrated in the How to: Add report viewer to a web page help article. Note the control is added onto the design surface of the page/control, not directly in the markup. Also verify the Telerik.ReportViewer.axd handler is registered in both system.web and system.webServer section of the configuration file.

You may find helpful also the Deploying Web ReportViewer in SharePoint article.


Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

General Discussions
Asked by
Top achievements
Rank 1
Answers by
Telerik team
Share this question