KB Article AK3799
Visible to All Users

"The application requires that assembly DevExpress.XXX be installed in the Global Assembly Cache (GAC) first" error occurs when deploying the application using ClickOnce

Description:
I'm trying to use the XtraGrid in an application that will be deployed with ClickOnce over the web. Currently, I get an error message when installing:
Unable to install or run the application. The application requires that assembly DevExpress.vXX.X be installed in the Global Assembly Cache (GAC) first.

Is there a solution for using your components in an application that gets deployed over the Internet with ClickOnce?

Answer:
You can use the ClickOnce deployment mechanism for publishing your applications with our components. However, in certain situations the mentioned error may occur. Let me explain why.
According to the MSDN documentation, a prerequisite assembly (marked as Prerequisite (Auto) ) must be present in the GAC before an application is installed. If there are no required assemblies, the error occurs. Also, our controls need additional DLLs for the application to operate properly. These DLLs are given in the Redistributable Assemblies section of each control in our documentation. The most effective way to collect all the necessary assemblies is to use Assembly Deployment Tool. For instance, if you are using GridControl, DevExpress.XtraRichEdit.vXX.X.dll is used for the Filter Editor. So, to include these assemblies, open the project's Properties tab by right-clicking the current project in the Solution Explorer Window. After that, choose the Publish tab and then click the "Application Files…" button:

After that, change the Publish Status option of the DevExpress.~ assemblies from Prerequisite (Auto) to Include.

General information on the ClickOnce application deployment can be found in the MSDN Library:
Introducing Client Application Deployment with "ClickOnce"
See Also:
A tool for collecting the required DevExpress assemblies for further application deployment
How to distribute applications that use DevExpress .NET Windows Forms controls
No-Touch Web Deployment (.NET 1.x)
ClickOnce Deployment and Localization

Show previous comments (8)
DevExpress Support Team 8 years ago

    Hello Michel,

    To avoid any misunderstanding, I've created a separate **T516553**ticket on your behalf. Please refer to it for further discussion.

    C C
    Christoffer Jon Jensen 7 years ago

      ClickOnce deployment with Winforms & DevExpress does not work. And yes. I have tried the above approach.

      All the Dll's are included in the deplaoyment package (also in the folder, i checked!)

      But, the RichTexteditor will not start.

      Works like a charm locally.

      Please fix this.

      BR
      Christoffer Jensen

      C C
      Christoffer Jon Jensen 7 years ago

        Ok,fixed now. Was apperently a totally different issue that caused this error.
         Sorry
        BR
        Christoffer

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.