Quantcast
Channel: SQL Server Reporting Services
Viewing all articles
Browse latest Browse all 1418

Report Files (*.rdlc) Not Pushed to Server Upon Publish

$
0
0

Does anyone know why, when we publish our application via the Visual Studio publish utility (Build --> Publish Selection) the *.rdlc files are not being copied to the server?

I have created a /Reports/ folder off the root to house all the *.rdlc files, but they are not being pushed to the server, although other files such as *.aspx, *.aspx.cs are being pushed from inside the /Reports folder.

I am loading the reports in the code behind with the following code:
ReportDataSource rds = new ReportDataSource("dsReferenceTablesLaborCodes", assignedLaborCodes);
ReportViewer.LocalReport.DataSources.Add(rds);
ReportViewer.LocalReport.ReportPath = Server.MapPath("ReferenceTablesLaborCodes.rdlc");
ReportViewer.LocalReport.Refresh();

Everything works in my sandbox environment (which is my PC), but when trying to run the website after a publish, keep getting the following error:  'Could not find file 'C:\inetpub\wwwroot\HelpDesk\Reports\ReferenceTablesLaborCodes.rdlc'

If I go the directory:  C:\inetpub\wwwroot\HelpDesk\Reports\ on the server, I notice that the folder does not contain the *.rdlc file, which is causing the error.

I would appreciate any help to solve this issue.

Thanks in advance for any help.


Viewing all articles
Browse latest Browse all 1418

Trending Articles