Error: Subreport could not be shown (only under Win XP) RRS feed

  • Question

  • Using reportviewer 2008.  I have local reports that have subreports.  These run fine under Vista in the debugger and also installed as a production application.  However when I install that same application on Win XP and load the same data file, the subreports don't work; they display 'Error: Subreport could not be shown'.

    I am using embeddedreports in the application; not a path to the rdlc files.  Any suggestions would be great.

    Thursday, May 13, 2010 4:05 PM


  • Solved - thanks to advice from Brian Hartman!

    I actually had an assembly of my own failing to load on this particular PC which I use to generate data for charting on the subreports.  This was not apparent at all as the only message was 'Error: Subreport could not be shown'.  With that said, Brian had some good advice to determine how to find the error:

    The details of the subreport error are available in two ways:

    1. They are written to the debug window when a debugger is attached.
    2. If you call ReportViewer.LocalReport.Render() manually, they are in the warnings collection out parameter. The warnings should give an indication of the underlying problem.

    • Marked as answer by Perter Thursday, May 13, 2010 6:53 PM
    Thursday, May 13, 2010 6:53 PM