Exception has been thrown by the target of an invo
I am facing an error while I am trying to export a crystal report file to pdf. The error is
"error: Exception has been thrown by the target of an invocation."
I am also enclosing the some code snippet:
Dim strExportFile as string = Server.MapPath(Request.ApplicationPath) & "\Report\" & fileName
now I am exporting to that folder "Report" which is physically in c:\inetpub\wwwroot\mywebapp\Report
I have given permission to that folder, but still receiving this error.