我在生产中得到了这样的称呼.报表处理期间发生错误.调用目标抛出异常.对象引用未设置为实例的实例.

问题描述:

.aspx ::

.aspx ::

public void ShowQueryBranchTATCrossed()
       {
           bool vFlag = false;

           try
           {
               rptViewer.Visible = true;
               ////rptViewer.LocalReport.ReportPath="C:/Priya Working Folder/WorkingEnvironment/ILeverage2k10/ILeverage2k10/ILev_QueryBranchTATCrossedReport.rdlc";
               rptViewer.LocalReport.Refresh();

               vFlag = true;

           }
           catch (Exception Exp)
           {
               LogEvent(Exp);
               vFlag = false;
           }


           if (!vFlag)
           {
               ScriptManager.RegisterClientScriptBlock(this, typeof(string), "message", "alert('Unable to retrive the data, please contact system admin.');location.href='ILeverage_Blank.aspx'", true);
           }
       }

希望 ^ ]可能会帮助您解决问题.
Hope this[^] might help you to solve your problem.