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

Since your app is now running in 64 bit mode it needs a 64 bit version of ADO.NET.

https://docs.microsoft.com/en-us/dotnet/framework/data/adonet/dataset-datatable-dataview/security-gu...

Be sure to remove the legacyMode for CR to work also in the app.config file.

0 Kudos

I went through this guide and I don't really understand what I am supposed to do. There are a lot of topics I have never seen before. That being said, is it best to target 32 bit apps for Crystal report apps? I could convert it back to 32 bit where it works properly and then deploy the 32 bit runtime. The reason I was targeting 64 bit is because we are using 64 bit windows, but from what I read it should be able to support both 64 and 32 bit apps. Is there a merge module for the 32 bit runtime?

0 Kudos

I deployed the 32 bit version that is working properly on my machine, but when deployed the app doesn't open and I see the below error in the event viewer. The path that it is looking for this dll is incorrect. It should be looking in C:\Windows\SysWOW64, why is the app looking in the wrong folder for the file? Any thoughts?

Log Name: Application

Source: Application Error

Date: 1/13/2021 11:06:10 AM

Event ID: 1000

Task Category: (100)

Level: Error

Keywords: Classic

User: N/A

Description:

Faulting application name: M-Files - Planned Materials Report.exe, version: 1.0.0.0, time stamp: 0x5fff259e

Faulting module name: WRDll.x86.dll, version: 1.1.0.227, time stamp: 0x5f45cd02

Exception code: 0xc0000005

Fault offset: 0x00007ebf

Faulting process id: 0x2524

Faulting application start time: 0x01d6e9ce63cda2d1

Faulting application path: C:\Program Files (x86)\Kage Innovation\M-Files - Planned Materials Report Setup\M-Files - Planned Materials Report.exe

Faulting module path: C:\WINDOWS\System32\WRDll.x86.dll

Report Id: 61486196-e4bf-430e-b0a0-4085b3ce424e

Faulting package full name:

Faulting package-relative application ID:

Event Xml:

<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">

<System>

<Provider Name="Application Error" />

<EventID Qualifiers="0">1000</EventID>

<Level>2</Level>

<Task>100</Task>

<Keywords>0x80000000000000</Keywords>

<TimeCreated SystemTime="2021-01-13T17:06:10.328488500Z" />

<EventRecordID>460725</EventRecordID>

<Channel>Application</Channel>

<Computer>WS-10-CAD.ad.kage.com</Computer>

<Security />

</System>

<EventData>

<Data>M-Files - Planned Materials Report.exe</Data>

<Data>1.0.0.0</Data>

<Data>5fff259e</Data>

<Data>WRDll.x86.dll</Data>

<Data>1.1.0.227</Data>

<Data>5f45cd02</Data>

<Data>c0000005</Data>

<Data>00007ebf</Data>

<Data>2524</Data>

<Data>01d6e9ce63cda2d1</Data>

<Data>C:\Program Files (x86)\Kage Innovation\M-Files - Planned Materials Report Setup\M-Files - Planned Materials Report.exe</Data>

<Data>C:\WINDOWS\System32\WRDll.x86.dll</Data>

<Data>61486196-e4bf-430e-b0a0-4085b3ce424e</Data>

<Data>

</Data>

<Data>

</Data>

</EventData>

</Event>