Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception. #23

Open
ChristopherSouth opened this issue Apr 14, 2018 · 4 comments

Comments

@ChristopherSouth
Copy link

Just installed the pre-reqs and crystal ninja - here's the command i tried - followed by the error..
c:\CrystalReportsNinja -U portalreadonly -P xxxxxxxx -F c:\Completions_by_WorkCenter.rpt -E pdf

What is the "type initalizer"?

Exception: The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception.
Inner Exception: System.TypeInitializationException: The type initializer for 'CrystalDecisions.Shared.SharedUtils' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.
at CrystalDecisions.Shared.SharedUtils..cctor()
--- End of inner exception stack trace ---
at CrystalDecisions.Shared.SharedUtils.get_CurrentControl()
at CrystalDecisions.Shared.SharedUtils.GetEffectiveCulture()
at CrystalDecisions.CrystalReports.Engine.CREngineRes.GetString(String name)
at CrystalDecisions.CrystalReports.Engine.ReportDocument.CheckForCrystalReportsRuntime()
at CrystalDecisions.CrystalReports.Engine.ReportDocument..cctor()

@fogoat
Copy link

fogoat commented Apr 15, 2018

Are you certain the pre-requisites were installed properly? Did you install the following?

What OS are you using? Windows 10? 32-bit or 64-bit?

.NET 4.5
https://www.microsoft.com/en-us/download/details.aspx?id=30653

@ChristopherSouth
Copy link
Author

ChristopherSouth commented Apr 17, 2018 via email

@danielleevandenbosch
Copy link

I am running windows 10 64 bit and am experiencing the same issue. My computer says I have crystal runtime installed already. Please help

@mhertzfeld
Copy link

@danielleevandenbosch Please post an issue over on my fork and I will try to help.

To start with please include the following in the issue you create.
Exception\Error you are getting
Version of Ninja you are running (please include whether x86 or x64)
Version of Crystal Reports Runtime installed (note whether x86 or x64 or both are installed and their individual version numbers)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants