cancel
Showing results for 
Search instead for 
Did you mean: 

Crystal Reports for Visual Studio - Deployment Issue

0 Kudos

This is the third Crystal reports app I have created. I am seeing this error when trying to run the app on the client machines. I have run the msi setup file for both my app and the CR runtime SP 29. The error I am seeing is below. I have verified that CrystalDecisions.Shared.dll has been added to the dependencies for my setup file and as a reference within the app. Does anyone know what could possibly be causing this?

Application: M-Files - Planned Material Report.exe

Framework Version: v4.0.30319

Description: The process was terminated due to an unhandled exception.

Exception Info: System.IO.FileNotFoundException

at CrystalDecisions.Shared.SharedUtils..cctor()

Exception Info: System.TypeInitializationException

at CrystalDecisions.Shared.SharedUtils.get_CurrentControl()

at CrystalDecisions.Shared.SharedUtils.GetEffectiveCulture()

at CrystalDecisions.Shared.LocaleManager..ctor()

at CrystalDecisions.Windows.Forms.CrystalReportViewer.InitReportViewer()

at CrystalDecisions.Windows.Forms.CrystalReportViewer..ctor()

at M_Files___Planned_Material_Report.Form1.InitializeComponent()

at M_Files___Planned_Material_Report.Form1..ctor()

Exception Info: System.InvalidOperationException

at M_Files___Planned_Material_Report.My.MyProject+MyForms.Create__Instance__[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](System.__Canon)

at M_Files___Planned_Material_Report.My.MyProject+MyForms.get_Form1()

at M_Files___Planned_Material_Report.My.MyApplication.OnCreateMainForm()

at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()

at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()

at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(System.String[])

at M_Files___Planned_Material_Report.My.MyApplication.Main(System.String[])

View Entire Topic
0 Kudos

Ah, ttx is legacy, I don't believe we have a 64 bit version so convert to a Dataset() or using ADO.NET (XML), SetLocation() should update the report. If lots of data use XML files.

In VS show all the references, change all CR References Copy Local to false.

That way once the MSI package is installed it'll load them from the GAC, preferred way.

Don

0 Kudos

Hi,

One question on using a dataset or XML. Currently the only data structure in the report is from the ttx file. In order to remove the ttx file, would I use the xml schema file to create the columns instead of the ttx file? I am assuming the report should no longer reference the ttx file, but there are formulas built on the fields that the ttx schema created. See below for my current schema based on the ttx file.

0 Kudos

I was able to get this working by replacing the ttx file as a datasource with the xml schema i exported out of my ADO.net dataset. I also tested the report on a client PC and it is now working. Thank you so much Don. You have helped me with a few projects now. I also made it so the references are not copied locaclly!