ClickOnce failed to load report Crystal Reports

0

I have a WPF application in C # and some reports of this application. When you install the application with ClickOnce, the reports are not called and the report load fails.

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 does not run. The DLLs are set to true in Copy Local and it still did not work.

    
asked by anonymous 28.03.2014 / 15:33

1 answer

1

Make sure that you have set the Crystal Reports package as a prerequisite for publishing Visual Studio .

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

This will cause the ClickOnce installer to verify that the client has or not the redistributable components and decide to install them together with the installation of your application.

In case you can not find the Crystal Reports packages

  • Download the clickonce32 / 64 RTM files on this site link

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

With this you should be able to view the package SAP Crystal Reports Runtime Engine for .NET Framework 4.0     

28.03.2014 / 20:22