Deploying Adaptive Server ADO.NET Data Provider assembly into the global assembly cache

Multiple applications on a single machine often share the Adaptive Server ADO.NET Data Provider assembly. This can result in duplicate copies of the assembly, and compatibility and version control problems. To avoid this, Sybase recommends that you deploy the Adaptive Server ADO.NET Data Provider assembly into the global assembly cache (GAC), a machine-wide cache that stores and manages assemblies shared by several applications on the same machine. If this is not possible, install copies of the Adaptive Server ADO.NET Data Provider assembly in all the directories where applications using the provider will execute.

The Adaptive Server ADO.NET Data Provider installation program automatically deploys the assembly into the GAC. If you did not use the installation program, you must manually deploy the assembly. Do this by running AseGacUtility or by using the .NET Framework Configuration tool.

StepsDeploying the assembly by running AseGacUtility

  1. Go to the directory where AseGacUtility is installed—by default C:\Sybase\DataAccess\ADONET\dll for Adaptive Server ADO.NET Data Provider, 32-bit and C:\Sybase\DataAccess64\ADONET\dll for Adaptive Server ADO.NET Data Provider, 64-bit.

  2. Run:

    AseGacUtility /i DLL_Name
    

    where DLL_Name is the DLL you want to deploy in the GAC.

    For example, to deploy Sybase.AdoNet2.AseClient.dll, enter:

    AseGacUtility /i
    c:\mango\build\bin\Sybase.AdoNet2.AseClient.dll
    

StepsDeploying the assembly using the .NET Framework Configuration tool

  1. Start the .NET Framework Configuration tool. Refer to the Microsoft documentation for your specific operating system for instructions on how to start the configuration tool.

  2. Select Assembly Cache from the tree view on the left.

  3. Click Add an Assembly to the Assembly Cache link.

  4. In the Add an Assembly dialog box, find Adaptive Server ADO.NET Data Provider assembly in the installation directory and click Open. The default installation directories are C:\Sybase\DataAccess\ADONET\dll for Adaptive Server ADO.NET Data Provider, 32-bit and C:\Sybase\DataAccess64\ADONET\dll for Adaptive Server ADO.NET Data Provider, 64-bit.

    Adaptive Server ADO.NET Data Provider assembly is now deployed into the GAC. To verify this, select the View List of Assemblies in the Assembly Cache link and examine the list of assemblies in the cache.