I created a report with crystal reports. I am using ExportToHttpResponse to open the report as an attachment.
ReportDocument report = new ReportDocument();
report.ExportToHttpResponse(ExportFormatType.PortableDocFormat, Response, true, filename);
I was walking through the code and receive the below error.
Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack.
The report does open but can't figure out why ExportToHttpResponse is having an error.