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

Report Viewer Could not bind at run time

3 Answers 224 Views
Report Designer (standalone)
This is a migrated thread and some comments may be shown as answers.
Animesh
Top achievements
Rank 1
Animesh asked on 16 Nov 2016, 10:40 AM

I am trying to use telerik report viewer version 7.1.13.612.

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)

3 Answers, 1 is accepted

Sort by
0
Animesh
Top achievements
Rank 1
answered on 16 Nov 2016, 10:53 AM

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">
    <ReportSource>
    <typereportsource typename="CRMReport.CallReport, CRMReport, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"></typereportsource>    
    </ReportSource>
    </telerik:ReportViewer>

0
Accepted
Katia
Telerik team
answered on 16 Nov 2016, 12:59 PM
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 (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.


Regards,
Katia
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
0
Animesh
Top achievements
Rank 1
answered on 16 Nov 2016, 02:26 PM

Yes,

I have resolved the issue.

Thanks

Tags
Report Designer (standalone)
Asked by
Animesh
Top achievements
Rank 1
Answers by
Animesh
Top achievements
Rank 1
Katia
Telerik team
Share this question
or