Visual studio 2013 在live deploy上报告崩溃,在VS 2013本地运行良好

Visual studio 2013 在live deploy上报告崩溃,在VS 2013本地运行良好,visual-studio-2013,reportviewer,Visual Studio 2013,Reportviewer,我刚刚将VS2008应用程序迁移到VS2013。当地一切都很好。但是,部署时,report I have崩溃,出现以下错误: An error occurred during local report processing. The report definition for report 'myReport' has not been specified Could not find file 'D:\docroot\appdev\wsds\application\Report\myR

我刚刚将VS2008应用程序迁移到VS2013。当地一切都很好。但是,部署时,report I have崩溃,出现以下错误:

    An error occurred during local report processing.
The report definition for report 'myReport' has not been specified
Could not find file 'D:\docroot\appdev\wsds\application\Report\myReport.rdlc'.
从我的aspx页面调用,如下所示:

<rsweb:ReportViewer ID="myReport" runat="server" Font-Names="Verdana" 
    Font-Size="8pt" Height="750px" Width="850px" >
    <localreport reportpath="Report\myReport.rdlc">
        <datasources>
            <rsweb:ReportDataSource DataSourceId="dsReportStuff" 
                Name="reportStuffDataSet_reportStuff" />
        </datasources>
    </localreport>
</rsweb:ReportViewer>

到底发生了什么事?这段代码在我的旧的'08安装上非常有效,它使用了ReportViewer 10。由于迁移,我已升级到report viewer 11。

令人尴尬的是,我发现了。。。对.NET来说还是有点新的,它显示了这一点。显然,当发布新项目时,.NET不会复制.rdlc文件

所以我的服务器上有一个报表文件夹,里面有我所有的.aspx文件,但没有报表文件。甚至都没想到去检查一下那个耳光

编辑:

几周后,在将许多VS08应用程序迁移到VS13后,我发现有一个非常简单的设置可以确保.rdlc文件被复制。只需选择.rdlc文件,并在“属性”窗口中,确保“构建操作”设置为“内容”,并且所有文件都设置为“嵌入式资源”。我还将“复制到输出目录”设置为“始终复制”

我想我会加上这个,以防这发生在其他人身上