Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
35
Infragistics.Reports.Engine.ReportLoaderException: Could not find report definition
posted

I'm trying to load a Report using Relative URI, but I'm always receiving this error:

Infragistics.Reports.Engine.ReportLoaderException: Could not find report definition

The only way is if I put the full path of the Report ("C:\Program Files (x86)\MyProyect...\MyReport.igr")

It's wierd, because I can do it in other project, but this is a new one and I don't know whats the problem.

even if I select the Report from the "definition Uri" area in the ReportViewer

This piece of code don't work:  

 Dim reportMain As String = "/Condonaciones;component/Reportes/Rpt_Cond.igr"

Me.UltraReportViewer1.RenderSettings.DefinitionUri = New System.Uri(String.Format(reportMain, "Rpt_Cond.igr"), System.UriKind.Relative)

but this works perfectly:

Dim reportmain As String = "c:\MyProyect\Condonaciones.Net\Condonaciones.Net\Condonaciones\Reportes\Rpt_Cond.igr"

Me.UltraReportViewer1.RenderSettings.DefinitionUri = New System.Uri(String.Format(reportMain, "Rpt_Cond.igr"), System.UriKind.Relative)

 

Can anyone tell me what can be?

I checked the version of the DLL (11.2.20112.1068), then I applied the Service Release to Version 2153 and in both cases didn't work.