运行Web程序,报错:
Could not load file or assembly 'ADODB, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
解决
- copy the gacutil.exe (../Program Files/Microsoft Visual Studio 8/SDK/v2.0/Bin) to the destination pc.
- copy adodb.dll(../Program Files/Microsoft.NET/Primary Interop Assemblies) to the destination pc.
- copy stdole.dll(../Program Files/Microsoft.NET/Primary Interop Assemblies) to the destination pc.
- run gacutil /i adodb.dll to register the adodb to the gac.
说明:
全局程序集缓存工具(gacutil.exe)
程序集查看器可以使用Windows浏览器查看和删除程序