VS2003 and CR XI

Hi there,

I have CS2003 and Crystal Reports XI R2 standard edition installed on my machine. Before CR XI installed, my application and reports worked fine. For some reason, I installed Crystal Reports XI R2 standard edition. I am not able to edit the report through VS, I have to change the existing reports through CR XI, luckly, my application still can load those reports if only with a little change. However, I wanna change all referenced CR assemblies in my project from 9.1.5000.0 to 11.5.3300.0 so that I do not have to worry loading problem with some new reports . But it did not work to me, the error message is:

System.Runtime.InteropServices.COMException (0x80041004): Not enough memory for operation

Can anyone tell me how to make it work

thanks!




Answer this question

VS2003 and CR XI

  • alea

    I had this problem and after many days have found that the issue in my case was registry permissions.

    I ran regmon to see what the registry was doing and recieved and access denied just befor the app failed.

    After adding permissions for the localmachine/aspnet user to the approriate key it worked.

    I started one by one but in the end just ended up addingit to the enitre Hive under

    my computer \Hkey_classes_root\typelib\

    There may be a more elgant way to do this via the GAC tool but this is how I did it.

    Hopes this helps


  • BBBXXX

    Did you ever resolve this I have the same exact message coming up. Put together the most basic test I could (see below). I have VS 2003. Used to have CR 9.5 which I upgraded to CR XI Developer and now R2.

    I have the error coming up on my development machine and a client deployment.

    Imports CrystalDecisions.CrystalReports.Engine

    Imports CrystalDecisions.Shared

    Dim rdReport As New ReportDocument

    Dim sPath As String = "C:\Publishers.rpt"

    Try

    rdReport.Load(sPath)

    Catch ex As Exception

    MessageBox.Show(ex.Message & ControlChars.NewLine & ex.InnerException.ToString & ControlChars.NewLine & sPath, "Load Report Failure", MessageBoxButtons.OK)

    Exit Sub

    End Try


  • Rakheesh

    Thans for your reply. Are you saying except using developer edition, otherwise there is no way to work at all We also have XI Server edition, this one should be able to work, right But how could I make it work together with my VS which installed on my pc

  • Eljefe909

    The version of Crystal Reports you purchased does not come with the needed files for development. You will need to upgrade to the Developer edition to get this functionality.
  • lord_8

    i am also facing the problem

    System.Exception: Load report failed. ---> System.Runtime.InteropServices.COMException (0x80041004): Not enough memory for operation.
    at CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options)
    at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options)
    at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
    --- End of inner exception stack trace ---
    at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
    at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob)
    at CrystalDecisions.CrystalReports.Engine.ReportClass.Load(String reportName, OpenReportMethod openMethod, Int16 parentJob)
    at CrystalDecisions.CrystalReports.Engine.ReportDocument.s()
    at CrystalDecisions.CrystalReports.Engine.ReportDocument.get_DataDefinition ()
    at CrystalDecisions.CrystalReports.Engine.ReportDocument.SetParameterValue(String name, Object val)
    at button1_Click(Object sender, EventArgs e)

    i dont have any clue why this exception occouring. any tips or clue is wecome.

    anupam



  • VS2003 and CR XI