Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

VS2010 + CR for VS2010 - ClickOnce Deployment is resulting in an error.

When I deploy my application using ClickOnce I get the following error when trying to view a report.

This error did not exist when I compiled the same application using VS2008 and the older version of Crystal Reports. This is just since I upgraded the project to VS2010.

An Error has occurred while attempting to load the Crystal Reports runtime

Either the Crystal Reports Registry key permissions are insufficient or the crystal reports runtime is not installed correctly.

Please install the appropriate Crystal Reports redistributable (CRRedist*.msi) containing the correct version of the Crystal Reports runtime .

I'm installing the app as Administrator and tried this on many machines, Windows 7, Win XP, Windows 2003 and Windows 2008.

Any help is much appreciated.

Former Member

As Ludek mentioned in his response. The error occurs because you are running a 32 bit application against the 64 bit runtime, or vice versa. The most likely culprit is the compile as Any CPU option within Visual Studio. It causes real problems with our runtime because the app will run as 32 bit on some systems and 64 bit on others.

You should compile two versions of your app - one for 32 bit and the other for 64 bit. Then distribute the appropriate runtime files for those clients.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question