I have created a crystal report in vs2010 with .net4.0. when I publish the website it throws the error \"A document processed by the JRC engine cannot be opened in C++ stack
Just Do These Steps
(1) Right click on your ".rpt" file Select "Properties"
1.a) Build Action as "Content"
1.b) Copy to Output Directory as "Copy Always"
(2)Check your path to the .rpt file Server.MapPath("Your path");
eg: Server.MapPath("~/Reports/MyReport.rpt");
Note: if both rpt and aspx page with report viewer are in same folder then no need to give the full path , you can give only filename.rpt in Server.MapPath .
I have found another set of circumstances under which this rather unhelpful error appears.
If you F5 to run/debug your web application in Visual Studio BUT still have the the report open in Crystal Reports (2011), you will get the error.
Drove me nuts for about an hour today!
Check your path to the .rpt file! The error description has nothing to do with its real reason. It just cannot find your .rpt file!
In my case the path had to be for a .rpt file sitting in Reports subfolder:
Server.MapPath("~/Reports/InvoiceRegular.rpt");
Worked for me.
Please check your .rpt file is present or not.If not please copy from local to hosting folder,it will start work.
I had the same issue with ASP.NET. Please check your report path. That will be wrong path.
I don't know if this will help someone else or not, but I was having this issue, and it turned out to be such a simple fix for such a dumb move. I had mistyped the filename of the .rpt file...there was a space between two words in the file name (which I normally never do for just this reason) but when I included the name in my code, I had left the space out. corrected the filename, problem went away.