index > ClickOnce and Setup & Deployment Projects > Trouble Publishing Crystal Report DLLs

Trouble Publishing Crystal Report DLLs

I get the following warnings when I publish my application:

Unable to apply publish properties for item "crystaldecisions.reportsource".

Unable to apply publish properties for item "crystaldecisions.shared".

Unable to apply publish properties for item "crystaldecisions.web".

Unable to apply publish properties for item "crystaldecisions.windows.forms".

None of these DLLs are being published with my application. Consequently, an error is thrown when I try to open a Crystal Report in the application on a machine that doesn't already have these DLLs installed.

Does anyone have any idea why a DLL would fail to publish?

E Jensen

I figured out how to get rid of the warnings, though that doesn't mean the DLL files will actually get published. If you set your references to Copy Local, then their publish status will/can be set to Include (auto). For some reason, when the publish status is set to Include (auto) instead of Include, the warnings go away.

In order to actually install the DLLs to the user machines, the only way I can figure is to publish with the additional prerequisites setup program created to include Crystal Reports for .NET Framework 2.0.

It seems to me like Microsoft is purposely not allowing us to publish the Crystal Report DLL files directly because they want to avoid having a new set of these DLL files installed on the user machine for each .NET 2.0 application that uses Crystal Reports. Since use of Crystal Reports is pretty widespread, I guess it is preferred to install once to the GAC per machine, even though the extra step in the installation process is a bit cumbersome. Either that, or maybe there is a licensing issue that forces Microsoft to go this route so that the user can agree to the licensing agreement for Crystal Reports.

Does a representative of Microsoft care to shed light on my speculation? I would prefer to publish the Crystal Report DLL files directly instead of installing to the GAC, but maybe that is not possible for a good reason.

E Jensen
Actually, it's Business Objects that doesn't want their dlls published with your project: it is not feasible to service assemblies installed SxS with an application, and tool is doing all it possibly can to prevent you from doing so. You should use the bootstrapper to distribute Crystal Reports; even if the extra step is cumbersome, you should only have to do it once per machine.


-- Mike
MWade_MS
I figured it had to be intentional. Thanks for the information. It's nice to know that I am now using the bootstrapper because that's the proper way to do it rather than because I had to resort to a workaround after not getting my preferred method to work.
E Jensen
reply 4

You can use google to search for other answers

 

More Articles

• Multiple icons in .ICO file click once setup. Different icons on ...
• Installation Question
• Makecab ddf file contains umlaut
• Windows Form UserControl
• ClickOnce on Firefox
• Unable to deploy the winapp
• IEframe.dll was added without reason to setup
• Secure public delpoyment website that uses ClickOnce
• Can Deployment Project Automatically increment build #?
• 3rd party dll not in global assembly cache
Bookmark and Share
Welcome to Bokebb   New Update  
 

New Articles

• Installer Message "can not find fil
• Debugging Windows forms applications hos
• How to add the .net setup file into a pr
• PostBuild modified Assemblies
• How to - Include Resource Files in Deplo
• Deploy with Crystal
• Error. See exception.innerexception. Err
• Changing the Webpage the Application is
• How to trigger an event after a link has
• Invalid Operation Exception while instal
• publish.html is not sent to the server
• allow only certian users access to downl
• Where exactly are the apps installed
• .EXE.CONFIG for an IIS deployed EXE
• ClickOnce overwriting user settings on u

Hot Articles

• deployment guide
• ClickOnce and plugin directories
• Appupdater - how to deploy changes to ap
• Include subfolder in exe place
• Very Dangerous message
• Resource files not being included?
• ClickOnce through Proxy with Authenticat
• Installing 2 click once application
• SQL Express - Prerequisite
• Install updates after the application st
• Installtion project for VB6 application
• Include all directorys and files in a lo
• Unable to Reinstall ClickOnce Application
• Install Content Files In A Directory Str
• ActiveX control e88121a3-9fa9-11cf-9d9f-

Recommend Articles

• Deployment identity does not match the d
• download does not work
• Basic Script Access to Windows Form Cont
• How do I access application or user sett
• Reliable enough?
• Tutorial loader UI/Code
• No connection could be made because the
• Publisher certificate not recognised whe
• Comboboxes not behaving correctly
• SQLExpress can't attach Database using C
• ClickOnce Exception
• Clickonce and windows 2000
• Registry Keys are removed during uninstall
• New Publish causes full download
• Installing Services with Clickonce?