none
Microsoft.Reporting.WebForms.LocalProcessingException RRS feed

  • Question

  • When I move the Website from my development environment to a production-like server, a generated PDF using the ReportView fails. "this.GenerateMasterSpecificationReportParameters" provides the parameters on the report w/ data and there is no DataSource.  Apart from creating a new report (to make all of the data types are correct), can anyone help me out?  I have used previous versions of the report w/ no luck.  Also, I have tried to change permissions for the IIS Website credentials and dynamically in the code behind file.

     ReportViewer masterSpecReport;
                Warning[] reportWarnings;
                String mimeType;
                String[] streamIds;
                String encoding;
                String extension;
                Byte[] reportBytes;
    
    
                try
                {
                    // Set up our report object. 
                    masterSpecReport = new ReportViewer();
                    masterSpecReport.ProcessingMode = ProcessingMode.Local;
                    masterSpecReport.LocalReport.ReportPath =
                        HttpContext.Current.Server.MapPath("~/Secure/Reports/MasterSpecification.rdlc");
    
    
                    // Assign our report parameters.
                    masterSpecReport.LocalReport.SetParameters(this.GenerateMasterSpecificationReportParameters(userId));
    
                    // Call the report render function to return an array of bytes which will contain the PDF document.
                    mimeType = String.Empty;
                    encoding = String.Empty;
                    extension = String.Empty;
                    reportBytes = masterSpecReport.LocalReport.Render("PDF", null, out mimeType, out encoding,
                        out extension, out streamIds, out reportWarnings);

    Exception Type: Microsoft.Reporting.WebForms.LocalProcessingException

    Message: An error occurred during local report
    processing.

    Stack Trace: at
    Microsoft.Reporting.WebForms.LocalReport.EnsureExecutionSession()

    at Microsoft.Reporting.WebForms.LocalReport.SetParameters(IEnumerable`1
    parameters)

    at MasterSpecification.CreateMasterSpecificationPDF(String userId) in
    c:\Website\trunk\src\CCLLabel\App_Code\Workflow\Table
    Classes\MasterSpecification.cs:line 5515

    at ShrinkMasterSpecification.doCompletionActivity() in c:\Website\trunk\src\CCLLabel\App_Code\Workflow\Shrink
    Workflow\Operations\ShrinkMasterSpecification.cs:line 58

    at ProjectWorkflowBase.doOperationCompletionActivity(WorkflowProjectOperation
    thisOperation) in c:\Website\trunk\src\CCLLabel\App_Code\Workflow\Base
    Classes\ProjectWorkflowBase.cs:line 133

    at ProjectWorkflowBase.UpdateProjectStatus() in
    c:\Website\trunk\src\CCLLabel\App_Code\Workflow\Base
    Classes\ProjectWorkflowBase.cs:line 74

    at WorkflowStaticMethods.RunWorkflow(DatasourceType currentDataSourceType,
    Int32 facilityId, Int32 workflowProjectId, String currentUser) in
    c:\Website\trunk\src\CCLLabel\App_Code\Workflow\WorkflowStaticMethods.cs:line
    113

    at ShrinkMasterSpecification.ImageButtonSave_Click(Object sender,
    ImageClickEventArgs e) in c:\Website\trunk\src\CCLLabel\Secure\Workflow\Widgets\Shrink\MasterSpecification.ascx.cs:line
    288

    at System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e)

    at System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String
    eventArgument)

    at System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String
    eventArgument)

    at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl,
    String eventArgument)

    at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)

    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint,
    Boolean includeStagesAfterAsyncPoint)


    • Edited by Manazu5351 Tuesday, June 11, 2013 5:14 PM formatting
    Tuesday, June 11, 2013 5:07 PM