Есть одна .NET длл, самописная.
Захотелось использоваться ее из Access.
Сделал dll com-visible, зарегистрировал ее AsmReg'ом.
Добавил в Access в Reference и все отлично заработало. Но только на машине где это все и писалось.
Переношу DLL на соседний комп. Там стоит тот же фреймворк 3.5
Студии нет. Аccess тот же самый.
Все действия аналогичные. Регистриую AsmReg'ом, добавляю референс в Аксесс,
интеллисенс Аксесса показывает мою сборку и классы в ней.
Однако при работе вылетает ошибка "Automation error. The system cannot find the file specified".
Вылетает на строке:
Dim a As MyClass
Set a = new MyClass
a.MyMethod()
Чего еще не хватает на второй машине?
Спасибо.
Здравствуйте, Grog13, Вы писали:
<skipped/>
помещайте сборку в GAC либо вызывайте
regasm с ключом /codebase
/codebase
Creates a Codebase entry in the registry. The Codebase entry specifies the file path for an assembly that is not installed in the global assembly cache. You should not specify this option if you will subsequently install the assembly that you are registering into the global assembly cache. The assemblyFile argument that you specify with the /codebase option must be a strong-named assembly.