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

后端 未结 7 1865
北荒
北荒 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:42

    In my case I had to register the .dll.

    To do so, open cmd.exe (the console) with admin rights and type:

    regsvr32 "foo.dll"
    

提交回复
热议问题