Results 1 to 8 of 8

Thread: Deploying a Class Library (.dll) to the GAC *RESOLVED*

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2002
    Posts
    10

    Deploying a Class Library (.dll) to the GAC *RESOLVED*

    I created a .dll called DataAccess.dll with a strong name and have successfully added it to the GAC using the gacutil (gacutil /i d:\DataAccess\DataAccess.dll)

    I have also added an entry for this program under the assemblies section of the machine.config file like so:
    …<assemblies>

    <add assembly="DataAccess, Version=1.0.954.23066, Culture=neutral, PublicKeyToken=541ca2b7bdb7a906" />

    </assemblies>


    When I attempt to run my .exe with the DataAccess.dll deployed in the same directory as the .exe it works fine. When I attempt to run the .exe without DataAccess.dll in the directory, it is in d:\DataAccess and registered in the GAC, I get this error: “File or assembly name DataAccess, or one of its dependencies, was not found”

    The other program that will use DataAccess.dll is an ASP.NET page. Compiled debug it shows the paths it is searching for this file, they are all project related directories (ex. d:/inetpub/wwwroot/SPGen/bin/DataAccess.dll).

    Any ideas what I’ve done incorrectly?

    Thanks
    Brad
    Last edited by foot; Aug 15th, 2002 at 09:34 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width