Crystal Reports and C# - Application Deployment

T

Todd Jaspers

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:

CrystalDecisions.CrystalReports.Engine
CrystalDecisions.Enterprise.Framework
CrystalDecisions.Enterprise.Infostore
CrystalDecisions.ReportSource
CrystalDecisions.Shared
CrystalDecisions.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 CrystalReportsRedist2005x86.msm 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.
 
I

Ignacio Machin ( .NET/ C# MVP )

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:

CrystalDecisions.CrystalReports.Engine
CrystalDecisions.Enterprise.Framework
CrystalDecisions.Enterprise.Infostore
CrystalDecisions.ReportSource
CrystalDecisions.Shared
CrystalDecisions.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 CrystalReportsRedist2005x86.msm 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.
 
R

Rad [Visual C# MVP]

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:

CrystalDecisions.CrystalReports.Engine
CrystalDecisions.Enterprise.Framework
CrystalDecisions.Enterprise.Infostore
CrystalDecisions.ReportSource
CrystalDecisions.Shared
CrystalDecisions.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 CrystalReportsRedist2005x86.msm 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
 
T

Todd Jaspers

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.Exception: Load report failed. --->
System.Runtime.InteropServices.COMException (0x80004005): The system cannot
find the path specified.

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.ReportDocument.Load(String
filename)
at ScoutingApp.AdvanceReport.CreateOffSubstitutionReport()
at ScoutingApp.AdvanceReport.Procedure17()
at ScoutingApp.AdvanceReport.btnRefresh_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons
button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr 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.exe
----------------------------------------
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__b77a5c561934e089/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__b77a5c561934e089/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__b03f5f7f11d50a3a/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__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.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__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Transactions
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase:
file:///C:/WINDOWS/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
System.EnterpriseServices
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase:
file:///C:/WINDOWS/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------
CrystalDecisions.CrystalReports.Engine
Assembly Version: 10.2.3600.0
Win32 Version: 10.2.52001.1823
CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.CrystalReports.Engine/10.2.3600.0__692fbea5521e1304/CrystalDecisions.CrystalReports.Engine.dll
----------------------------------------
CrystalDecisions.Shared
Assembly Version: 10.2.3600.0
Win32 Version: 10.2.52001.1823
CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.Shared/10.2.3600.0__692fbea5521e1304/CrystalDecisions.Shared.dll
----------------------------------------
CrystalDecisions.ReportAppServer.CommLayer
Assembly Version: 10.2.3600.0
Win32 Version: 10.2.9700.0
CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.CommLayer/10.2.3600.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.CommLayer.dll
----------------------------------------
CrystalDecisions.ReportAppServer.ClientDoc
Assembly Version: 10.2.3600.0
Win32 Version: 10.2.9700.0
CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.ClientDoc/10.2.3600.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.ClientDoc.dll
----------------------------------------
CrystalDecisions.ReportAppServer.DataSetConversion
Assembly Version: 10.2.3600.0
Win32 Version: 10.2.52001.1823
CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.DataSetConversion/10.2.3600.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.DataSetConversion.dll
----------------------------------------
CrystalDecisions.ReportAppServer.DataDefModel
Assembly Version: 10.2.3600.0
Win32 Version: 10.2.9700.0
CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.DataDefModel/10.2.3600.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.DataDefModel.dll
----------------------------------------
CrystalDecisions.ReportAppServer.Controllers
Assembly Version: 10.2.3600.0
Win32 Version: 10.2.9700.0
CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.Controllers/10.2.3600.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.Controllers.dll
----------------------------------------
CrystalDecisions.ReportAppServer.CubeDefModel
Assembly Version: 10.2.3600.0
Win32 Version: 10.2.9700.0
CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.CubeDefModel/10.2.3600.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.CubeDefModel.dll
----------------------------------------
CrystalDecisions.ReportAppServer.ReportDefModel
Assembly Version: 10.2.3600.0
Win32 Version: 10.2.52001.1823
CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.ReportDefModel/10.2.3600.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.ReportDefModel.dll
----------------------------------------
CrystalDecisions.KeyCode
Assembly Version: 10.2.3600.0
Win32 Version: 10.2.9700.0
CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.KeyCode/10.2.3600.0__692fbea5521e1304/CrystalDecisions.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__b03f5f7f11d50a3a/System.Web.dll
----------------------------------------
Microsoft.mshtml
Assembly Version: 7.0.3300.0
Win32 Version: 7.0.3300.0
CodeBase:
file:///C:/WINDOWS/assembly/GAC/Microsoft.mshtml/7.0.3300.0__b03f5f7f11d50a3a/Microsoft.mshtml.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:

<configuration>
<system.windows.forms jitDebugging="true" />
</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.
 
U

Udo Nesshoever

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

[...]
CrystalDecisions.CrystalReports.Engine
CrystalDecisions.Enterprise.Framework
CrystalDecisions.Enterprise.Infostore
CrystalDecisions.ReportSource
CrystalDecisions.Shared
CrystalDecisions.Windows.Forms [...]
Where oh where can I get those DLL files? I am very desperate... please help
me. I downloaded the CrystalReportsRedist2005x86.msm 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
 
T

Todd Jaspers

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
 
G

G.S.

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top