Ludek,
Okay, after spending a considerable amount of time on this issue, I have found a solution that works but I have to say I don’t know why.
First, I went back and checked the latest Win 7 64 bit machine where I had deployed my app. After the ClickOnce app had downloaded and installed the Crystal run time, it failed with the original message about the CommonObjectModel missing. I then used the gacutil to verify that all of the CrystalDecisions dlls were either in the MSIL or the AMD64 area. I have tried so many things that I can’t say why I didn’t find them there before but that was one issue off the table.
Next, I went back into the Visual Studio property pages for this app and matched up what was showing under the “References” tab to what was showing under ”Publish/Applications Files” (see the list below).
References:
- CrystalDecisions.CrystalReports.Engine
- CrystalDecisions.ReportSource
- CrystalDecisions.Shared
- CrystalDecisions.Windows.Forms
Publish/Application Files:
- CrystalDecisions.CrystalReports.Engine.dll
- CrystalDecisions.ReportAppServer.ClientDoc.dll
- CrystalDecisions.ReportAppServer.CommLayer.dll
- CrystalDecisions.ReportAppServer.CommonControls.dll
- CrystalDecisions.ReportAppServer.CommonObjectModel.dll
- CrystalDecisions.ReportAppServer.Controllers.dll
- CrystalDecisions.ReportAppServer.CubeDefModel.dll
- CrystalDecisions.ReportAppServer.DataDefModel.dll
- CrystalDecisions.ReportAppServer.DataSetConversion.dll
- CrystalDecisions.ReportAppServer.ObjectFactory.dll
- CrystalDecisions.ReportAppServer.Prompting.dll
- CrystalDecisions.ReportAppServer.ReportDefModel.dll
- CrystalDecisions.ReportAppServer.XmlSerialize.dll
- CrystalDecisions.ReportSource.dll
- CrystalDecisions.Shared.dll
- CrystalDecisions.Windows.Forms.dll
I decided to add the “ReportAppServer” dlls one at a time to the list of references, starting with the CommonObjectModel and re-publish the app every time I added one. Each time it failed, I added the next dll it said was missing in the GAC to the list of references. At the end of this exercise, and after the app had installed with no errors, the only two I had not added to the list was the CommonControls and DataSetConversion dlls.
When I launched the app, all the reports were rendered in the viewer as they should have.
Also, all of the "ReportAppServer" dlls still show up as unused references in my app.
I don't know what the ReportAppServer dlls do and I didn't need them before this CRVS2013 version came out but if this is what it takes to make it work, I'm leaving them there.
Thanks for all your help and suggestions.
David