title: Type initialization exception
body: <p>I created imageHolder class:</p>
  
  <pre><code>public class ImageHolder : Image&lt;Bgr, Byte&gt;
  {   
      private String imagePath;
  
      public ImageHolder(String path):base(path)
      {
         this.imagePath = path;                     
      }   
      public String imgPathProperty
      {
          get
          { return imagePath; }
          set
          { imagePath = value; }
      }
  }
  </code></pre>
  
  <p>I create instance of the class and initialize it,like this:</p>
  
  <pre><code>private ImageHolder originalImageHolder;
  originalImageHolder = new ImageHolder(openFileDialog.FileName);
  </code></pre>
  
  <p>In runtime i get this exception:</p>
  
  <p><strong>The type initializer for 'Emgu.CV.CvInvoke' threw an exception.</strong></p>
  
  <p><img src="https://i.stack.imgur.com/OCHdz.png" alt="enter image description here"></p>
  
  <p>Here is Solution Explorer window:</p>
  
  <p><img src="https://i.stack.imgur.com/60aBe.png" alt="enter image description here"></p>
  
  <p>Any idea why i get this exception and how can i fix it?</p>
  
  <p>Thank you in advance.</p>