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

Reporting Deployment to Server

1 Answer 40 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Anthony
Top achievements
Rank 1
Anthony asked on 21 Jun 2013, 02:31 PM

I have some reports embedded in an ASP.NET Razor View.

Everything works perfectly on my dev box, but as soon as I deploy to live I get the following error:

Error executing child request for handler 'System.Web.Mvc.HttpHandlerUtil+ServerExecuteHttpHandlerWrapper'.;

I’ve checked the versioning in the web.config, and it is using the web.config, and I have reinstalled the telerik reporting on the server, but to no avail.

The controller is:

public ActionResult Dashboard(int id)
        {
            var instanceReportSource = new Telerik.Reporting.InstanceReportSource();
            instanceReportSource.Parameters.Add(new Telerik.Reporting.Parameter() { Name = "BidId", Value = id });
            instanceReportSource.ReportDocument = new BidSummary();
            return View(instanceReportSource);
        }

And the view is

<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<Telerik.Reporting.InstanceReportSource>" %>
<%@ Import Namespace="BidGovernance.Reports" %>
<%@ Register assembly="Telerik.ReportViewer.WebForms, Version=7.0.13.521, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" namespace="Telerik.ReportViewer.WebForms" tagprefix="telerik" %>
<%@ Register assembly="Telerik.Reporting, Version=7.0.13.521, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" namespace="Telerik.Reporting" tagprefix="telerik" %>
<!DOCTYPE html>
<html>
<head runat="server">
    <meta name="viewport" content="width=device-width" />
    <title>Dashboard</title>
</head>
<body>
    <div>
        <form id="form1" runat="server">
        <telerik:ReportViewer ID="ReportViewer1" runat="server"  Width="100%" Height="800px"></telerik:ReportViewer>
    <div>
        <script runat="server">
             public override void VerifyRenderingInServerForm(Control control)
              {
             // to avoid the server form (<form runat="server"> requirement
              }
             protected override void OnLoad(EventArgs e)
              {
             base.OnLoad(e);
             //Telerik.Reporting.ObjectDataSource data = new Telerik.Reporting.ObjectDataSource();
             //data.DataSource = Model;
             //Telerik.Reporting.Report report = new Telerik.Reporting.Report();
             //report.DataSource = data;
             //     var instanceReportSource = new Telerik.Reporting.InstanceReportSource();
            //     instanceReportSource.ReportDocument = report;
             //     instanceReportSource.ReportDocument = new DSTest();
                  ReportViewer1.ReportSource = Model;
              }
       </script>
         
    </div>
            </form>
    </div>
</body>
</html>

Please help.

Eddie

1 Answer, 1 is accepted

Sort by
0
Squall
Top achievements
Rank 1
answered on 26 Jun 2013, 11:47 AM
Tags
General Discussions
Asked by
Anthony
Top achievements
Rank 1
Answers by
Squall
Top achievements
Rank 1
Share this question
or