none
FileNotFoundException on clicking Print Layout button in debug mode RRS feed

  • Question

  • Hi,

    I'm seeing some FileNotFoundExceptions that occurred in mscorlib.dll in the VS2010 Output window when I click the Print Layout button of the Report Viewer Winforms. The application executable runs fine without any exceptions. I'm just wondering if I can ignore these exceptions. Below shows a repro sequence:

    1. Start VS2010.
    2. Create a Windows Forms project.
    3. Add a Report to the project.
    4. Add a ReportViewer control on Form1 and assign the report (Report1.rdlc) to the report viewer. This automatically creates the Form1_Load() event handler with this.reportViewer1.RefreshReport().
    5. Click F5 key to start the app.
    6. Form1 shows a blank report viewer. So far so good.
    7. Now, click the Print Layout button on the report viewer.
    8. The following two exceptions are reported in the Output window:
      A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
      A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
    9. Still, the Form1 shows a blank report in print layout.

    I'm using VS2010 SP1 with .NET 4.0 on Windows 7.

    Tetsu


    tetsu

    Thursday, May 16, 2013 3:39 PM