3
Answers

Crystal Reports Deployment

tuortoam

tuortoam

21y
8.4k
1
Hi... I am using the report control in one of my forms.... The compiled application works fine on my development PC, but when I try to deploy to a new unit, that has the .net framework installed on it, the form that owns the control generates an error (see below) It looks like I am not deploying some required files (the report file is present, and in the correct location) Does anything need to be added to the assembly, or final setup on a target pc, for the reports to work? Thanks, -Ant ---------- ************** Exception Text ************** System.IO.FileNotFoundException: File or assembly name CrystalDecisions.Windows.Forms, or one of its dependencies, was not found. File name: "CrystalDecisions.Windows.Forms" at PocketCoach_Writer.reportViewerForm.InitializeComponent() at PocketCoach_Writer.reportViewerForm..ctor() at PocketCoach_Writer.reporterForm.button1_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.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) === Pre-bind state information === LOG: DisplayName = CrystalDecisions.Windows.Forms, Version=9.1.5000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304 (Fully-specified) LOG: Appbase = C:\Documents and Settings\atuorto\Desktop\Desktop Coach\ LOG: Initial PrivatePath = NULL Calling assembly : PocketCoach Writer, Version=1.0.1431.1208, Culture=neutral, PublicKeyToken=null. === LOG: Publisher policy file is not found. LOG: Host configuration file not found. LOG: Using machine configuration file from C:\WINNT\Microsoft.NET\Framework\v1.1.4322\config\machine.config. LOG: Post-policy reference: CrystalDecisions.Windows.Forms, Version=9.1.5000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304 LOG: Attempting download of new URL file:///C:/Documents and Settings/atuorto/Desktop/Desktop Coach/CrystalDecisions.Windows.Forms.DLL. LOG: Attempting download of new URL file:///C:/Documents and Settings/atuorto/Desktop/Desktop Coach/CrystalDecisions.Windows.Forms/CrystalDecisions.Windows.Forms.DLL. LOG: Attempting download of new URL file:///C:/Documents and Settings/atuorto/Desktop/Desktop Coach/CrystalDecisions.Windows.Forms.EXE. LOG: Attempting download of new URL file:///C:/Documents and Settings/atuorto/Desktop/Desktop Coach/CrystalDecisions.Windows.Forms/CrystalDecisions.Windows.Forms.EXE.
Answers (3)
0
Hawkmoth

Hawkmoth

NA 11 0 20y
I Have some more info. In my case I created a project using Visual Studio 2000.net and Crystal Reports V8.5 with the crystal report veiwer tool on 2 forms. I then upgraded to Visual Studio 2003.net and Crystal Reports V10 Some time later I revisited my project made some minor changes and rebuilt it. This seemed to work ok on my pc. I then installed it onto another pc and stated the program. Everything seemed ok untill i got to one of the forms that had veiwer control on it. Then I recieved the above error It appears that if you created a project using an older version of Visual Studio.net / crystal reports or one of it's tool and after updating the crystal reports. From version 9.1.3300.0 or 9.1.5000.0 to 10.0.3300.0 You then building the project and installing the resulting program onto another 'clean' pc, you may get this error System.IO.FileNotFoundException: File or assembly name CrystalDecisions.Windows.Forms, or one of its dependencies, was not found. or somthing very similar. To get around this you need to make sure your project referances the new verisons that you have upgraded to. Open your project and remove the form tools (like the crystal report viewer tool) from the forms and Toolbox. Then remove the Crystal report Referances in the Project Explorer. CrystalDecisions.CrystalReports.Engine. crystaldecisions.windows.forms CrystalDecisions.ReportSource. CrystalDecisions.Shared. Now add the new updated tools (make sure they are the correct version) to the Toolbox and redraw them onto your forms in the designer. In doing this the new Crystal report referances should automatical appear in the Project Explorer. That takes care of the project itself but you will also need to download the merge modules that matches your version of crystal reposts and include these in the setup package. This is most important as the Client pc will not have the correct dlls. Do not assume that just because you have the new Crystal Reports installed that the merge modules will also be upgraded. They Don't here is a usful link to the merge modules. http://support.businessobjects.com/fix/merge_modules.asp
0
Hawkmoth

Hawkmoth

NA 11 0 20y
I have a similar error after upgrading from visual studio 2000.net to 2003.net. I also upgraded crystal reports version 10 Developer. You may also wish to take a look at this. http://support.businessobjects.com/library/kbase/articles/c2013897.asp Hawkmoth
0
tuortoam

tuortoam

NA 12 0 21y
For those interested: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/crystlmn/html/crcondeployingcrystalreportsinnetapplications.asp Problem solved?? (we'll see) -Ant