How do I resolve “Please make sure that the file is accessible and that it is a valid assembly or COM component”?

后端 未结 7 1881
北荒
北荒 2020-11-27 16:17

I am building a project with OpenCV in C#. It requires a dll file called cvextern.dll. but, when adding this file as a reference, this message appears :-

<
7条回答
  •  忘掉有多难
    2020-11-27 16:38

    I had the same program, I hope this could help.

    I your using Windows 7, open Command Prompt-> run as Administrator. register your <...>.dll.

    Why run as Administrator, you can register your <...>.dll using the run at the Windows Start, but still your dll only run as user even your account is administrator.

    Now you can add your <...>.dll at the Project->Add Reference->Browse

    Thanks

提交回复
热议问题