RDLC is "Embedded Resource" by Default - but designer treats it as a loose file RRS feed

  • Question

  • Hi,

    When I add an RDLC to my ASP.NET Web Application, it is included as an "embedded resource" by default.

    I then went to my ASPX web page in the Designer view, and dragged a Report Viewer control to the design surface.  I used the helper dialog on the designer to select my RDLC from the dropdown.  It created this markup:

    <rsweb:ReportViewer ID="ReportViewer1" runat="server" Font-Names="Verdana" Font-Size="8pt"
        InteractiveDeviceInfos="(Collection)" WaitMessageFont-Names="Verdana" 
        WaitMessageFont-Size="14pt" Width="800px">
        <LocalReport ReportPath="UserControls\My.rdlc">

    When I tried to deploy this using "Publish", it complained that the RDLC was not found.  In order to fix this bug, I have to either change My.rdlc from Embedded Resource to Content, or manually load the report definition in Code Behind.

    Am I correct?  It appears the default of "Embedded Resource" does not match what the Designer expects.


    Wednesday, August 15, 2012 5:12 PM