Victor Charles
asked on
Help with publishing application (ClickOnce) containing Crystal Report with VB.NET
Hi,
When I publish my application on the development computer the report works ok with my application, but when I try to run the application on another PC, I receive the following error:
System.TypeInitializationE xception: The type initializer for 'CrystalDecisions.CrystalR eports.Eng ine.Report Document' threw an exception. ---> CrystalDecisions.CrystalRe ports.Engi ne.LoadSav eReportExc eption: 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 (x86, x64, or Itanium) required. Please go to http://www.businessobjects.com/support for more information.
All the files listed in the Applications Files.. section have been included. How do solve this issue?
Victor
When I publish my application on the development computer the report works ok with my application, but when I try to run the application on another PC, I receive the following error:
System.TypeInitializationE
All the files listed in the Applications Files.. section have been included. How do solve this issue?
Victor
ASKER
I don't see crystal Report in the prerequisites section, but see lots of crystal Report files listed in the Program Files section and did include all of them, thinking of switching to MS report, but crystal report is better when creating multiple sections in a report. Crystal reports is not included in VS2010.
Thanks.
Thanks.
Crystal Report is not installed by default in 2010, but if you go Project...Add New Item...Reporting, you will see an entry for Crystal Report. Activating it will lead you to the download page for Crystal Report for Visual Studio 2010. Once installed this way, it will become available in the ClickOnce Prerequisites.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I'm using CR2008 sp2, is it possible for users to run the report without having to install runtime files in their PC? I need users without admin rights to be able to view the reports.
Thanks,
V.
Thanks,
V.
ASKER
Thanks.
No, you must install the Crystal runtime on the client machine (assuming this is a winform app).
ASKER
Are you certain? I was under the impression if you install the files from the link provided in the previous post, it would be possible.
ASKER
To clarify my statement, I meant possible to rum crystal report without the need to install files in users pc, which requires administrative rights.
If you are running a web based then the runtimes have to be on the server. If it is a client app the rntimes have to be installed on the client.
ASKER
If I install a Windows app on the Web server using ClickOnce, would it be enough to install required crystal Reports run time files on the web server even though it is a Windows application? I'm thinking Web based means a Web application, but just want to be sure.
Thanks,
V.
Thanks,
V.
To the best of my knowledge they have to be installed on the machine the app executes or runs on. So a Windows app installed on a server, I believe still runs on the client.
mlmcc
mlmcc
ASKER
I will look into using MS Report instead because I'm able to run it in an application deployed using ClickOnce, which didn't require the installation of MS Report on the client's PC.
Thanks,
V.
Thanks,
V.
I have been told however by many of my students that if you set ClickOnce to install from the vendor's site, problems are not as frequent.
Since you have Crystal installed on your system you should see it in the Prerequisites when you are in the Publishing tab of the project's Properties window. Select it and activate the first option at the bottom.