title: Dynamically loading unmanaged OCX in C#
body: <p>I have ocx created in VC++ If it is loaded statically it works fine but when I load it dynamically from assembly it gives exception . </p>
  
  <pre><code>    public Assembly assembly;
  
      public Form1()
      {
          InitializeComponent();            
         assembly = Assembly.LoadFile(Application.StartupPath + "\\abc.ocx");
  
      }
  </code></pre>
  
  <p>it gives following exception The module was expected to contain an assembly manifest. </p>
  
  <blockquote>
    <p>(Exception from HRESULT: 0x80131018)</p>
  </blockquote>