on 05-16-2017 10:34 PM
A c# command line tool called crexport.exe works well. however, on a 64 bit windows machine is not able to authenticate to the database.
Same code completes without problem on 32 bit.
For more information see: http://stackoverflow.com/questions/43899015/crexport-exe-on-64-bit-system-faile-to-log-on-to-databas...
All source code is at https://github.com/aaroncalderon/Crystal-Reports-Exporter/tree/issue-logonToDatabase
Hi Aaron,
The tool is 32 bit so you will need a 32 bit driver for your PeopleSoft database for it to work. It won't work with a 64 bit driver.
Brian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The PeopleSoft driver is 32 bit. The issue is that authentication to the database fails everytime.
The error I get is 'Logon Failed'. The exception name is `LogOnException`.
Any other suggestion aside from the 32 bit driver?
I know the tool is compiled as `Any CPU`. Should it be compiled as 32 bit explicitly?
Thanks
Hi Dell,
Thanks for your suggestion. I have changed my settings to copile to the target 'x86' architecture. However, I encounter the follwooing error:
The type initializer for 'CrystalDecisions.CrystalReports.Engine. ReportDocument' threw an exception. The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception. at CrystalDecisions.CrystalReports.Engine.ReportDocument..ctor() at crexport.crexport.Main(String[] args) System.TypeInitializationException: The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'CrystalDecisions.ReportAppServer.CommLayer, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified. at CrystalDecisions.CrystalReports.Engine.ReportDocument..cctor() --- End of inner exception stack trace --- at CrystalDecisions.CrystalReports.Engine.ReportDocument..ctor() at crexport.crexport.Main(String[] args)
I have seach around the web but have not found a solution. e.g. Stack Overflow question not load file or assembly CrystalDecisions.ReportAppServer.ClientDoc, on this question the following suggestions are mentioned:
Any other suggestions?
So, basically I installed:
And I compiled my tools with a target of x86.
That fixed the issue.
In other words, the tool was not 32bit. Compiling against a target of x86 made it 32bits, and along with other 32bit tools installed, it worked.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.