title: ReportViewer 10, ASPX, Paging Issues
body: <p>I have a small web project, the sole purpose of this project is to house and produce reports for a larger application.</p>
  
  <p>I have a page "ReportManager.aspx" that simply has a ReportViewer (10.0) control on it.</p>
  
  <pre><code>&lt;div style="width:auto;"&gt;
      &lt;form id="Form1" runat="server" style="width:100%; height: 100%;"&gt;
          &lt;asp:ScriptManager ID="ScriptManager1" runat="server"&gt;          
          &lt;/asp:ScriptManager&gt;
          &lt;rsweb:reportviewer id="ReportViewer1" runat="server" Width="100%" Height="100%"     AsyncRendering="false"  SizeToReportContent="true"&gt;&lt;/rsweb:reportviewer&gt;
      &lt;/form&gt;        
  &lt;/div&gt;
  
  &lt;script runat="server"&gt;
      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;
      }
  &lt;/script&gt;
  </code></pre>
  
  <p>Changing pages on the reportviewer control at runtime is producing an error.</p>
  
  <p>The error is in:
  Reserved.ReportViewerWebControl.axd?OpType=Resource&amp;Version=10.0.30319.1&amp;Name=ViewerScript</p>
  
  <p>at Line 3559, and looks like this:</p>
  
  <pre><code>    // Remove the current STYLE element, if it already exists.
      if (oldStyleElement != null)
          headElement.removeChild(oldStyleElement);
  </code></pre>
  
  <p><code>headElement.removeChild(oldStyleElement);</code> is the line where the error is showing htmlfile: Invalid argument. Break | Continue | Ignore.</p>
  
  <p>Clicking "Continue" causes the report to render without any styling. Clicking "ignore" allows the report to render correctly.</p>
  
  <p>I am running Windows 2012 Server, Visual Studio 2012 Premium and IE8. The same error occurs on Win 7 machines.</p>
  
  <p>Any suggestions or known fixes?</p>