Install ADO Problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Vayse

    #1

    Install ADO Problem

    I published my app in Visual Studio 2005. I'm getting a problem installing
    on one PC. During the install, the following error appears:
    "Unable to run or install the application. The application requires that
    assembly ADODB 7.0.3300.0 be installed in the Global Assembly Cache (GAC)
    first."

    The VB6 install used to give you a choice of adding references. The VS 2005
    Publish doesn't give any options to include references. What should I be do?

    thanks
    Vayse


  • Gary Chang[MSFT]

    #2
    RE: Install ADO Problem

    Hi Vayse,
    [color=blue]
    >The VB6 install used to give you a choice of adding
    >references. The VS 2005 Publish doesn't give any
    >options to include references. What should I be do?[/color]

    There is an option--"Applicatio n Files..." in your VS2005 project's Publish
    property page used to configure the required assembly and prerequisite of
    your Click Once project, but I am afraid it could not be used to install a
    GAC utility(it should be configured as "Prerequisite(A uto)"), this is a
    limitation of the ClickOnce Deployment.

    In this point, one possible workaround is to specify that referenced GAC
    assembly's "Copy Local" property to "True", then the that assembly should
    be packed into your Click Once installation automatically.

    But unfortunately, since ADODB.DLL is a Primary Interop Assembly (PIA), it
    is a shared component. As such, it must be deployed into the Global
    Assembly Cache (GAC). So even when it is present on the machine in some
    other folder, any application that uses it will still not find it.

    In this scenario, you may need your client to install the related PIA if
    his/her system hasn't installed the ADODB.DLL in its GAC:

    Office 2003 Update: Redistributable Primary Interop Assemblies is available
    for download
    Microsoft Support is here to help you with Microsoft products. Find how-to articles, videos, and training for Microsoft Copilot, Microsoft 365, Windows 11, Surface, and more.


    By the way, you can use another approach to distribute your application to
    workaround this issue:
    Use a VS2005 setup project to generate an installation package for your
    application with the VS2005 setup project you can install a GAC utility to
    the target machine. If you have any problem about how to do this with
    VS2005 setup project, please let me know, I will be happy to be of further
    assistance.


    Thanks!

    Best regards,

    Gary Chang
    Microsoft Community Support
    =============== =============== =============== =========
    PLEASE NOTE the newsgroup SECURE CODE and PASSWORD will be updated at 9:00
    AM PST, February 14, 2006. Please complete a re-registration process by
    entering the secure code mmpng06 when prompted. Once you have entered the
    secure code mmpng06, you will be able to update your profile and access the
    partner newsgroups.
    =============== =============== =============== =========
    When responding to posts, please "Reply to Group" via your newsreader so
    that others may learn and benefit from this issue.
    =============== =============== =============== =========
    This posting is provided "AS IS" with no warranties, and confers no rights.
    =============== =============== =============== =========

    Comment

    • Vayse

      #3
      Re: Install ADO Problem

      Can anyone help me out?

      "Vayse" <vayse@nospam.n ospam> wrote in message
      news:e9NyXoJOGH A.2268@TK2MSFTN GP09.phx.gbl...[color=blue]
      >I published my app in Visual Studio 2005. I'm getting a problem installing
      >on one PC. During the install, the following error appears:
      > "Unable to run or install the application. The application requires that
      > assembly ADODB 7.0.3300.0 be installed in the Global Assembly Cache (GAC)
      > first."
      >
      > The VB6 install used to give you a choice of adding references. The VS
      > 2005 Publish doesn't give any options to include references. What should I
      > be do?
      >
      > thanks
      > Vayse
      >
      >[/color]


      Comment

      Working...