ASP.Net报表查看器RDLC有时加载时间过长

时间:2019-03-05 16:05:43

标签: c# asp.net vb.net visual-studio rdlc

我有使用ReportViewer 15版(RDLC)的ASP.Net网站。有时,报表查看器会不断加载并显示通知正在等待IP地址正在等待az416426.vo.msecnd.net 。当我跟踪PC时,它会尝试访问以下IP地址: 157.55.135.134

有人能解释这个问题并告诉我解决这个问题吗?

在将ReportViewer版本10升级到版本15并更改环境(从Visual Studio 2010到Visual Studio 2017)之前,我曾经使用过。当我使用Reportviewer版本10时,此问题从未发生

实际上,我有同样的问题。这是我的asp代码:

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<%@ Register assembly="Microsoft.ReportViewer.WebForms, Version=15.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91" namespace="Microsoft.Reporting.WebForms" tagprefix="rsweb" %>

<!DOCTYPE html>

<html>
<head id="Head1" runat="server">
     <title>eOperasional</title>

    <meta http-equiv="Page-Enter" content="blendTrans(Duration=0.2)" />
    <meta http-equiv="Page-Exit" content="blendTrans(Duration=0.2)" />
    <script type="text/javascript" src="../Script/Common.js"></script>
</head>
<body style="height: 100%;">
    <form id="form1" runat="server">
    <table cellspacing="0" cellpadding="1" width="100%" border="0">
        <tr>
            <td class="subtitle">Detail</td>
        </tr>
        <tr>
            <td colspan="2">
                <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"></asp:ToolkitScriptManager>
                <rsweb:ReportViewer Visible="False" ID="rptView" runat="server" Width="100%" Font-Names="Verdana" Font-Size="8pt" Height="480px" InteractiveDeviceInfos="(Collection)" WaitMessageFont-Names="Verdana" WaitMessageFont-Size="14pt">
                <LocalReport ReportPath="User\MyReport.rdlc"></LocalReport>    
                </rsweb:ReportViewer>
                <asp:label id="lblMsg" runat="server" EnableViewState="False" CssClass="msg" Visible="false" ></asp:label>
            </td>
        </tr>
    </table>
    </form>
</body>
</html> 

这就是我所说的Reportviewer: '

dtTable = query from database and store in datatable

If dtTable.Rows.Count > 0 Then
    dtSource = New ReportDataSource("MyDataSet", dtTable)
    rptView.LocalReport.DataSources.Clear()
    rptView.LocalReport.DataSources.Add(dtSource)
    rptView.LocalReport.Refresh()
    rptView.Visible = True
End If

0 个答案:

没有答案