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
1360
Error On Report View
posted

I have configured the HTML5 viewer to display a report and I receive the following error message:

There was an error while loading the report ../Reports/ElementList.igr. Details: The Xml namespace 'http://schemas.infragistics.com/xaml/reports' could not be loaded. See inner exception for details.

This is an MVC (.aspx engine) CLR 4.0 web application. IG Reporting 12.2.20122.1014. (I am not using Silverlight.) Why am I seeing this message and how do I remove it and correctly display the report? 

The declaration for my HTML5 viewer follows:

<%@ Page Title="" Language="C#" MasterPageFile="~/Main.master" AutoEventWireup="true" CodeBehind="sdsReportViewer.aspx.cs" Inherits="WebApp.Reports.SdsReportViewer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

<link href="../Styles/themes/base/jquery-ui.css" rel="stylesheet" />
<link href="../Styles/themes/base/jquery.ui.core.css" rel="stylesheet" />
<link href="../Styles/themes/base/jquery.ui.button.css" rel="stylesheet" />
<link href="../Styles/themes/base/jquery.ui.dialog.css" rel="stylesheet" />
<link href="../Styles/themes/base/jquery.ui.theme.css" rel="stylesheet" />
<link href="../scripts/css/structure/jquery-ui-1.9.1.custom.min.css" rel="stylesheet" />
<link href="../scripts/themes/infragistics/infragistics.theme.css" rel="stylesheet" type="text/css" />

<script src="../scripts/igReports/modernizr-2.6.2.js" type="text/javascript"></script>
<script src="../scripts/jquery-1.8.2.min.js" type="text/javascript"></script>
<script src="../scripts/igReports/jquery-ui-1.9.0.min.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="PageHeaderContentPlaceHolder" runat="server"></asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="SideBarPlaceHolder" runat="server"></asp:Content>
<asp:Content ID="Content7" ContentPlaceHolderID="PageContentPlaceHolder" runat="server">
<script src="../scripts/infragistics.loader.js" type="text/javascript"></script>
<script type="text/javascript">
jQuery.ig.loader({
cssPath: '../css',
scriptPath: '../Scripts',
resources: 'igReportViewer',
locale: '<%= System.Threading.Thread.CurrentThread.CurrentUICulture.Name.Substring(0,2) %>',
ready: function () {
//Page and resources are already loaded
$("#viewer").igReportViewer({
renderSettings: {
definitionUri: document.getElementById("<%= ReportName.ClientID %>").value,
serviceEndpointUri: "../ReportService.svc/ajaxAddress/"
}
});
}
});
</script>
<div id="viewer"></div>
<asp:HiddenField ID="ReportName" runat="server" Value="" />
</asp:Content>

When the form opens it picks up the report name from the QueryString and parks it in the "ReportName" hidden field. The report viewer uses this to identify the required report to display. This logic all seems to work OK. (I have tried putting a literal string for the report name and I get identical behaviour.). There are no missing .js or .css files. Reports are compiled using the default options (Embedded Resource).

Kind regards,

Paul

Parents Reply Children