Crystal Reports and C# - Application Deployment

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?VG9kZCBKYXNwZXJz?=

    #1

    Crystal Reports and C# - Application Deployment

    Hey Guys,

    I'm totally flipping out. I developed an application which makes use
    of the built in Visual Studio 2005 Crystal Reports components. I have
    references on my solution which state:

    CrystalDecision s.CrystalReport s.Engine
    CrystalDecision s.Enterprise.Fr amework
    CrystalDecision s.Enterprise.In fostore
    CrystalDecision s.ReportSource
    CrystalDecision s.Shared
    CrystalDecision s.Windows.Forms


    I've got a couple of other DLLs that are in the program, and when I build my
    application, I simply copy what's in the BIN folder, and move it into a new
    folder on the client machine.

    This has worked for every single application I've ever written.

    However, with this Crystal stuff, it's not working. I absolutely cannot find
    the actual DLLs for these references, and my application will not work on ANY
    of the client machines because it's lacking the client components. I've even
    installed the Developer version of Crystal Reports XI just to test it, and it
    still didn't work.

    Where oh where can I get those DLL files? I am very desperate... please help
    me. I downloaded the CrystalReportsR edist2005x86.ms m file, and I added it,
    but I'm not really sure what it did, but it didn't give me any DLLs that I
    can copy.

    PLEASE help... I'm desperate.
  • Ignacio Machin ( .NET/ C# MVP )

    #2
    Re: Crystal Reports and C# - Application Deployment

    On Jul 21, 1:26 pm, Todd Jaspers
    <ToddJasp...@di scussions.micro soft.comwrote:
    Hey Guys,
    >
          I'm totally flipping out. I developed an application which makes use
    of the built in Visual Studio 2005 Crystal Reports components. I have
    references on my solution which state:
    >
    CrystalDecision s.CrystalReport s.Engine
    CrystalDecision s.Enterprise.Fr amework
    CrystalDecision s.Enterprise.In fostore
    CrystalDecision s.ReportSource
    CrystalDecision s.Shared
    CrystalDecision s.Windows.Forms
    >
    I've got a couple of other DLLs that are in the program, and when I buildmy
    application, I simply copy what's in the BIN folder, and move it into a new
    folder on the client machine.
    >
    This has worked for every single application I've ever written.
    >
    However, with this Crystal stuff, it's not working. I absolutely cannot find
    the actual DLLs for these references, and my application will not work onANY
    of the client machines because it's lacking the client components. I've even
    installed the Developer version of Crystal Reports XI just to test it, and it
    still didn't work.
    >
    Where oh where can I get those DLL files? I am very desperate... please help
    me. I downloaded the CrystalReportsR edist2005x86.ms m file, and I added it,
    but I'm not really sure what it did, but it didn't give me any DLLs that I
    can copy.
    >
    PLEASE help... I'm desperate.
    Hi,

    You have to add teh merge modules, there is a pdf in CR website that
    explain with details the process.

    Comment

    • Ignacio Machin ( .NET/ C# MVP )

      #3
      Re: Crystal Reports and C# - Application Deployment

      On Jul 21, 4:21 pm, "Ignacio Machin ( .NET/ C# MVP )"
      <ignacio.mac... @gmail.comwrote :
      On Jul 21, 1:26 pm, Todd Jaspers
      >
      >
      >
      >
      >
      <ToddJasp...@di scussions.micro soft.comwrote:
      Hey Guys,
      >
            I'm totally flipping out. I developed an application which makes use
      of the built in Visual Studio 2005 Crystal Reports components. I have
      references on my solution which state:
      >
      CrystalDecision s.CrystalReport s.Engine
      CrystalDecision s.Enterprise.Fr amework
      CrystalDecision s.Enterprise.In fostore
      CrystalDecision s.ReportSource
      CrystalDecision s.Shared
      CrystalDecision s.Windows.Forms
      >
      I've got a couple of other DLLs that are in the program, and when I build my
      application, I simply copy what's in the BIN folder, and move it into anew
      folder on the client machine.
      >
      This has worked for every single application I've ever written.
      >
      However, with this Crystal stuff, it's not working. I absolutely cannotfind
      the actual DLLs for these references, and my application will not work on ANY
      of the client machines because it's lacking the client components. I'veeven
      installed the Developer version of Crystal Reports XI just to test it, and it
      still didn't work.
      >
      Where oh where can I get those DLL files? I am very desperate... pleasehelp
      me. I downloaded the CrystalReportsR edist2005x86.ms m file, and I added it,
      but I'm not really sure what it did, but it didn't give me any DLLs that I
      can copy.
      >
      PLEASE help... I'm desperate.
      >
      Hi,
      >
      You have to add teh merge modules, there is a pdf in CR website that
      explain with details the process.- Hide quoted text -
      >
      - Show quoted text -

      Comment

      • Rad [Visual C# MVP]

        #4
        Re: Crystal Reports and C# - Application Deployment

        On Mon, 21 Jul 2008 10:26:05 -0700, Todd Jaspers wrote:
        Hey Guys,
        >
        I'm totally flipping out. I developed an application which makes use
        of the built in Visual Studio 2005 Crystal Reports components. I have
        references on my solution which state:
        >
        CrystalDecision s.CrystalReport s.Engine
        CrystalDecision s.Enterprise.Fr amework
        CrystalDecision s.Enterprise.In fostore
        CrystalDecision s.ReportSource
        CrystalDecision s.Shared
        CrystalDecision s.Windows.Forms
        >
        >
        I've got a couple of other DLLs that are in the program, and when I build my
        application, I simply copy what's in the BIN folder, and move it into a new
        folder on the client machine.
        >
        This has worked for every single application I've ever written.
        >
        However, with this Crystal stuff, it's not working. I absolutely cannot find
        the actual DLLs for these references, and my application will not work on ANY
        of the client machines because it's lacking the client components. I've even
        installed the Developer version of Crystal Reports XI just to test it, and it
        still didn't work.
        >
        Where oh where can I get those DLL files? I am very desperate... please help
        me. I downloaded the CrystalReportsR edist2005x86.ms m file, and I added it,
        but I'm not really sure what it did, but it didn't give me any DLLs that I
        can copy.
        >
        PLEASE help... I'm desperate.
        What version of Visual Studio are u using? Visual Studio 2008 and 2005 make
        it even easier because you can select Crystal Reports as a prerequisite
        package to be installed. 2003 requires a bit more effort where you have to
        add the merge modules yourself. But its pretty well documented in the
        Crystal Reports online documentation
        --

        Comment

        • =?Utf-8?B?VG9kZCBKYXNwZXJz?=

          #5
          Re: Crystal Reports and C# - Application Deployment

          Thanks, but all of the links for Crystal Reports on their website
          automatically re-direct to their general SAP support page (which is utter
          crap).

          I've moved over all the DLLs, and I created a setup to add the merge modules
          but it keeps trying to reference some assemblies that are stored on my
          computer, but it does not automatically re-attach them.

          This is the error message it gives me:

          See the end of this message for details on invoking
          just-in-time (JIT) debugging instead of this dialog box.

          ************** Exception Text **************
          System.Exceptio n: Load report failed. --->
          System.Runtime. InteropServices .COMException (0x80004005): The system cannot
          find the path specified.

          at
          CrystalDecision s.ReportAppServ er.ClientDoc.Re portClientDocum entClass.Open(O bject& DocumentPath, Int32 Options)
          at
          CrystalDecision s.ReportAppServ er.ReportClient DocumentWrapper .Open(Object&
          DocumentPath, Int32 Options)
          at
          CrystalDecision s.ReportAppServ er.ReportClient DocumentWrapper .EnsureDocument IsOpened()
          --- End of inner exception stack trace ---
          at
          CrystalDecision s.ReportAppServ er.ReportClient DocumentWrapper .EnsureDocument IsOpened()
          at CrystalDecision s.CrystalReport s.Engine.Report Document.Load(S tring
          filename, OpenReportMetho d openMethod, Int16 parentJob)
          at CrystalDecision s.CrystalReport s.Engine.Report Document.Load(S tring
          filename)
          at ScoutingApp.Adv anceReport.Crea teOffSubstituti onReport()
          at ScoutingApp.Adv anceReport.Proc edure17()
          at ScoutingApp.Adv anceReport.btnR efresh_Click(Ob ject sender, EventArgs e)
          at System.Windows. Forms.Control.O nClick(EventArg s e)
          at System.Windows. Forms.Button.On Click(EventArgs e)
          at System.Windows. Forms.Button.On MouseUp(MouseEv entArgs mevent)
          at System.Windows. Forms.Control.W mMouseUp(Messag e& m, MouseButtons
          button, Int32 clicks)
          at System.Windows. Forms.Control.W ndProc(Message& m)
          at System.Windows. Forms.ButtonBas e.WndProc(Messa ge& m)
          at System.Windows. Forms.Button.Wn dProc(Message& m)
          at System.Windows. Forms.Control.C ontrolNativeWin dow.OnMessage(M essage& m)
          at System.Windows. Forms.Control.C ontrolNativeWin dow.WndProc(Mes sage& m)
          at System.Windows. Forms.NativeWin dow.Callback(In tPtr hWnd, Int32 msg,
          IntPtr wparam, IntPtr lparam)


          ************** Loaded Assemblies **************
          mscorlib
          Assembly Version: 2.0.0.0
          Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
          CodeBase:
          file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
          ----------------------------------------
          ScoutingApp
          Assembly Version: 1.0.0.0
          Win32 Version: 1.0.0.0
          CodeBase:
          file:///C:/Documents%20and %20Settings/tjaspers/Desktop/Pro%20System.ex e
          ----------------------------------------
          System.Windows. Forms
          Assembly Version: 2.0.0.0
          Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
          CodeBase:
          file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows. Forms/2.0.0.0__b77a5c 561934e089/System.Windows. Forms.dll
          ----------------------------------------
          System
          Assembly Version: 2.0.0.0
          Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
          CodeBase:
          file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c 561934e089/System.dll
          ----------------------------------------
          System.Drawing
          Assembly Version: 2.0.0.0
          Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
          CodeBase:
          file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f 7f11d50a3a/System.Drawing. dll
          ----------------------------------------
          System.Data
          Assembly Version: 2.0.0.0
          Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
          CodeBase:
          file:///C:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c 561934e089/System.Data.dll
          ----------------------------------------
          System.Configur ation
          Assembly Version: 2.0.0.0
          Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
          CodeBase:
          file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configur ation/2.0.0.0__b03f5f 7f11d50a3a/System.Configur ation.dll
          ----------------------------------------
          System.Xml
          Assembly Version: 2.0.0.0
          Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
          CodeBase:
          file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c 561934e089/System.Xml.dll
          ----------------------------------------
          System.Transact ions
          Assembly Version: 2.0.0.0
          Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
          CodeBase:
          file:///C:/WINDOWS/assembly/GAC_32/System.Transact ions/2.0.0.0__b77a5c 561934e089/System.Transact ions.dll
          ----------------------------------------
          System.Enterpri seServices
          Assembly Version: 2.0.0.0
          Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
          CodeBase:
          file:///C:/WINDOWS/assembly/GAC_32/System.Enterpri seServices/2.0.0.0__b03f5f 7f11d50a3a/System.Enterpri seServices.dll
          ----------------------------------------
          CrystalDecision s.CrystalReport s.Engine
          Assembly Version: 10.2.3600.0
          Win32 Version: 10.2.52001.1823
          CodeBase:
          file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecision s.CrystalReport s.Engine/10.2.3600.0__69 2fbea5521e1304/CrystalDecision s.CrystalReport s.Engine.dll
          ----------------------------------------
          CrystalDecision s.Shared
          Assembly Version: 10.2.3600.0
          Win32 Version: 10.2.52001.1823
          CodeBase:
          file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecision s.Shared/10.2.3600.0__69 2fbea5521e1304/CrystalDecision s.Shared.dll
          ----------------------------------------
          CrystalDecision s.ReportAppServ er.CommLayer
          Assembly Version: 10.2.3600.0
          Win32 Version: 10.2.9700.0
          CodeBase:
          file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecision s.ReportAppServ er.CommLayer/10.2.3600.0__69 2fbea5521e1304/CrystalDecision s.ReportAppServ er.CommLayer.dl l
          ----------------------------------------
          CrystalDecision s.ReportAppServ er.ClientDoc
          Assembly Version: 10.2.3600.0
          Win32 Version: 10.2.9700.0
          CodeBase:
          file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecision s.ReportAppServ er.ClientDoc/10.2.3600.0__69 2fbea5521e1304/CrystalDecision s.ReportAppServ er.ClientDoc.dl l
          ----------------------------------------
          CrystalDecision s.ReportAppServ er.DataSetConve rsion
          Assembly Version: 10.2.3600.0
          Win32 Version: 10.2.52001.1823
          CodeBase:
          file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecision s.ReportAppServ er.DataSetConve rsion/10.2.3600.0__69 2fbea5521e1304/CrystalDecision s.ReportAppServ er.DataSetConve rsion.dll
          ----------------------------------------
          CrystalDecision s.ReportAppServ er.DataDefModel
          Assembly Version: 10.2.3600.0
          Win32 Version: 10.2.9700.0
          CodeBase:
          file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecision s.ReportAppServ er.DataDefModel/10.2.3600.0__69 2fbea5521e1304/CrystalDecision s.ReportAppServ er.DataDefModel .dll
          ----------------------------------------
          CrystalDecision s.ReportAppServ er.Controllers
          Assembly Version: 10.2.3600.0
          Win32 Version: 10.2.9700.0
          CodeBase:
          file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecision s.ReportAppServ er.Controllers/10.2.3600.0__69 2fbea5521e1304/CrystalDecision s.ReportAppServ er.Controllers. dll
          ----------------------------------------
          CrystalDecision s.ReportAppServ er.CubeDefModel
          Assembly Version: 10.2.3600.0
          Win32 Version: 10.2.9700.0
          CodeBase:
          file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecision s.ReportAppServ er.CubeDefModel/10.2.3600.0__69 2fbea5521e1304/CrystalDecision s.ReportAppServ er.CubeDefModel .dll
          ----------------------------------------
          CrystalDecision s.ReportAppServ er.ReportDefMod el
          Assembly Version: 10.2.3600.0
          Win32 Version: 10.2.52001.1823
          CodeBase:
          file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecision s.ReportAppServ er.ReportDefMod el/10.2.3600.0__69 2fbea5521e1304/CrystalDecision s.ReportAppServ er.ReportDefMod el.dll
          ----------------------------------------
          CrystalDecision s.KeyCode
          Assembly Version: 10.2.3600.0
          Win32 Version: 10.2.9700.0
          CodeBase:
          file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecision s.KeyCode/10.2.3600.0__69 2fbea5521e1304/CrystalDecision s.KeyCode.dll
          ----------------------------------------
          System.Web
          Assembly Version: 2.0.0.0
          Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
          CodeBase:
          file:///C:/WINDOWS/assembly/GAC_32/System.Web/2.0.0.0__b03f5f 7f11d50a3a/System.Web.dll
          ----------------------------------------
          Microsoft.mshtm l
          Assembly Version: 7.0.3300.0
          Win32 Version: 7.0.3300.0
          CodeBase:
          file:///C:/WINDOWS/assembly/GAC/Microsoft.mshtm l/7.0.3300.0__b03 f5f7f11d50a3a/Microsoft.mshtm l.dll
          ----------------------------------------

          ************** JIT Debugging **************
          To enable just-in-time (JIT) debugging, the .config file for this
          application or computer (machine.config ) must have the
          jitDebugging value set in the system.windows. forms section.
          The application must also be compiled with debugging
          enabled.

          For example:

          <configuratio n>
          <system.windows .forms jitDebugging="t rue" />
          </configuration>

          When JIT debugging is enabled, any unhandled exception
          will be sent to the JIT debugger registered on the computer
          rather than be handled by this dialog box.



          Comment

          • Udo Nesshoever

            #6
            Re: Crystal Reports and C# - Application Deployment

            === original message ===
            from: Todd Jaspers
            date: 21.07.2008 19:26

            [...]
            CrystalDecision s.CrystalReport s.Engine
            CrystalDecision s.Enterprise.Fr amework
            CrystalDecision s.Enterprise.In fostore
            CrystalDecision s.ReportSource
            CrystalDecision s.Shared
            CrystalDecision s.Windows.Forms
            [...]
            Where oh where can I get those DLL files? I am very desperate... please help
            me. I downloaded the CrystalReportsR edist2005x86.ms m file, and I added it,
            but I'm not really sure what it did, but it didn't give me any DLLs that I
            can copy.
            >
            PLEASE help... I'm desperate.
            Click on the references and have a look at the property window. It
            should tell you the location of the file. Within the property window you
            can set "Copy local" to true. Then the files get copied to your beloved
            BIN folder and you can do xcopy-deployment.
            At least that's how it works here (VS 2005).

            Cheers,
            Udo

            Comment

            • =?Utf-8?B?VG9kZCBKYXNwZXJz?=

              #7
              RE: Crystal Reports and C# - Application Deployment

              Guys, I'm a complete idiot. As the college football scouts say, "This player
              got dumb learns."

              Do you know what my problem was? I forgot to copy the report files...

              I spent like 4 hours working on this before I realized it. I did everything
              I could think of... clicking the mouse button without looking, praying to
              God...

              And then it dawned on me that I completely forgot to copy the report
              files.... damn...



              Todd

              Comment

              • G.S.

                #8
                Re: Crystal Reports and C# - Application Deployment

                On Jul 22, 8:26 am, Todd Jaspers
                <ToddJasp...@di scussions.micro soft.comwrote:
                Guys, I'm a complete idiot. As the college football scouts say, "This player
                got dumb learns."
                >
                Do you know what my problem was? I forgot to copy the report files...
                >
                I spent like 4 hours working on this before I realized it. I did everything
                I could think of... clicking the mouse button without looking, praying to
                God...
                >
                And then it dawned on me that I completely forgot to copy the report
                files.... damn...
                >
                Todd
                Where exactly do you copy the report files to? Could you please show
                the folder structures. We use a deployment package and it looks like
                reports are somehow included - I don't see any .RPT files on client's
                installs.

                Comment

                Working...