locked
Microsoft JScript runtime error: 'this.m_clientController' is null or not an object RRS feed

  • Question

  • User305412841 posted

    Hi,

    I am getting the following error while running report: 

    Microsoft JScript runtime error: 'this.m_clientController' is null or not an object

     

    My code is as follows:

     <rsweb:ReportViewer ID="ReportViewer1" runat="server" ShowParameterPrompts="False"
                                Width="99%" ProcessingMode="remote">
                                <ServerReport ReportServerUrl="" />
                            </rsweb:ReportViewer>

     

    It is not contained in any updatepanel.

     

    Regards.

    Monday, April 28, 2008 8:09 AM

Answers

  • User-1136466523 posted

    Hi,

    <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p> </o:p>

    It seems that you are using ajax in your web form, right?

    <o:p> </o:p>

    Try to remove update panels around your report viewer control.

    <o:p> </o:p>

    And then make the report viewer current page set to 1.

    <o:p> </o:p>

    i.e.

    <o:p> </o:p>if (!ReportViewer1.Enabled) { ReportViewer1.CurrentPage = 1; }<o:p></o:p><o:p> </o:p>

    Thanks.

    <o:p> </o:p>

     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, April 29, 2008 10:38 PM

All replies

  • User-1136466523 posted

    Hi,

    <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p> </o:p>

    It seems that you are using ajax in your web form, right?

    <o:p> </o:p>

    Try to remove update panels around your report viewer control.

    <o:p> </o:p>

    And then make the report viewer current page set to 1.

    <o:p> </o:p>

    i.e.

    <o:p> </o:p>if (!ReportViewer1.Enabled) { ReportViewer1.CurrentPage = 1; }<o:p></o:p><o:p> </o:p>

    Thanks.

    <o:p> </o:p>

     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, April 29, 2008 10:38 PM
  • User1934839108 posted
    If you use VS2008, it is easier to change ReportViewer AsincRendering properties to 'false'.
    Monday, May 18, 2009 4:21 PM
  • User582812934 posted

    Write the Postback Trigger in Update Panel

    <cc1:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
        </cc1:ToolkitScriptManager>
           <asp:UpdatePanel ID="UpdatePanel1" runat="server">
             <Triggers >
                <asp:PostBackTrigger ControlID="btnGetReport" />
             </Triggers>
            <ContentTemplate>
    <asp:Button ID="btnGetReport" runat="server" Text="View Report"  
                onclick="btnGetReport_Click" />
     <table><tr><td>
         <rsweb:ReportViewer ID="MyReportViewer" runat="server" ProcessingMode="Remote" Width="900px"  >
        </rsweb:ReportViewer>
        
         </td></tr></table>
    </ContentTemplate>
        </asp:UpdatePanel>

    see my Blog:

     

         http://journeytodotnetauthority.blogspot.com/2011/05/microsoft-jscript-runtime-error.html

    Wednesday, May 4, 2011 6:41 AM