foot
Aug 14th, 2002, 08:33 AM
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
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