RE: Install ADO Problem



Hi Vayse,

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?

There is an option--"Application 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(Auto)"), 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
http://support.microsoft.com/?scid=kb;en-us;897646&spid=2514&sid=global

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.
======================================================

.



Relevant Pages

  • Re: GAC hell
    ... The only way to get at the GAC is by calling into the unmanaged fusion API's. ... Beware that the GAC uses fully qualified assembly names to store assembly references, because you don't know whether an assembly resides in the GAC, you also don't have a FQAN, this may result in false positives! ... But we've gotten so far off topic here, we're nowhere near my original question anymore, which had to do with determining which referenced assemblies are in the GAC and which are not. ... So, please if you have a small but complete sample that uses the Microsoft.Vsa namespace to generate/compile/Run "VBScript" and "JScript" scripting code, feel free to post it here. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Biztalk 2004 deployment problem
    ... installed in the GAC before they can be a part of a running BizTalk ... Each computer contains a GAC which must contain the assemblies that are ... BizTalk Server to process messages during run time, you must install all ... you can use the BizTalk Deployment Wizard to deploy ...
    (microsoft.public.biztalk.general)
  • Re: Windows Service Install Project
    ... that starts Services that have references to assemblies in the GAC. ... Visual Studio Setup project? ... break my system when I go to install. ...
    (microsoft.public.dotnet.framework.setup)
  • Non-portable references to GAC in ASP.NET
    ... Deploy common code from the EL into the GAC for reference by all ASP.NET ... Make deployment part of an installer project, ... Assemblies stored in the GAC require strong names. ... Then from your application, add references to ...
    (microsoft.public.dotnet.academic)
  • Re: Please explain why the GAC cannot be referenced
    ... A point I'll make here is that the GAC is really intended as a deployment ... So development tools generally don't refer to assemblies ... product install that developers typically don't want on the dev machine. ... reference assemblies from them that happen to be installed to the GAC. ...
    (microsoft.public.dotnet.framework)