私は小さな Web プロジェクトを持っています。このプロジェクトの唯一の目的は、より大きなアプリケーションのレポートを格納して作成することです。
ReportViewer (10.0) コントロールが含まれているだけの "ReportManager.aspx" ページがあります。
<div style="width:auto;">
<form id="Form1" runat="server" style="width:100%; height: 100%;">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<rsweb:reportviewer id="ReportViewer1" runat="server" Width="100%" Height="100%" AsyncRendering="false" SizeToReportContent="true"></rsweb:reportviewer>
</form>
</div>
<script runat="server">
private void Page_Load(object sender, System.EventArgs e)
{
if (IsPostBack)
return;
ReportViewer1.ProcessingMode = ProcessingMode.Remote;
ReportViewer1.ServerReport.ReportServerUrl = new Uri("http://localhost/ReportServer");
ReportViewer1.ServerReport.ReportPath = "/SSRSReport";
ReportParameter param = new ReportParameter("effective_date", "4/22/2013");
ReportViewer1.ServerReport.SetParameters(param);
ReportViewer1.PageCountMode = PageCountMode.Actual;
}
</script>
実行時に reportviewer コントロールのページを変更すると、エラーが発生します。
エラーは次のとおりです: Reserved.ReportViewerWebControl.axd?OpType=Resource&Version=10.0.30319.1&Name=ViewerScript
行 3559 で、次のようになります。
// Remove the current STYLE element, if it already exists.
if (oldStyleElement != null)
headElement.removeChild(oldStyleElement);
headElement.removeChild(oldStyleElement);
エラーが表示されている行です htmlfile: Invalid argument. 休憩 | 続ける | 無視。
[続行] をクリックすると、スタイル設定なしでレポートが表示されます。[無視] をクリックすると、レポートが正しく表示されます。
Windows 2012 Server、Visual Studio 2012 Premium、および IE8 を実行しています。Win 7 マシンでも同じエラーが発生します。
提案や既知の修正はありますか?