Created .Dll from and .ocx using C++/CLI but interop is not loading in C#
-
System.Windows.Markup.XamlParseException: ''The invocation of the constructor on type 'CommonXFS.Interface.Utility.MainWindow' that matches the specified binding constraints threw an exception.' Line number '5' and line position '9'.'
InnerException:
FileNotFoundException: Could not load file or assembly 'Interop.NXCameraXLib.1.0, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
----------------------------------------------------------------------------------------------------- Note I have tried both (x86) and (x64) My DLl is not able to load as "Interop.NXCameraXLib.1.0 "(file from OCX adeed as reference) is not loading properly. My Query !: Do we have any way to create an managed code(C++/CLI dll which don't need any dependency from any 3rd party if yes please share an example. 2) is there any way to sesolve siscussed error.