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

后端 未结 7 1856
北荒
北荒 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"
    
    0 讨论(0)
提交回复
热议问题