Last post Jan 03, 2012 10:57 AM by Rameezwaheed
Jan 03, 2012 06:34 AM|Rameezwaheed|LINK
on local machine all reports are working fine while after deployment on server iam getting the path error that i have passed the path as
ReportPath = Server.MapPath("~/Modules/Reports/DailyReport.rdlc");
The report definition for report 'path' has not been specified
First i have pulished the web applciation in wwwroot folder and configure in IIS 7 .
on my local machine all reports are working fine but after deployment iam getting the above error.
Jan 03, 2012 10:41 AM|N_EvilScott|LINK
The problem is that ReportPath is relative, and you are feeding it an absolute path to the file on the local directory. Using Server.MapPath you are going to get the entire thing (i.e. C:\...\Modules\Reports\DailyReport.rdlc)
You need to feed it a relative string so something like...
ReportPath = "/Modules/Reports/DailyReport.rdlc";
It all depends on where the actual RDLC file is in relation to the ASPX page calling it.
Jan 03, 2012 10:57 AM|Rameezwaheed|LINK
Thanks for reply,
let me try and will back to you.