Report Viewer Could not bind at run time

4 posts, 1 answers
  1. Animesh
    Animesh avatar
    3 posts
    Member since:
    Nov 2016

    Posted 16 Nov 2016 Link to this post

    I am trying to use telerik report viewer version

    I am encoutering the followig issue at run time.

    Please help

    Invalid report type
    Value cannot be null.
    Parameter name: type
    at Telerik.Reporting.Processing.TypeReportDocumentResolver.Resolve(IReportDocumentResolverContext context, TypeReportSource rs)
    at Telerik.Reporting.Processing.ReportDocumentResolver`1.Telerik.Reporting.Processing.IReportDocumentResolver.Resolve(IReportDocumentResolverContext context, ReportSource rs, Boolean loadParameters)
    at Telerik.Reporting.Processing.ReportDocumentResolver.<>c__DisplayClass1.<Resolve>b__0(IReportDocumentResolver r)
    at Telerik.Reporting.Processing.ReportDocumentResolver.Bind[T](ReportSource source, Func`2 func)
    at Telerik.Reporting.Processing.ReportDocumentResolver.Resolve(IReportDocumentResolverContext context, ReportSource source, Boolean loadParameters)
    at Telerik.ReportViewer.WebForms.ParametersPage.ResolveReportDocument(ReportSource reportSource)
    at Telerik.ReportViewer.WebForms.ParametersPage.get_ReportDocument()
    at Telerik.ReportViewer.WebForms.ParametersPage.get_ParamsManager()
    at Telerik.ReportViewer.WebForms.ParametersPage.CreateChildControls()
    at System.Web.UI.Control.EnsureChildControls()
    at Telerik.ReportViewer.WebForms.ParametersPage.OnPreLoad(EventArgs e)
    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

  2. Animesh
    Animesh avatar
    3 posts
    Member since:
    Nov 2016

    Posted 16 Nov 2016 in reply to Animesh Link to this post

    This is how telerik reportviewer control is being added

     <telerik:ReportViewer ID="rptViewerCall" runat="server" Height="599px" ShowDocumentMapButton="False"
            ShowHistoryButtons="False" ShowPrintPreviewButton="False" Skin="WebBlue" ViewMode="PrintPreview"
            ZoomPercent="50" Width="1200px">
        <typereportsource typename="CRMReport.CallReport, CRMReport, Version=, Culture=neutral, PublicKeyToken=null"></typereportsource>    

  3. Answer
    Katia avatar
    733 posts

    Posted 16 Nov 2016 Link to this post

    Hi Animesh,

    This error indicates that the viewer's ReportSource is invalid.

    Check if the assembly qualified name you set as report source is correct. Note, that the name is case-sensitive and the best approach to check if the name is correct is using typeof(CallReport).AssemblyQualifiedName.

    If the report is residing in a separate project check if the project with the viewer has references to the report's project and if the assembly with reports physically exists in the bin folder of the project with the viewer.

    Telerik by Progress
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  4. Animesh
    Animesh avatar
    3 posts
    Member since:
    Nov 2016

    Posted 16 Nov 2016 in reply to Katia Link to this post


    I have resolved the issue.


Back to Top