Excel .NET COM - Automation error. The system cannot find the file specified

前端 未结 5 924
名媛妹妹
名媛妹妹 2021-02-12 11:43

I have a .NET 2.0 COM object that\'s used by VBA in Excel. It works fine on my dev machine, but when trying to use it on a clean VM workstation I get this error:

Automat

5条回答
  •  天命终不由人
    2021-02-12 12:17

    You need to either invoke regasm with the full path to the assembly as the codebase parameter value or put the assembly into some location which is always on the path for searching libraries. Otherwise it will not be found when the client tries to instantiate the COM object.

提交回复
热议问题