我在visual studio 2012 webapplication project.t中创建了一个rdlc报告。当我运行项目时,所有步骤都正确(所有步骤都从UI完成)没有做任何编码我总是得到以下错误
An error occurred during local report processing.
The report definition for report 'Report1' has not been specified
Object reference not set to an instance of an object.
然后从代码隐藏中设置 ReportViewer1.LocalReport.ReportPath= 属性。然后错误desapier并正常工作。我的头疼是如何在不进行任何编码的情况下设置此属性?