Clickonce failed to load Crystal Reports

Asked

Viewed 1,097 times

0

I have a WPF application in C# and some reports of that application. When installing the application with Clickonce the reports are not called and the failure message appears when loading report.

Dlls work when I run my application through VS and if I create an installer with another solution (Inno Setup), it works perfectly, but with Clickonce it doesn’t work. Dlls are set to true in Copy Local and it still didn’t work.

1 answer

1


Check if you have set the package Crystal Reports as a prerequisite for publication by Visual Studio.

To do this go on Properties of your project (right click) in the tab Publish click on the button Prerequisites.... Mark the package of Crystal Reports and set download options in the same location as your application.

This will make the installer of Clickonce check whether or not the customer has the redistributable components and decide to install them together with the installation of your application.

In case you can’t find Crystal Reports packages

  • Download the files clickonce32/64 RTM on this website http://scn.sap.com/docs/DOC-7824

  • Extract the files from . zip and copy the folder CRforVS_clickonce_13_0 into the folder {Program Files (x86)}\Microsoft SDKs\Windows\v*.0A\Bootstrapper\Packages\Crystal Reports for .NET Framework 4.0\

This should make it possible to view the package SAP Crystal Reports Runtime Engine for . NET Framework 4.0

  • in the options to choose the pre-requirements do not meet the Crystal Reports. has some way to enable it?

  • I will complement the answer

  • The pre-requisite installation worked but the fault message remained when loading report. One question that remained was that in Applilcation Files did not appear the files of Crystal Reports that have in the Project. So to solve need to add the CR files you have in the Project to the Application Files options

  • I couldn’t find a way to add the CR files in the Application Files options. There would be some way to add these files?

Browser other questions tagged

You are not signed in. Login or sign up in order to post.