locked
Report viewer Issue on Deployment Server RRS feed

  • Question

  • User1623409651 posted

    Hi all,

    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

    string

    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.

    Regards

    Tuesday, January 3, 2012 6:34 AM

Answers

  • User-1528094326 posted

    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.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, January 3, 2012 10:41 AM

All replies

  • User-1528094326 posted

    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.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, January 3, 2012 10:41 AM
  • User1623409651 posted

    Thanks for reply,

    let me try and will back to you.

     

    Regards,

     

    Tuesday, January 3, 2012 10:57 AM