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

Problem with ReportViewer in Share Point

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

<%@ Register assembly="Telerik.ReportViewer.WebForms, Version=8.0.14.225, 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=8.0.14.225, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" preCondition="integratedMode" />  
in tags
 <system.webServer> 
    <handlers>

I have IIS 8.0 and Visual Studio 2012.

Best Regards
Pawel
  

1 Answer, 1 is accepted

Sort by
0
Stef
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.

Regards,
Stef
Telerik
 

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.

 
Tags
General Discussions
Asked by
Paweł
Top achievements
Rank 1
Answers by
Stef
Telerik team
Share this question
or