Neha Ojha

Neha Ojha

  • NA
  • 7
  • 0

Server.MapPath() issue

Apr 6 2010 3:59 PM
Hello All,

I have a very basic question. I was trying to export my CR file to PDF for that i used
string repFilePath = Server.MapPath("RadTechPublicReport.rpt");
It gave me an error say the path was not correct.
So i looked around and found that the it was missing a folder so then I replace the above code with
string repFilePath = Server.MapPath(@"Reports\RadTechPublicReport.rpt");
Now my question is why did MapPath not recognize Reports 

Please if any one can answer this question.




Answers (2)