cancel
Showing results for 
Search instead for 
Did you mean: 

.net app not working on 64 bit computer

0 Kudos

We have a Windows forms .net app which uses a Crystal reports viewer.

I am trying to install the application on a 64bit computer, our users computers up until now have been 32bit. I have installed the CRRuntime_32bit_13_0_3.msi (which is the current version installed on our users computers) and CRRuntime_64bit_13_0_3.msi version of the crystal runtime on the computer.

I have tried to change the architecture of the application. It was set to run on any cpu, I have tried setting it to both the 32bit and 64bit options.

I was getting this error when I was using the CRRuntime_32bit_13_0_22.msi.

If I use CRRuntime_32bit_13_0_3.msi runtime that is installed on our users computer I get this error:

If I user the CRRuntime_64bit_13_0_3.msi runtime I get a database login screen.

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Try this app, you'll need to check the code out but see if setting the log on info works in it:

how-to-parameters-in-crystal-reports-for-visual-studio-net

Don

0 Kudos

I had played with the code and setting the log on info already.
I finally got it to work, I had to change the database connection type in the crystal reports the application is running. As I had said the cr reports are sitting on a file share.
The reports had been created with an OLE db connection, I changed a couple of them to Oracle server connections and was able to run them in our application. Now I am going to start over and see what changes I made are needed and which ones are not needed.

thanks for all your help.

Answers (7)

Answers (7)

0 Kudos

Ah, so you changed the DB type the reports were designed against. Then you nee to use ReplaceConnection() API to update the report.

File share should not matter since a local copy of the report is loaded when you open it.

0 Kudos

You will need to install the 64 bit Oracle client...

0 Kudos

Don,

I am trying to get the reports to run on our new computers which already have the 64bit oracle client. Which is why I have set the target cpu to 64bit and installed the 64bit version of the runtime.

0 Kudos
0 Kudos

another bit of information. This app is running reports that are on a share and are not part of the application.

0 Kudos

Don, Is KB2999226 required on Windows 10 computers? I assume different KBs for different operating systems. I don't see anything about required KBs for windows 10 on your page.

0 Kudos

Thanks Don. I will have a look at this.

Gabriel posted this for me, I had already posted my own question. So you have been giving suggestions on it as well already.

https://answers.sap.com/questions/776913/crystall-runtime-on-64bit-vs-32bit-computer.html


We are trying to get it to run a 64bit Windows 10 computer.
I have have tried setting the application to x86 and x64 and installing the matching runtime. We are currently on SP22.

But I will try upgrading to SP 24 and see what happens. I will look at the windows updates and see if we have them.

Is it required to have the matching version of SAP Crystal Reports, version for Microsoft Visual studio installed on our development computer?

0 Kudos

SP 3 is very very old, you are likely missing dependencies.

I suggest upgrading to SP 24 and your application as well.

CR runtime is for your application setting and not the OS, set your project to x86 and use the 32 bit MSI or set to x64 and use the 64 bit MSI on the users PC.

Read all of the info for SP 21 as well:

https://wiki.scn.sap.com/wiki/display/BOBJ/Crystal+Reports%2C+Developer+for+Visual+Studio+Downloads

Also, depending on the version of Windows SP 3 may not be supported.

Don

0 Kudos

I have uninstalled CRforVS_13_0_22. Then rebooted my computer

I have installed CRforVS_13_0_24 by right clicking on the exe and running as administrator. Then rebooted my computer

Removed the 4 crystal references in the project and readded them.

I have set the application to 64bit, as before it was set to any cpu.

I uninstalled our application and the crystal runtime from my test windows 10 computer.

I installed the 64bit version of the SP 24 runtime.

I installed our application and it is still prompting for a username and password when our application tries to open a report.

Another piece of information I have discovered, because it is recommended to set the application to either 32bit or 64bit, is the oracle client on our new computers is 64bit, where as our old computer were 32bit. Our applications login won't work if the app is set to 32bit when installed on our Windows 10 computer. On my development computer I have to set the application to 32bit so I can log into our application as I have the 32bit client.