Hi,
Following an test upgrade to .Net 4.5.1 I have had a problem with reporting. Webpages that used to work now don't workl properly.
I have reduced the page down to a small sample. The problem is that when a filter button is pressed the ajax call is done with the reportviewer flashing a loading panel then it shows the "The source of the report definition has not been specified." message. Looking at the codebehind the report is generated OK and is in fact applied to the report viewer. As mentioned this all works fine with .Net 3.5.
To further test I disable Ajax on the AjaxManager and then following the post back the control works as it should so this is definitly an Ajax issue of some sort. I am posting the code below.
It is worth noting that I have tried this on two distinct website solutions that I have and exactly the same issue appears.
Many thanks for any help.
Regards
Jon
Following an test upgrade to .Net 4.5.1 I have had a problem with reporting. Webpages that used to work now don't workl properly.
I have reduced the page down to a small sample. The problem is that when a filter button is pressed the ajax call is done with the reportviewer flashing a loading panel then it shows the "The source of the report definition has not been specified." message. Looking at the codebehind the report is generated OK and is in fact applied to the report viewer. As mentioned this all works fine with .Net 3.5.
To further test I disable Ajax on the AjaxManager and then following the post back the control works as it should so this is definitly an Ajax issue of some sort. I am posting the code below.
It is worth noting that I have tried this on two distinct website solutions that I have and exactly the same issue appears.
Many thanks for any help.
Regards
Jon
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Reports.aspx.vb" Inherits="NJC.WasteMonitor.Web.Gen.Reports" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> </head> <body> <form id="form1" runat="server"> <telerik:RadStyleSheetManager ID="pgRadStyleSheetManager" runat="server"></telerik:RadStyleSheetManager> <telerik:RadScriptManager ID="pgRadScriptManager" runat="server"></telerik:RadScriptManager> <telerik:ReportViewer ID="uxReportViewer" runat="server" Width="100%" Height="500px" Skin="Office2007"></telerik:ReportViewer> <telerik:RadButton ID="uxLoginButton" Text="Test" runat="server" UseSubmitBehavior="false" OnClick="uxLoginButtonClick" CausesValidation="false"></telerik:RadButton> <telerik:RadAjaxManager ID="uxRadAjaxManager" runat="server" > <AjaxSettings> <telerik:AjaxSetting AjaxControlID="uxLoginButton"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="uxReportViewer" LoadingPanelID="uxLoadingPanel" /> </UpdatedControls> </telerik:AjaxSetting> <telerik:AjaxSetting AjaxControlID="uxReportViewer"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="uxReportViewer" LoadingPanelID="uxLoadingPanel" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings> </telerik:RadAjaxManager> <telerik:RadAjaxLoadingPanel ID="uxLoadingPanel" runat="server"></telerik:RadAjaxLoadingPanel> </form> </body></html>Partial Public Class Reports Inherits System.Web.UI.Page Protected Sub uxLoginButtonClick(ByVal sender As Object, ByVal e As EventArgs) Dim _report As WasteReportReport = New WasteReportReport(GetWasteMonitorConnectionString, "4,5,2", _ 1, _ CDate("01-Aug-2014"), _ CDate("06-Aug-2014"), _ "", _ "", _ "", _ "", _ "") ' Define a reportsource and add the report to it Dim _instanceReportSource As Telerik.Reporting.InstanceReportSource = New Telerik.Reporting.InstanceReportSource() _instanceReportSource.ReportDocument = _report ' Add the report source to the report viewer uxReportViewer.ReportSource = _instanceReportSource End SubEnd Class