I am getting error: A document processed by the JRC engine cannot be opened in the C++ stack when I try to load a Crystal Report in the Visual Studio 2012 development environment

I have seen a number of solutions to this that involved the deployed program, but I am getting this befor I publish. The report will launch from the development environment, but will cause the error when I run the program. The system crashes at rptH.Load. I am very new at integrating Crystal Reports, and any direction will be appreciated.

Here is my controller code

Imports CrystalDecisions.CrystalReports.Engine
Public Class CrystalReportsController
    Inherits System.Web.Mvc.Controller

    Public Function EmployeeQuoteLanscape() As ActionResult
        Dim rptH As New ReportClass()
        rptH.FileName = Server.MapPath("~/Content/Reprots/Quote/EmployeeQuoteLandscape.rpt")
        Dim stream As IO.Stream = rptH.ExportToStream(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat)
        Return File(stream, "application/pdf")
    End Function
End Class

The challenge I am having, is that the error happens in the Visual Studio development enviornment. Everything I can find points to this issue happening on deployment. I am able to open the rpt file in VS, but not programatically. I keep getting the feeling I am missing something very obvious.

Just noticed that your string:


Has a problem: Reprots

This article has been dead for over six months. Start a new discussion instead.