Click here to Skip to main content
15,902,938 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
​

I'm getting this error

Failed to load database information error in file temp_xxxx_xx_{xxx}.rpt Failed to load database information

 only on 32-bit client machine and not on 64-bit client machine

development machine:-

win 7 64bit,visual studio 64-bit,crystal report version for visual studio 32-bit

deployment machine:-

win 7 32bit,cr runtime 32-bit





thank you for your time


What I have tried:

i have search on web 

tries visual studio target as x86

installed cr runtime-32 bit on client machine
Posted
Updated 1-Sep-17 12:41pm
v2

1 solution

Go into your Project Properties, Build tab and change the Platform Target to x86 instead of AnyCPU.

The reason it works on your machine is because you're using the 64-bit Crystal Reports runtime. That cannot work on 32-bit machines. Obviously, 32-bit machines cannot run 64-bit code and libraries.

You MUST also have the 32-bit Crystal Report Runtime installed on the workstations that are going to run your code. You cannot deploy just your executable.
 
Share this answer
 
Comments
sandy2121 2-Sep-17 3:06am    
@Dave Kreskowiak Thank you for Your time

But actually

1.as i have mentioned i have already changed platform target to x86
2.and i'have installed 32-bit crystal report on the client machine
3. and on my development machine i have installed crystal report for visual studio 32-bit


but still it is giving me error

could please further help me
sandy2121 2-Sep-17 3:09am    
Sorry ,Actually didn't find the comment option,

Yes i have installed 32-bit Office(including Access) on the client machine

My forms are fetching the data Fine the errors occurs while using crystal report.
Dave Kreskowiak 2-Sep-17 11:11am    
In that case, I'm out of ideas.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900