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

.Net 4.5.1 Upgrade issues

3 Answers 79 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 1
Jon asked on 22 Oct 2014, 12:59 PM
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

<%@ 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">
    <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 Sub
End Class


3 Answers, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 24 Oct 2014, 03:25 PM
Hi Jon,

The provided code illustrates a supported AJAX scenario (ASP.NET ReportViewer AJAX support), and the viewer will be updated successfully on uxLoginButtonClick.

The attached demo project illustrates our test. It uses Telerik Reporting Q2 2014 and Telerik UI for ASP.NET AJAX Q2 2014 (.NET 4).


In order to troubleshoot the issue further, please use your support ticket #872155 on the same question and send us a demo project with all settings, that reproduce the problem.

Regards,
Stef
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Accepted
Stef
Telerik team
answered on 29 Oct 2014, 05:48 PM
Hello,

For anyone concerned, the issue was related to the BrowserLink feature in Visual Studio 2013. Disabling BrowserLink ceased the error.

Regards,
Stef
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Jon
Top achievements
Rank 1
answered on 29 Oct 2014, 10:06 PM
Its worth also noting that my issue didn't actually show any error specific to the browserlink so even if that isn't appearing in the error log try disabling it,

Regards

Jon
Tags
General Discussions
Asked by
Jon
Top achievements
Rank 1
Answers by
Stef
Telerik team
Jon
Top achievements
Rank 1
Share this question
or